summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-02-14 07:47:37 +0000
committermpp <mpp@FreeBSD.org>1997-02-14 07:47:37 +0000
commit6a98120bf12e969772a97c58983f18fe332010a6 (patch)
tree8efa2e1c0eeaad2a07d388b88cc3fbcc9c14b75c
parent0034c7852d3adfa6a548f6029bafec95a57c02b0 (diff)
downloadFreeBSD-src-6a98120bf12e969772a97c58983f18fe332010a6.zip
FreeBSD-src-6a98120bf12e969772a97c58983f18fe332010a6.tar.gz
Style fixes.
-rw-r--r--share/man/man9/at_exit.921
-rw-r--r--share/man/man9/at_fork.917
-rw-r--r--share/man/man9/at_shutdown.922
3 files changed, 28 insertions, 32 deletions
diff --git a/share/man/man9/at_exit.9 b/share/man/man9/at_exit.9
index 3d30d24..c1981ff 100644
--- a/share/man/man9/at_exit.9
+++ b/share/man/man9/at_exit.9
@@ -34,10 +34,8 @@
.Nd ask that a function be run at exit.
.Sh SYNOPSIS
.Fd #include <sys/systm.h>
-
.Ft typedef void \*(lp*exitlist_fn\*(rp \*(lpstruct proc *\*(rp;
-
.Ft int
.Fn at_exit "exitlist_fn func"
.Ft int
@@ -48,27 +46,28 @@ The
facility allows a kernel module to ensure that it is notified
at any process exit.
The function
-.Ar func
+.Fa func
is called with the a pointer to the exiting process's proc structure.
.Pp
If the requirement for notification is removed, then the function
-.Nm rm_at_exit
+.Fn rm_at_exit
must be called with the exact
-.Ar func
+.Fa func
argument as the corresponding call to
.Fn at_exit .
.Pp
.Sh RETURN VALUES
-.Nm at_exit
-returns an errno, 0 meaning success.
-.Nm rm_at_exit
-returns the number of items removed (should be 0 or 1).
+The
+.Fa at_exit
+function returns an errno, 0 meaning success. The
+.Fn rm_at_exit
+function returns the number of items removed (should be 0 or 1).
.Sh SEE ALSO
.Xr _exit 2
.Sh HISTORY
The
-.Nm at_exit
-appeared in
+.Fn at_exit
+function appeared in
.Fx 2.2 .
.Sh BUGS
Since the exit queue is not sorted
diff --git a/share/man/man9/at_fork.9 b/share/man/man9/at_fork.9
index 3c560de..a22b486 100644
--- a/share/man/man9/at_fork.9
+++ b/share/man/man9/at_fork.9
@@ -34,10 +34,7 @@
.Nd ask that a function be run at fork.
.Sh SYNOPSIS
.Fd #include <sys/systm.h>
-
.Ft typedef void \*(lp*forklist_fn\*(rp \*(lpstruct proc*, struct proc*, int\*(rp;
-
-
.Ft void
.Fn at_fork "forklist_fn func"
.Ft void
@@ -48,7 +45,7 @@ The
facility allows a kernel module to ensure that it is notified
at any process fork.
The function
-.Ar func
+.Fa func
is called with the a pointer to the forking process's proc structure,
a pointer to the child's process structure and a flag word,
as used in
@@ -56,23 +53,23 @@ as used in
to indicate the type of fork.
.Pp
If the requirement for notification is removed, then the function
-.Nm rm_at_fork
+.Fn rm_at_fork
must be called with the exact
-.Ar func
+.Fa func
argument as the corresponding call to
.Fn at_fork .
.Pp
.Sh RETURN VALUES
-.Nm at_fork
+.Fn at_fork
returns an errno, 0 meaning success.
-.Nm rm_at_fork
+.Fn rm_at_fork
returns the number of items removed (should be 0 or 1).
.Sh SEE ALSO
.Xr fork 2
.Sh HISTORY
The
-.Nm at_fork
-appeared in
+.Fn at_fork
+function appeared in
.Fx 2.2 .
.Sh BUGS
Since the fork queue is not sorted
diff --git a/share/man/man9/at_shutdown.9 b/share/man/man9/at_shutdown.9
index bf198da..8544d31 100644
--- a/share/man/man9/at_shutdown.9
+++ b/share/man/man9/at_shutdown.9
@@ -48,34 +48,34 @@ The
facility allows a kernel module to ensure that it is notified
at system shutdown.
The function
-.Ar func
+.Fa func
is called with the flags indicating boot type, and the opaque argument
-.Ar arg
+.Fa arg
when the system is shut down.
.Pp
If the requirement for notification is removed, then the function
-.Nm rm_at_shutdown
+.Fn rm_at_shutdown
must be called with the exact
-.Ar func
+.Fa func
and
-.Ar arg
+.Fa arg
arguments as the corresponding call to
.Fn at_shutdown .
There are two shutdown queues, one run before the final sync and one after.
The last argument to
-.Nm at_shutdown
+.Fa at_shutdown
should be one of
-.Em SHUTDOWN_PRE_SYNC
+.Dv SHUTDOWN_PRE_SYNC
or
-.Em SHUTDOWN_POST_SYNC
+.Dv SHUTDOWN_POST_SYNC
to specify which queue should be used.
-.Nm rm_at_shutdown
+.Fn rm_at_shutdown
will remove an entry from either queue.
.Pp
.Sh RETURN VALUES
-.Nm at_shutdown
+.Fn at_shutdown
returns an error code, 0 meaning success.
-.Nm rm_at_shutdown
+.Fn rm_at_shutdown
returns the number of items removed (should be 0 or 1).
.Sh SEE ALSO
.Xr reboot 2 ,
OpenPOWER on IntegriCloud