summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-03-27 20:49:07 +0000
committermpp <mpp@FreeBSD.org>1996-03-27 20:49:07 +0000
commit822fdcab93140306c21991b7fe837e606e75b48e (patch)
tree56c4c6b3ee0f1367c7bb50d3cb70ee35ec089c82 /lib/libc/sys
parentcd9e381ea0b409efec3ad4c0f4633f95a1eac734 (diff)
downloadFreeBSD-src-822fdcab93140306c21991b7fe837e606e75b48e.zip
FreeBSD-src-822fdcab93140306c21991b7fe837e606e75b48e.tar.gz
Added missing section numbers to a bunch of .Xr macros, or
converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/_exit.22
-rw-r--r--lib/libc/sys/brk.26
-rw-r--r--lib/libc/sys/close.22
-rw-r--r--lib/libc/sys/fcntl.24
-rw-r--r--lib/libc/sys/fork.24
-rw-r--r--lib/libc/sys/getrlimit.22
-rw-r--r--lib/libc/sys/getsockopt.210
-rw-r--r--lib/libc/sys/intro.22
-rw-r--r--lib/libc/sys/open.22
-rw-r--r--lib/libc/sys/rfork.22
-rw-r--r--lib/libc/sys/stat.22
-rw-r--r--lib/libc/sys/utimes.22
-rw-r--r--lib/libc/sys/vfork.24
13 files changed, 22 insertions, 22 deletions
diff --git a/lib/libc/sys/_exit.2 b/lib/libc/sys/_exit.2
index 73e6062..12a5f7e 100644
--- a/lib/libc/sys/_exit.2
+++ b/lib/libc/sys/_exit.2
@@ -53,7 +53,7 @@ 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.
.It
If the parent process of the calling process has an outstanding
-.Xr wait
+.Xr wait 2
call
or catches the
.Dv SIGCHLD
diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2
index 7580f38..0cfca78 100644
--- a/lib/libc/sys/brk.2
+++ b/lib/libc/sys/brk.2
@@ -94,7 +94,7 @@ it will not be possible to set the break
beyond the
.Em rlim_max
value returned from a call to
-.Xr getrlimit ,
+.Xr getrlimit 2 ,
e.g.
.Dq qetext + rlp\(->rlim_max.
(see
@@ -114,7 +114,7 @@ otherwise -1 with
.Va errno
set to indicate why the allocation failed.
.Sh ERRORS
-.Xr Sbrk
+.Fn Sbrk
will fail and no additional memory will be allocated if
one of the following are true:
.Bl -tag -width [ENOMEM]
@@ -139,7 +139,7 @@ Setting the break may fail due to a temporary lack of
swap space. It is not possible to distinguish this
from a failure caused by exceeding the maximum size of
the data segment without consulting
-.Xr getrlimit .
+.Xr getrlimit 2 .
.Sh HISTORY
A
.Nm
diff --git a/lib/libc/sys/close.2 b/lib/libc/sys/close.2
index 3cb3d51..3a64dac 100644
--- a/lib/libc/sys/close.2
+++ b/lib/libc/sys/close.2
@@ -78,7 +78,7 @@ of the descriptors can be rearranged with
or deleted with
.Fn close
before the
-.Xr execve
+.Xr execve 2
is attempted, but if some of these descriptors will still
be needed if the execve fails, it is necessary to arrange for them
to be closed if the execve succeeds.
diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2
index 37fbb34..87b97f0 100644
--- a/lib/libc/sys/fcntl.2
+++ b/lib/libc/sys/fcntl.2
@@ -128,9 +128,9 @@ flags are as follows:
.Bl -tag -width O_NONBLOCKX
.It Dv O_NONBLOCK
Non-blocking I/O; if no data is available to a
-.Xr read
+.Xr read 2
call, or if a
-.Xr write
+.Xr write 2
operation would block,
the read or write call returns -1 with the error
.Er EAGAIN .
diff --git a/lib/libc/sys/fork.2 b/lib/libc/sys/fork.2
index 0c290f6..b8d465a 100644
--- a/lib/libc/sys/fork.2
+++ b/lib/libc/sys/fork.2
@@ -59,9 +59,9 @@ for instance, file pointers in file objects are shared between
the child and the parent, so that an
.Xr lseek 2
on a descriptor in the child process can affect a subsequent
-.Xr read
+.Xr read 2
or
-.Xr write
+.Xr write 2
by the parent.
This descriptor copying is also used by the shell to
establish standard input and output for newly created processes
diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2
index 33c3ddd..42b9028 100644
--- a/lib/libc/sys/getrlimit.2
+++ b/lib/libc/sys/getrlimit.2
@@ -60,7 +60,7 @@ parameter is one of the following:
.Bl -tag -width RLIMIT_FSIZEAA
.It Li RLIMIT_CORE
The largest size (in bytes)
-.Xr core
+.Xr core 5
file that may be created.
.It Li RLIMIT_CPU
The maximum amount of cpu time (in seconds) to be used by
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2
index ee0ab72..55098bc 100644
--- a/lib/libc/sys/getsockopt.2
+++ b/lib/libc/sys/getsockopt.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)getsockopt.2 8.3 (Berkeley) 4/19/94
-.\" $Id: getsockopt.2,v 1.3 1996/01/22 00:01:59 julian Exp $
+.\" $Id: getsockopt.2,v 1.4 1996/02/11 22:34:21 mpp Exp $
.\"
.Dd November 3, 1995
.Dt GETSOCKOPT 2
@@ -190,7 +190,7 @@ is performed.
If the socket promises reliable delivery of data and
.Dv SO_LINGER is set,
the system will block the process on the
-.Xr close
+.Xr close 2
attempt until it is able to transmit the data or until it decides it
is unable to deliver the information (a timeout period, termed the
linger interval, is specified in the
@@ -201,7 +201,7 @@ is requested).
If
.Dv SO_LINGER
is disabled and a
-.Xr close
+.Xr close 2
is issued, the system will process the close in a manner that allows
the process to continue as quickly as possible.
.Pp
@@ -215,9 +215,9 @@ With protocols that support out-of-band data, the
option
requests that out-of-band data be placed in the normal data input queue
as received; it will then be accessible with
-.Xr recv
+.Xr recv 2
or
-.Xr read
+.Xr read 2
calls without the
.Dv MSG_OOB
flag.
diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2
index 070e497..79aad8a 100644
--- a/lib/libc/sys/intro.2
+++ b/lib/libc/sys/intro.2
@@ -497,7 +497,7 @@ as the group,
but is in a different process group.
Note that when a process exits, the parent process for its children
is changed to be
-.Xr init ,
+.Nm init ,
which is in a separate session.
Not all members of an orphaned process group are necessarily orphaned
processes (those whose creating process has exited).
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 479a209..bb75262 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -136,7 +136,7 @@ When a new file is created it is given the group of the directory
which contains it.
.Pp
The new descriptor is set to remain open across
-.Xr execve
+.Xr execve 2
system calls; see
.Xr close 2
and
diff --git a/lib/libc/sys/rfork.2 b/lib/libc/sys/rfork.2
index 6158f51..9a86371 100644
--- a/lib/libc/sys/rfork.2
+++ b/lib/libc/sys/rfork.2
@@ -82,7 +82,7 @@ will sleep, if necessary, until required process resources are available.
.Pp
.Fn Fork
can be implemented as a call to
-.Xr rfork "RFFDG|RFPROC"
+.Fn rfork "RFFDG|RFPROC"
but isn't for backwards compatibility.
.Sh ERRORS
.Fn Rfork
diff --git a/lib/libc/sys/stat.2 b/lib/libc/sys/stat.2
index 27bc183..51a5b2e 100644
--- a/lib/libc/sys/stat.2
+++ b/lib/libc/sys/stat.2
@@ -256,7 +256,7 @@ depend on the time stamps being contiguous (in calls to
.Xr symlink 7
.Sh BUGS
Applying
-.Xr fstat
+.Fn fstat
to a socket (and thus to a pipe)
returns a zeroed buffer,
except for the blocksize field,
diff --git a/lib/libc/sys/utimes.2 b/lib/libc/sys/utimes.2
index 1ebeb37..125b619 100644
--- a/lib/libc/sys/utimes.2
+++ b/lib/libc/sys/utimes.2
@@ -82,7 +82,7 @@ and the effective user ID of the process does not
match the owner of the file, and is not the super-user, and write
access is denied.
.It Bq Er EFAULT
-.Xr File
+.Fa File
or
.Fa times
points outside the process's allocated address space.
diff --git a/lib/libc/sys/vfork.2 b/lib/libc/sys/vfork.2
index b708bde..0d0dbf0 100644
--- a/lib/libc/sys/vfork.2
+++ b/lib/libc/sys/vfork.2
@@ -57,7 +57,7 @@ control until a call to
.Xr execve 2
or an exit (either by a call to
.Xr exit 3
-or abnormally.)
+or abnormally).
The parent process is suspended while the child is using its resources.
.Pp
.Fn Vfork
@@ -66,7 +66,7 @@ the parent's context.
.Pp
.Fn Vfork
can normally be used just like
-.Xr fork .
+.Xr fork 2 .
It does not work, however, to return while running in the childs context
from the procedure that called
.Fn vfork
OpenPOWER on IntegriCloud