Fixed #include and/or prototype bugs in synopsis.

This commit is contained in:
Bruce Evans 1997-04-19 15:57:20 +00:00
parent 7c0c241dea
commit a3315650db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25028
6 changed files with 11 additions and 10 deletions

View File

@ -39,8 +39,8 @@
.Nd aligned memory allocation function
.Sh SYNOPSIS
.Fd #include <unistd.h>
.Ft char *
.Fn valloc "unsigned size"
.Ft void *
.Fn valloc "size_t size"
.Sh DESCRIPTION
.Bf -symbolic
Valloc is obsoleted by the current version of malloc(3),

View File

@ -41,9 +41,9 @@
.Fd #include <limits.h>
.Fd #include <stdlib.h>
.Ft int
.Fn radixsort "u_char **base" "int nmemb" "u_char *table" "u_int endbyte"
.Fn radixsort "const unsigned char **base" "int nmemb" "const unsigned char *table" "unsigned endbyte"
.Ft int
.Fn sradixsort "u_char **base" "int nmemb" "u_char *table" "u_int endbyte"
.Fn sradixsort "const unsigned char **base" "int nmemb" "const unsigned char *table" "unsigned endbyte"
.Sh DESCRIPTION
The
.Fn radixsort

View File

@ -43,7 +43,7 @@
.Sh SYNOPSIS
.Fd #include <string.h>
.Ft char *
.Fn strsep "char **stringp" "char *delim"
.Fn strsep "char **stringp" "const char *delim"
.Sh DESCRIPTION
The
.Fn strsep

View File

@ -38,7 +38,9 @@
.Nm getpw
.Nd get name from uid
.Sh SYNOPSIS
.Fn getpw uid "char *buf"
.Fd #include <sys/types.h>
.Ft int
.Fn getpw "uid_t uid" "char *buf"
.Sh DESCRIPTION
.Bf -symbolic
The getpw function is made obsolete by getpwuid(3).

View File

@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $Id$
.\" $Id: ftpio.3,v 1.14 1997/02/22 15:06:48 peter Exp $
.\"
.Dd June 17, 1996
.Dt ftpio 3
@ -53,10 +53,10 @@
.Fn ftpErrString "int errno"
.Ft time_t
.Fn ftpGetModtime "FILE *stream, char *file"
.Ft size_t
.Ft off_t
.Fn ftpGetSize "FILE *stream, char *file"
.Ft FILE *
.Fn ftpGet "FILE *stream, char *file, int *seekto"
.Fn ftpGet "FILE *stream, char *file, off_t *seekto"
.Ft FILE *
.Fn ftpPut "FILE *stream, char *file"
.Ft int

View File

@ -38,7 +38,6 @@
.Nm kvm_getloadavg
.Nd get load average of the system
.Sh SYNOPSIS
.Fd #include <sys/resource.h>
.Fd #include <kvm.h>
.Ft int
.Fn kvm_getloadavg "kvm_t *kd" "double loadavg[]" "int nelem"