Minor changes for syncing with stable branch.
[bpt/guile.git] / doc / ref / posix.texi
index e2fd658..4b1e6a7 100644 (file)
@@ -16,7 +16,7 @@
 * Networking::                  gethostbyaddr, getnetent, socket, bind, listen.
 * System Identification::       Obtaining information about the system.
 * Locales::                     setlocale, etc.
-* Encryption::                  
+* Encryption::
 @end menu
 
 @node Conventions
@@ -46,7 +46,7 @@ facility.
 @item
 Underscores in Unix procedure names are converted to hyphens.
 @item
-Procedures which destructively modify Scheme data have exclaimation
+Procedures which destructively modify Scheme data have exclamation
 marks appended, e.g., @code{recv!}.
 @item
 Predicates (returning only @code{#t} or @code{#f}) have question marks
@@ -116,7 +116,7 @@ environment.
 
 A file descriptor can be extracted from a port and a new port can be
 created from a file descriptor.  However a file descriptor is just an
-integer and the garbage collector doesn't recognise it as a reference
+integer and the garbage collector doesn't recognize it as a reference
 to the port.  If all other references to the port were dropped, then
 it's likely that the garbage collector would free the port, with the
 side-effect of closing the file descriptor prematurely.
@@ -125,7 +125,7 @@ To assist the programmer in avoiding this problem, each port has an
 associated "revealed count" which can be used to keep track of how many
 times the underlying file descriptor has been stored in other places.
 If a port's revealed count is greater than zero, the file descriptor
-will not be closed when the port is gabage collected.  A programmer
+will not be closed when the port is garbage collected.  A programmer
 can therefore ensure that the revealed count will be greater than
 zero if the file descriptor is needed elsewhere.
 
@@ -280,6 +280,7 @@ The return value is unspecified.
 @end deffn
 
 @deffn {Scheme Procedure} unread-char char [port]
+@deffnx {C Function} scm_unread_char (char, port)
 Place @var{char} in @var{port} so that it will be read by the
 next read operation.  If called multiple times, the unread characters
 will be read again in last-in first-out order.  If @var{port} is
@@ -395,15 +396,6 @@ the port was opened, since modes such as "append" which are
 used only during port creation are not retained.
 @end deffn
 
-@deffn {Scheme Procedure} close-all-ports-except . ports
-[DEPRECATED] Close all open file ports used by the interpreter
-except for those supplied as arguments.  This procedure
-was intended to be used before an exec call to close file descriptors
-which are not needed in the new process.  However it has the
-undesirable side-effect of flushing buffes, so it's deprecated.
-Use port-for-each instead.
-@end deffn
-
 @deffn {Scheme Procedure} port-for-each proc
 @deffnx {C Function} scm_port_for_each (proc)
 Apply @var{proc} to each port in the Guile port table
@@ -475,13 +467,13 @@ Don't block when locking.  May be specified by bitwise OR'ing
 it to one of the other operations.
 @end table
 The return value is not specified. @var{file} may be an open
-file descriptor or an open file descriptior port.
+file descriptor or an open file descriptor port.
 @end deffn
 
 @deffn {Scheme Procedure} select reads writes excepts [secs [usecs]]
 @deffnx {C Function} scm_select (reads, writes, excepts, secs, usecs)
 This procedure has a variety of uses: waiting for the ability
-to provide input, accept output, or the existance of
+to provide input, accept output, or the existence of
 exceptional conditions on a collection of ports or file
 descriptors, or waiting for a timeout to occur.
 It also returns if interrupted by a signal.
@@ -797,7 +789,7 @@ component, @code{.} is returned.
 @deffnx {C Function} scm_basename (filename, suffix)
 Return the base name of the file name @var{filename}. The
 base name is the file name without any directory components.
-If @var{suffix} is privided, and is equal to the end of
+If @var{suffix} is provided, and is equal to the end of
 @var{basename}, it is removed also.
 @end deffn
 
@@ -877,11 +869,11 @@ The encrypted group password.
 @item group:gid
 The group id number.
 @item group:mem
-A list of userids which have this group as a supplimentary group.
+A list of userids which have this group as a supplementary group.
 @end table
 
 @deffn {Scheme Procedure} getgrgid gid
-Look up an integer groupid in the group database.
+Look up an integer group id in the group database.
 @end deffn
 
 @deffn {Scheme Procedure} getgrnam name
@@ -1165,7 +1157,7 @@ Return the name of the current working directory.
 
 @deffn {Scheme Procedure} umask [mode]
 @deffnx {C Function} scm_umask (mode)
-If @var{mode} is omitted, retuns a decimal number representing the current
+If @var{mode} is omitted, returns a decimal number representing the current
 file creation mask.  Otherwise the file creation mask is set to
 @var{mode} and the previous value is returned.
 
@@ -1189,7 +1181,7 @@ Return an integer representing the current process ID.
 @deffn {Scheme Procedure} getgroups
 @deffnx {C Function} scm_getgroups ()
 Return a vector of integers representing the current
-supplimentary group IDs.
+supplementary group IDs.
 @end deffn
 
 @deffn {Scheme Procedure} getppid
@@ -1370,7 +1362,7 @@ is @var{status} if supplied, otherwise zero.
 @deffnx {C Function} scm_execl (filename, args)
 Executes the file named by @var{path} as a new process image.
 The remaining arguments are supplied to the process; from a C program
-they are accessable as the @code{argv} argument to @code{main}.
+they are accessible as the @code{argv} argument to @code{main}.
 Conventionally the first @var{arg} is the same as @var{path}.
 All arguments must be strings.
 
@@ -1683,8 +1675,8 @@ close a pipe, but doesn't return the status.
 
 @menu
 * Network Address Conversion::
-* Network Databases::  
-* Network Sockets and Communication::  
+* Network Databases::
+* Network Sockets and Communication::
 @end menu
 
 @node Network Address Conversion
@@ -2097,7 +2089,7 @@ The return value is unspecified.
 @deffn {Scheme Procedure} shutdown sock how
 @deffnx {C Function} scm_shutdown (sock, how)
 Sockets can be closed simply by using @code{close-port}. The
-@code{shutdown} procedure allows reception or tranmission on a
+@code{shutdown} procedure allows reception or transmission on a
 connection to be shut down individually, according to the parameter
 @var{how}:
 
@@ -2456,7 +2448,7 @@ specified locale category as a system-dependent string.
 Otherwise the specified locale category is set to the string
 @var{locale} and the new value is returned as a
 system-dependent string.  If @var{locale} is an empty string,
-the locale will be set using envirionment variables.
+the locale will be set using environment variables.
 @end deffn
 
 @node Encryption
@@ -2474,9 +2466,8 @@ Encrypt @var{key} using @var{salt} as the salt value to the
 crypt(3) library call.
 @end deffn
 
-@code{getpass} is no encryption procedure at all, but it is often used
-in compination with @code{crypt}, that is why it appears in this
-section.
+Although @code{getpass} is not an encryption procedure per se, it
+appears here because it is often used in combination with @code{crypt}:
 
 @deffn {Scheme Procedure} getpass prompt
 @deffnx {C Function} scm_getpass (prompt)