SCCS-vsn: lib/libc/sys/close.2 6.3
SCCS-vsn: lib/libc/sys/connect.2 6.6
SCCS-vsn: lib/libc/compat-43/creat.2 6.6
SCCS-vsn: lib/libc/sys/execve.2 6.7
SCCS-vsn: lib/libc/sys/_exit.2 6.4
SCCS-vsn: lib/libc/sys/fcntl.2 6.4
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)creat.2 6.5 (Berkeley) %G%
+.\" @(#)creat.2 6.6 (Berkeley) %G%
.B char *name;
.fi
.SH DESCRIPTION
.B char *name;
.fi
.SH DESCRIPTION
-.B "This interface is obsoleted by open(2).
+.B "This interface is made obsolete by open(2).
.PP
.I Creat
creates a new file or prepares to rewrite an existing
.PP
.I Creat
creates a new file or prepares to rewrite an existing
given is arbitrary; it need not allow
writing.
This feature has been used in the past by
given is arbitrary; it need not allow
writing.
This feature has been used in the past by
-programs to construct a simple exclusive locking
+programs to construct a simple, exclusive locking
mechanism. It is replaced by the O_EXCL open
mode, or
.IR flock (2)
mechanism. It is replaced by the O_EXCL open
mode, or
.IR flock (2)
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)_exit.2 6.3 (Berkeley) %G%
+.\" @(#)_exit.2 6.4 (Berkeley) %G%
.in +5n
.PP
All of the descriptors open in the calling process are closed.
.in +5n
.PP
All of the descriptors open in the calling process are closed.
-This may entail delays, for example waiting for output to drain;
+This may entail delays, for example, waiting for output to drain;
a process in this state may not be killed, as it is already dying.
.PP
If the parent process of the calling process is executing a
a process in this state may not be killed, as it is already dying.
.PP
If the parent process of the calling process is executing a
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)close.2 6.2 (Berkeley) %G%
+.\" @(#)close.2 6.3 (Berkeley) %G%
.IR socket (2)
associated naming information and queued data are discarded;
on the last close of a file holding an advisory lock
.IR socket (2)
associated naming information and queued data are discarded;
on the last close of a file holding an advisory lock
-the lock is released; see further
-.IR flock (2).
+the lock is released (see further
+.IR flock (2)\fR).
.PP
A close of all of a process's descriptors is automatic on
.IR exit ,
.PP
A close of all of a process's descriptors is automatic on
.IR exit ,
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)connect.2 6.5 (Berkeley) %G%
+.\" @(#)connect.2 6.6 (Berkeley) %G%
.\"
.TH CONNECT 2 ""
.UC 5
.\"
.TH CONNECT 2 ""
.UC 5
the process address space.
.TP 20
[EINPROGRESS]
the process address space.
.TP 20
[EINPROGRESS]
-The socket is non-blocking and the
+The socket is non-blocking
and the connection cannot
be completed immediately.
It is possible to
and the connection cannot
be completed immediately.
It is possible to
[EALREADY]
The socket is non-blocking
and a previous connection attempt
[EALREADY]
The socket is non-blocking
and a previous connection attempt
+has not yet been completed.
.PP
The following errors are specific to connecting names in the UNIX domain.
These errors may not apply in future versions of the UNIX IPC domain.
.PP
The following errors are specific to connecting names in the UNIX domain.
These errors may not apply in future versions of the UNIX IPC domain.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)execve.2 6.6 (Berkeley) %G%
+.\" @(#)execve.2 6.7 (Berkeley) %G%
.\"
.TH EXECVE 2 ""
.UC 4
.\"
.TH EXECVE 2 ""
.UC 4
An executable object file consists of an identifying header,
followed by pages of data representing the initial program (text)
and initialized data pages. Additional pages may be specified
An executable object file consists of an identifying header,
followed by pages of data representing the initial program (text)
and initialized data pages. Additional pages may be specified
-by the header to be initialize with zero data. See
+by the header to be initialized with zero data. See
.IR a.out (5).
.PP
An interpreter file begins with a line of the form ``#! \fIinterpreter\fP''.
.IR a.out (5).
.PP
An interpreter file begins with a line of the form ``#! \fIinterpreter\fP''.
the argument list to be made available to the new
process. By convention, at least one argument must be present in
this array, and the first element of this array should be
the argument list to be made available to the new
process. By convention, at least one argument must be present in
this array, and the first element of this array should be
-the name of the executed program (i.e. the last component of \fIname\fP).
+the name of the executed program (i.e., the last component of \fIname\fP).
.PP
The argument \fIenvp\fP is also a null-terminated array of character pointers
to null-terminated strings. These strings pass information to the
.PP
The argument \fIenvp\fP is also a null-terminated array of character pointers
to null-terminated strings. These strings pass information to the
-new process that is not directly an argument to the command, see
-.IR environ (7).
+new process that is not directly an argument to the command (see
+.IR environ (7)).
.PP
Descriptors open in the calling process remain open in
the new process, except for those for which the close-on-exec
.PP
Descriptors open in the calling process remain open in
the new process, except for those for which the close-on-exec
-flag is set; see
-.IR close (2).
+flag is set (see
+.IR close (2)).
Descriptors that remain open are unaffected by
.IR execve .
.PP
Descriptors that remain open are unaffected by
.IR execve .
.PP
.IR execve ,
but signals that are caught are reset to their default values.
Blocked signals remain blocked regardless of changes to the signal action.
.IR execve ,
but signals that are caught are reset to their default values.
Blocked signals remain blocked regardless of changes to the signal action.
-The signal stack is reset to be undefined; see
-.IR sigvec (2)
-for more information.
+The signal stack is reset to be undefined (see
+.IR sigvec (2)
+for more information).
.PP
Each process has
.I real
.PP
Each process has
.I real
-user and group IDs and a
+user and group IDs and an
.I effective
user and group IDs. The
.I real
.I effective
user and group IDs. The
.I real
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
-.\" @(#)fcntl.2 6.3 (Berkeley) %G%
+.\" @(#)fcntl.2 6.4 (Berkeley) %G%
.TP
FASYNC
Enable the SIGIO signal to be sent to the process group
.TP
FASYNC
Enable the SIGIO signal to be sent to the process group
-when I/O is possible, e.g.
+when I/O is possible, e.g.,
upon availability of data to be read.
.SH "RETURN VALUE
Upon successful completion, the value returned depends on
upon availability of data to be read.
.SH "RETURN VALUE
Upon successful completion, the value returned depends on
.I Cmd
is F_DUPFD and
.I arg
.I Cmd
is F_DUPFD and
.I arg
-is negative or greater the maximum allowable number
+is negative or greater than the maximum allowable number
(see
.IR getdtablesize (2)).
.TP 15
(see
.IR getdtablesize (2)).
.TP 15