diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/adjtime.2 | 2 | ||||
-rw-r--r-- | lib/libc/sys/bind.2 | 2 | ||||
-rw-r--r-- | lib/libc/sys/connect.2 | 2 | ||||
-rw-r--r-- | lib/libc/sys/getfh.2 | 2 | ||||
-rw-r--r-- | lib/libc/sys/getitimer.2 | 2 | ||||
-rw-r--r-- | lib/libc/sys/getrlimit.2 | 2 | ||||
-rw-r--r-- | lib/libc/sys/gettimeofday.2 | 2 | ||||
-rw-r--r-- | lib/libc/sys/kill.2 | 3 | ||||
-rw-r--r-- | lib/libc/sys/listen.2 | 3 | ||||
-rw-r--r-- | lib/libc/sys/profil.2 | 3 | ||||
-rw-r--r-- | lib/libc/sys/quotactl.2 | 3 | ||||
-rw-r--r-- | lib/libc/sys/revoke.2 | 3 | ||||
-rw-r--r-- | lib/libc/sys/shutdown.2 | 1 |
13 files changed, 18 insertions, 12 deletions
diff --git a/lib/libc/sys/adjtime.2 b/lib/libc/sys/adjtime.2 index ddb8137..04673ad 100644 --- a/lib/libc/sys/adjtime.2 +++ b/lib/libc/sys/adjtime.2 @@ -40,7 +40,7 @@ .Sh SYNOPSIS .Fd #include <sys/time.h> .Ft int -.Fn adjtime "struct timeval *delta" "struct timeval *olddelta" +.Fn adjtime "const struct timeval *delta" "struct timeval *olddelta" .Sh DESCRIPTION .Fn Adjtime makes small adjustments to the system time, as returned by diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2 index 2094852..ce6ca0c 100644 --- a/lib/libc/sys/bind.2 +++ b/lib/libc/sys/bind.2 @@ -41,7 +41,7 @@ .Fd #include <sys/types.h> .Fd #include <sys/socket.h> .Ft int -.Fn bind "int s" "struct sockaddr *name" "int namelen" +.Fn bind "int s" "const struct sockaddr *name" "int namelen" .Sh DESCRIPTION .Fn Bind assigns a name to an unnamed socket. diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2 index 569e3e4..f328d86 100644 --- a/lib/libc/sys/connect.2 +++ b/lib/libc/sys/connect.2 @@ -41,7 +41,7 @@ .Fd #include <sys/types.h> .Fd #include <sys/socket.h> .Ft int -.Fn connect "int s" "struct sockaddr *name" "int namelen" +.Fn connect "int s" "const struct sockaddr *name" "int namelen" .Sh DESCRIPTION The parameter .Fa s diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2 index 04f19cd..44ac7e7 100644 --- a/lib/libc/sys/getfh.2 +++ b/lib/libc/sys/getfh.2 @@ -41,7 +41,7 @@ .Fd #include <sys/param.h> .Fd #include <sys/mount.h> .Ft int -.Fn getfh "char *path" "fhandle_t *fhp" +.Fn getfh "const char *path" "fhandle_t *fhp" .Sh DESCRIPTION .Fn Getfh returns a file handle for the specified file or directory diff --git a/lib/libc/sys/getitimer.2 b/lib/libc/sys/getitimer.2 index 2337641..c210248 100644 --- a/lib/libc/sys/getitimer.2 +++ b/lib/libc/sys/getitimer.2 @@ -46,7 +46,7 @@ .Ft int .Fn getitimer "int which" "struct itimerval *value" .Ft int -.Fn setitimer "int which" "struct itimerval *value" "struct itimerval *ovalue" +.Fn setitimer "int which" "const struct itimerval *value" "struct itimerval *ovalue" .Sh DESCRIPTION The system provides each process with three interval timers, defined in diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2 index 651223f..6725520 100644 --- a/lib/libc/sys/getrlimit.2 +++ b/lib/libc/sys/getrlimit.2 @@ -45,7 +45,7 @@ .Ft int .Fn getrlimit "int resource" "struct rlimit *rlp" .Ft int -.Fn setrlimit "int resource" "struct rlimit *rlp" +.Fn setrlimit "int resource" "const struct rlimit *rlp" .Sh DESCRIPTION Limits on the consumption of system resources by the current process and each process it creates may be obtained with the diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2 index 5805fdb..06ee8b1 100644 --- a/lib/libc/sys/gettimeofday.2 +++ b/lib/libc/sys/gettimeofday.2 @@ -43,7 +43,7 @@ .Ft int .Fn gettimeofday "struct timeval *tp" "struct timezone *tzp" .Ft int -.Fn settimeofday "struct timeval *tp" "struct timezone *tzp" +.Fn settimeofday "const struct timeval *tp" "const struct timezone *tzp" .Sh DESCRIPTION .Bf -symbolic Note: timezone is no longer used; this information is kept outside diff --git a/lib/libc/sys/kill.2 b/lib/libc/sys/kill.2 index bb6defc..6234bc1 100644 --- a/lib/libc/sys/kill.2 +++ b/lib/libc/sys/kill.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)kill.2 8.3 (Berkeley) 4/19/94 -.\" $Id$ +.\" $Id: kill.2,v 1.6 1997/02/22 15:03:55 peter Exp $ .\" .Dd April 19, 1994 .Dt KILL 2 @@ -39,6 +39,7 @@ .Nm kill .Nd send signal to a process .Sh SYNOPSIS +.Fd #include <sys/types.h> .Fd #include <signal.h> .Ft int .Fn kill "pid_t pid" "int sig" diff --git a/lib/libc/sys/listen.2 b/lib/libc/sys/listen.2 index 2319031..a9b503f 100644 --- a/lib/libc/sys/listen.2 +++ b/lib/libc/sys/listen.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" From: @(#)listen.2 8.2 (Berkeley) 12/11/93 -.\" $Id$ +.\" $Id: listen.2,v 1.9 1997/02/22 15:03:59 peter Exp $ .\" .Dd November 3, 1995 .Dt LISTEN 2 @@ -39,6 +39,7 @@ .Nm listen .Nd listen for connections on a socket .Sh SYNOPSIS +.Fd #include <sys/types.h> .Fd #include <sys/socket.h> .Ft int .Fn listen "int s" "int backlog" diff --git a/lib/libc/sys/profil.2 b/lib/libc/sys/profil.2 index 8db74ba..a329eee 100644 --- a/lib/libc/sys/profil.2 +++ b/lib/libc/sys/profil.2 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)profil.2 8.1 (Berkeley) 6/4/93 -.\" $Id$ +.\" $Id: profil.2,v 1.5 1997/02/22 15:04:10 peter Exp $ .\" .Dd "June 4, 1993" .Dt PROFIL 2 @@ -42,6 +42,7 @@ .Nm profil .Nd control process profiling .Sh SYNOPSIS +.Fd #include <unistd.h> .Ft int .Fn profil "char *samples" "int size" "int offset" "int scale" .Sh DESCRIPTION diff --git a/lib/libc/sys/quotactl.2 b/lib/libc/sys/quotactl.2 index c75c78f..fc7b667 100644 --- a/lib/libc/sys/quotactl.2 +++ b/lib/libc/sys/quotactl.2 @@ -41,7 +41,8 @@ .Nm quotactl .Nd manipulate filesystem quotas .Sh SYNOPSIS -.Fd #include <ufs/ufs/quota.h> /* for ufs quotas */ +.Fd #include <sys/types.h> +.Fd #include <ufs/ufs/quota.h> .Ft int .Fn quotactl "const char *path" "int cmd" "int id" "char *addr" .Sh DESCRIPTION diff --git a/lib/libc/sys/revoke.2 b/lib/libc/sys/revoke.2 index 93dfdee..b64c9dc 100644 --- a/lib/libc/sys/revoke.2 +++ b/lib/libc/sys/revoke.2 @@ -41,8 +41,9 @@ .Nm revoke .Nd revoke file access .Sh SYNOPSIS +.Fd #include <unistd.h> .Ft int -.Fn revoke "char *path" +.Fn revoke "const char *path" .Sh DESCRIPTION The .Fn revoke diff --git a/lib/libc/sys/shutdown.2 b/lib/libc/sys/shutdown.2 index 3059793..b83763f 100644 --- a/lib/libc/sys/shutdown.2 +++ b/lib/libc/sys/shutdown.2 @@ -38,6 +38,7 @@ .Nm shutdown .Nd shut down part of a full-duplex connection .Sh SYNOPSIS +.Fd #include <sys/types.h> .Fd #include <sys/socket.h> .Ft int .Fn shutdown "int s" "int how" |