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
6 changed files with 11 additions and 10 deletions

View File

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

View File

@ -41,9 +41,9 @@
.Fd #include <limits.h> .Fd #include <limits.h>
.Fd #include <stdlib.h> .Fd #include <stdlib.h>
.Ft int .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 .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 .Sh DESCRIPTION
The The
.Fn radixsort .Fn radixsort

View File

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

View File

@ -38,7 +38,9 @@
.Nm getpw .Nm getpw
.Nd get name from uid .Nd get name from uid
.Sh SYNOPSIS .Sh SYNOPSIS
.Fn getpw uid "char *buf" .Fd #include <sys/types.h>
.Ft int
.Fn getpw "uid_t uid" "char *buf"
.Sh DESCRIPTION .Sh DESCRIPTION
.Bf -symbolic .Bf -symbolic
The getpw function is made obsolete by getpwuid(3). 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 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $Id$ .\" $Id: ftpio.3,v 1.14 1997/02/22 15:06:48 peter Exp $
.\" .\"
.Dd June 17, 1996 .Dd June 17, 1996
.Dt ftpio 3 .Dt ftpio 3
@ -53,10 +53,10 @@
.Fn ftpErrString "int errno" .Fn ftpErrString "int errno"
.Ft time_t .Ft time_t
.Fn ftpGetModtime "FILE *stream, char *file" .Fn ftpGetModtime "FILE *stream, char *file"
.Ft size_t .Ft off_t
.Fn ftpGetSize "FILE *stream, char *file" .Fn ftpGetSize "FILE *stream, char *file"
.Ft FILE * .Ft FILE *
.Fn ftpGet "FILE *stream, char *file, int *seekto" .Fn ftpGet "FILE *stream, char *file, off_t *seekto"
.Ft FILE * .Ft FILE *
.Fn ftpPut "FILE *stream, char *file" .Fn ftpPut "FILE *stream, char *file"
.Ft int .Ft int

View File

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