aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2003-02-24 22:53:26 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2003-02-24 22:53:26 +0000
commitace5be682d8e04a1dccf8939efa1babe059e3609 (patch)
tree9409aa78bd0bf64293f9e45238d4a82861b7663b /lib/libc
parent7d6ddd1027c61081bb4a1e54d6af199aaed5c185 (diff)
downloadsrc-ace5be682d8e04a1dccf8939efa1babe059e3609.tar.gz
src-ace5be682d8e04a1dccf8939efa1babe059e3609.zip
mdoc(7) police: Scheduled sweep.
Notes
Notes: svn path=/head/; revision=111447
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/sem_open.311
-rw-r--r--lib/libc/gen/signbit.32
-rw-r--r--lib/libc/posix1e/mac_prepare.325
-rw-r--r--lib/libc/sys/kse.211
4 files changed, 26 insertions, 23 deletions
diff --git a/lib/libc/gen/sem_open.3 b/lib/libc/gen/sem_open.3
index ff358f70b28f..6beee26d511b 100644
--- a/lib/libc/gen/sem_open.3
+++ b/lib/libc/gen/sem_open.3
@@ -128,9 +128,7 @@ and the global variable
.Va errno
is set to indicate the error.
.Pp
-.Rv -std sem_close
-.Pp
-.Rv -std sem_unlink
+.Rv -std sem_close sem_unlink
.Sh ERRORS
The
.Fn sem_open
@@ -204,9 +202,9 @@ The named semaphore does not exist.
.Xr umask 2 ,
.Xr unlink 2 ,
.Xr sem_getvalue 3 ,
-.Xr sem_wait 3 ,
-.Xr sem_trywait 3 ,
.Xr sem_post 3 ,
+.Xr sem_trywait 3 ,
+.Xr sem_wait 3 ,
.Xr sem 4
.Sh STANDARDS
The
@@ -225,4 +223,5 @@ This implementation places strict requirements on the value of
it must begin with a slash
.Pq Ql / ,
contain no other slash characters,
-and be less than 14 characters in length not including the terminating null.
+and be less than 14 characters in length
+not including the terminating null character.
diff --git a/lib/libc/gen/signbit.3 b/lib/libc/gen/signbit.3
index 9645d0a31be5..fcc7df45c297 100644
--- a/lib/libc/gen/signbit.3
+++ b/lib/libc/gen/signbit.3
@@ -40,7 +40,7 @@
The
.Fn signbit
macro takes an argument of
-.Va x
+.Fa x
and returns non-zero if the value of its sign is negative, otherwise 0.
.Sh SEE ALSO
.Xr fpclassify 3 ,
diff --git a/lib/libc/posix1e/mac_prepare.3 b/lib/libc/posix1e/mac_prepare.3
index 16887bd19d52..aebaeece9e31 100644
--- a/lib/libc/posix1e/mac_prepare.3
+++ b/lib/libc/posix1e/mac_prepare.3
@@ -1,12 +1,12 @@
.\" Copyright (c) 2002 Networks Associates Technology, Inc.
.\" All rights reserved.
-.\"
+.\"
.\" This software was developed for the FreeBSD Project by Chris
.\" Costello at Safeport Network Services and Network Associates Labs,
.\" the Security Research Division of Network Associates, Inc. under
.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
.\" DARPA CHATS research program.
-.\"
+.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -15,7 +15,7 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\"
+.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -27,16 +27,19 @@
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
-.\"
+.\"
.\" $FreeBSD$
-.Dd DECEMBER 12, 2002
+.\"
+.Dd December 12, 2002
.Os
.Dt MAC_PREPARE 3
.Sh NAME
-.Nm mac_prepare
-.Nd allocate appropriate storage for mac_t
+.Nm mac_prepare , mac_prepare_file_label ,
+.Nm mac_prepare_ifnet_label , mac_prepare_process_label
+.Nd allocate appropriate storage for
+.Vt mac_t
.Sh SYNOPSIS
-.In "sys/mac.h"
+.In sys/mac.h
.Ft int
.Fn mac_prepare "mac_t *mac" "char *elements"
.Ft int
@@ -55,7 +58,7 @@ for use by
.Pp
The
.Fn mac_prepare
-function accepts a list of policy names as a parameter and allocates the
+function accepts a list of policy names as a parameter, and allocates the
storage to fit those label elements accordingly.
.Pp
The
@@ -66,7 +69,7 @@ and
functions allocate the storage to fit file, network interface,
and process labels, respectively.
.Sh RETURN VALUES
-.Rv -std mac_prepare mac_prepare_file_label mac_prepare_ifnet_label mac_prepare_process_label
+.Rv -std
.Sh SEE ALSO
.Xr mac 3 ,
.Xr mac_free 3 ,
@@ -76,7 +79,7 @@ and process labels, respectively.
.Xr mac 4 ,
.Xr maclabel 7
.Sh STANDARDS
-POSIX.1e is described in IEEE POSIX.1e draft 17.
+POSIX.1e is described in IEEE POSIX.1e draft 17.
Discussion of the draft
continues on the cross-platform POSIX.1e implementation mailing list.
To join this list, see the
diff --git a/lib/libc/sys/kse.2 b/lib/libc/sys/kse.2
index 51d08e42058d..0cfbac10ef09 100644
--- a/lib/libc/sys/kse.2
+++ b/lib/libc/sys/kse.2
@@ -172,7 +172,8 @@ and any KSE in a KSE group may be assigned by the kernel to any runnable
(in the kernel) thread associated with that KSE group.
In practice, the kernel attempts to preserve the affinity between threads
and actual CPUs to optimize cache behavior, but this is invisible to the
-user process. (Affinity is not yet implemented).
+user process.
+(Affinity is not yet implemented.)
.Pp
Each KSE has a unique
.Sy "KSE mailbox"
@@ -268,7 +269,7 @@ instead, the KSE just looses the association with its mailbox and
.Fn kse_exit
returns normally.
This returns the process to its original, unthreaded state.
-(this is not yet implemented).
+(This is not yet implemented.)
.Pp
The
.Fn kse_release
@@ -324,7 +325,7 @@ When a process has at least one KSE with an associated mailbox, then
signals might no longer be delivered on the process stack.
Instead, signals may be delivered via upcalls.
Multiple signals may be delivered with one upcall.
-(This feature is not yet coded).
+(This feature is not yet coded.)
.Pp
If there are multiple KSE groups in the process, which KSE group is
chosen to deliver the signal is indeterminate.
@@ -436,7 +437,8 @@ contains the list of signals caught by this process since the previous
upcall to any KSE in the process.
As long as there exists one or more KSEs with an associated mailbox in
the user process, signals are delivered this way rather than the
-traditional way. (This has not bein implemented and may change).
+traditional way.
+(This has not been implemented and may change.)
.Pp
.Va km_timeofday
is set by the kernel to the current system time before performing
@@ -521,7 +523,6 @@ system calls
do not return if successful.
.Pp
All of these system calls return a non-zero error code in case of an error.
-.Pp
.Sh ERRORS
The
.Fn kse_create