summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-12-23 13:45:24 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-12-23 13:45:24 +0000
commit5895e7eb8db03c2a60a100dfa0fe6a6515bf718c (patch)
tree7357285775d55350b962bfae54130fb3ef1514ba
parentd9cf37f470adcba2f4df7866155499a5df58461b (diff)
wspace in SYNOPSIS
-rw-r--r--man2/getsockopt.21
-rw-r--r--man2/gettimeofday.24
-rw-r--r--man2/mlock.22
-rw-r--r--man2/mmap.21
-rw-r--r--man2/open.21
-rw-r--r--man2/send.24
-rw-r--r--man2/wait.24
-rw-r--r--man3/basename.32
-rw-r--r--man3/catopen.32
-rw-r--r--man3/clock_getres.34
-rw-r--r--man3/ferror.36
-rw-r--r--man3/fopen.36
-rw-r--r--man3/fseek.36
-rw-r--r--man3/getline.32
-rw-r--r--man3/gets.310
-rw-r--r--man3/getw.32
-rw-r--r--man3/insque.31
-rw-r--r--man3/login.32
-rw-r--r--man3/longjmp.31
-rw-r--r--man3/makecontext.32
-rw-r--r--man3/mq_getattr.31
-rw-r--r--man3/netlink.32
-rw-r--r--man3/puts.39
-rw-r--r--man3/random.34
-rw-r--r--man3/re_comp.32
-rw-r--r--man3/sem_wait.32
-rw-r--r--man3/setbuf.36
-rw-r--r--man3/setjmp.31
-rw-r--r--man3/ttyname.32
-rw-r--r--man4/dsp56k.41
-rw-r--r--man7/rtnetlink.72
-rw-r--r--man7/socket.72
-rw-r--r--man7/tcp.72
-rw-r--r--man7/udp.72
34 files changed, 54 insertions, 47 deletions
diff --git a/man2/getsockopt.2 b/man2/getsockopt.2
index 1add2784..39adf92a 100644
--- a/man2/getsockopt.2
+++ b/man2/getsockopt.2
@@ -50,7 +50,6 @@ getsockopt, setsockopt \- get and set options on sockets
.sp
.BI "int getsockopt(int " s ", int " level ", int " optname ,
.BI " void *" optval ", socklen_t *" optlen );
-.sp
.BI "int setsockopt(int " s ", int " level ", int " optname ,
.BI " const void *" optval ", socklen_t " optlen );
.fi
diff --git a/man2/gettimeofday.2 b/man2/gettimeofday.2
index 8a562b31..7bf81d42 100644
--- a/man2/gettimeofday.2
+++ b/man2/gettimeofday.2
@@ -45,8 +45,8 @@ gettimeofday, settimeofday \- get / set time
.sp
.BI "int gettimeofday(struct timeval *" tv ", struct timezone *" tz );
.br
-.BI "int settimeofday(const struct timeval *" tv
-.BI ", const struct timezone *" tz );
+.BI "int settimeofday(const struct timeval *" tv ,
+.BI "const struct timezone *" tz );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
diff --git a/man2/mlock.2 b/man2/mlock.2
index 1ced0bdb..5dede905 100644
--- a/man2/mlock.2
+++ b/man2/mlock.2
@@ -32,11 +32,9 @@ mlock, munlock, mlockall, munlockall \- lock and unlock memory
.B #include <sys/mman.h>
.sp
.BI "int mlock(const void *" addr ", size_t " len ");
-.sp
.BI "int munlock(const void *" addr ", size_t " len ");
.sp
.BI "int mlockall(int " flags ");
-.sp
.B int munlockall(void);
.fi
.SH DESCRIPTION
diff --git a/man2/mmap.2 b/man2/mmap.2
index 9d97c91f..33fc2adf 100644
--- a/man2/mmap.2
+++ b/man2/mmap.2
@@ -46,7 +46,6 @@ mmap, munmap \- map or unmap files or devices into memory
.BI "void *mmap(void *" start ", size_t " length \
", int " prot ", int " flags ,
.BI " int " fd ", off_t " offset );
-.sp
.BI "int munmap(void *" start ", size_t " length );
.fi
.SH DESCRIPTION
diff --git a/man2/open.2 b/man2/open.2
index c5c00ca2..7cfee87d 100644
--- a/man2/open.2
+++ b/man2/open.2
@@ -48,6 +48,7 @@ open, creat \- open and possibly create a file or device
.sp
.BI "int open(const char *" pathname ", int " flags );
.BI "int open(const char *" pathname ", int " flags ", mode_t " mode );
+
.BI "int creat(const char *" pathname ", mode_t " mode );
.fi
.SH DESCRIPTION
diff --git a/man2/send.2 b/man2/send.2
index 8d9be3a1..da3318ff 100644
--- a/man2/send.2
+++ b/man2/send.2
@@ -45,11 +45,11 @@ send, sendto, sendmsg \- send a message on a socket
.sp
.BI "ssize_t send(int " s ", const void *" buf ", size_t " len \
", int " flags );
-.br
+
.BI "ssize_t sendto(int " s ", const void *" buf ", size_t " len \
", int " flags ,
.BI " const struct sockaddr *" to ", socklen_t " tolen );
-.br
+
.BI "ssize_t sendmsg(int " s ", const struct msghdr *" msg \
", int " flags );
.fi
diff --git a/man2/wait.2 b/man2/wait.2
index 5eba9253..bb022caf 100644
--- a/man2/wait.2
+++ b/man2/wait.2
@@ -55,9 +55,9 @@ wait, waitpid, waitid \- wait for process to change state
.B #include <sys/wait.h>
.sp
.BI "pid_t wait(int *" "status" );
-.br
+
.BI "pid_t waitpid(pid_t " pid ", int *" status ", int " options );
-.br
+
.BI "int waitid(idtype_t " idtype ", id_t " id \
", siginfo_t *" infop ", int " options );
.sp
diff --git a/man3/basename.3 b/man3/basename.3
index e2420126..043c7ead 100644
--- a/man3/basename.3
+++ b/man3/basename.3
@@ -27,7 +27,7 @@ basename, dirname \- parse pathname components
.B #include <libgen.h>
.sp
.BI "char *dirname(char *" path );
-.br
+
.BI "char *basename(char *" path );
.fi
.SH DESCRIPTION
diff --git a/man3/catopen.3 b/man3/catopen.3
index 0dd3c7be..05f85859 100644
--- a/man3/catopen.3
+++ b/man3/catopen.3
@@ -30,7 +30,7 @@ catopen, catclose \- open/close a message catalog
.B #include <nl_types.h>
.sp
.BI "nl_catd catopen(const char *" name ", int " flag );
-.br
+
.BI "int catclose(nl_catd " catalog );
.SH DESCRIPTION
The function
diff --git a/man3/clock_getres.3 b/man3/clock_getres.3
index 078dc63d..8451cf6d 100644
--- a/man3/clock_getres.3
+++ b/man3/clock_getres.3
@@ -34,9 +34,9 @@ clock_getres, clock_gettime, clock_settime \- clock and time functions
.B #include <time.h>
.sp
.BI "int clock_getres(clockid_t " clk_id ", struct timespec *" res );
-.br
+
.BI "int clock_gettime(clockid_t " clk_id ", struct timespec *" tp );
-.br
+
.BI "int clock_settime(clockid_t " clk_id ", const struct timespec *" tp );
.sp
.in -4n
diff --git a/man3/ferror.3 b/man3/ferror.3
index 43443095..76d9b512 100644
--- a/man3/ferror.3
+++ b/man3/ferror.3
@@ -46,11 +46,11 @@ clearerr, feof, ferror, fileno \- check and reset stream status
.B #include <stdio.h>
.sp
.BI "void clearerr(FILE *" stream );
-.br
+
.BI "int feof(FILE *" stream );
-.br
+C.br
.BI "int ferror(FILE *" stream );
-.br
+
.BI "int fileno(FILE *" stream );
.sp
.in -4n
diff --git a/man3/fopen.3 b/man3/fopen.3
index 8d322631..742fb135 100644
--- a/man3/fopen.3
+++ b/man3/fopen.3
@@ -43,13 +43,15 @@
.SH NAME
fopen, fdopen, freopen \- stream open functions
.SH SYNOPSIS
+.nf
.B #include <stdio.h>
.sp
.BI "FILE *fopen(const char *" path ", const char *" mode );
-.br
+
.BI "FILE *fdopen(int " fildes ", const char *" mode );
-.br
+
.BI "FILE *freopen(const char *" path ", const char *" mode ", FILE *" stream );
+.fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
diff --git a/man3/fseek.3 b/man3/fseek.3
index 7b5ef6df..334f2026 100644
--- a/man3/fseek.3
+++ b/man3/fseek.3
@@ -44,11 +44,11 @@ fgetpos, fseek, fsetpos, ftell, rewind \- reposition a stream
.B #include <stdio.h>
.sp
.BI "int fseek(FILE *" stream ", long " offset ", int " whence );
-.br
+
.BI "long ftell(FILE *" stream );
-.br
+
.BI "void rewind(FILE *" stream );
-.br
+
.BI "int fgetpos(FILE *" stream ", fpos_t *" pos );
.br
.BI "int fsetpos(FILE *" stream ", fpos_t *" pos );
diff --git a/man3/getline.3 b/man3/getline.3
index 911632d5..8b977824 100644
--- a/man3/getline.3
+++ b/man3/getline.3
@@ -30,7 +30,7 @@ getline, getdelim \- delimited string input
.B #include <stdio.h>
.sp
.BI "ssize_t getline(char **" lineptr ", size_t *" n ", FILE *" stream );
-.br
+
.BI "ssize_t getdelim(char **" lineptr ", size_t *" n ", int " delim ", FILE *" stream );
.SH DESCRIPTION
.BR getline ()
diff --git a/man3/gets.3 b/man3/gets.3
index 52a90cd1..a802cc10 100644
--- a/man3/gets.3
+++ b/man3/gets.3
@@ -30,15 +30,15 @@ fgetc, fgets, getc, getchar, gets, ungetc \- input of characters and strings
.B #include <stdio.h>
.sp
.BI "int fgetc(FILE *" stream );
-.br
+
.BI "char *fgets(char *" "s" ", int " "size" ", FILE *" "stream" );
-.br
+
.BI "int getc(FILE *" stream );
-.br
+
.B "int getchar(void);"
-.br
+
.BI "char *gets(char *" "s" );
-.br
+
.BI "int ungetc(int " c ", FILE *" stream );
.SH DESCRIPTION
.BR fgetc ()
diff --git a/man3/getw.3 b/man3/getw.3
index 2f63c377..26e28baf 100644
--- a/man3/getw.3
+++ b/man3/getw.3
@@ -28,7 +28,7 @@ getw, putw \- input and output of words (ints)
.B #include <stdio.h>
.sp
.BI "int getw(FILE *" stream );
-.br
+
.BI "int putw(int " w ", FILE *" stream );
.SH DESCRIPTION
.BR getw ()
diff --git a/man3/insque.3 b/man3/insque.3
index 484a31ef..30de7a88 100644
--- a/man3/insque.3
+++ b/man3/insque.3
@@ -36,6 +36,7 @@ insque, remque \- insert/remove an item from a queue
.B #include <search.h>
.sp
.BI "void insque(void *" elem ", void *" prev );
+
.BI "void remque(void *" elem );
.fi
.sp
diff --git a/man3/login.3 b/man3/login.3
index e4bba60b..d15d8732 100644
--- a/man3/login.3
+++ b/man3/login.3
@@ -28,7 +28,7 @@ login, logout \- write utmp and wtmp entries
.B #include <utmp.h>
.sp
.BI "void login(const struct utmp *" ut );
-.br
+.sp
.BI "int logout(const char *" ut_line );
.sp
Link with \fI\-lutil\fP.
diff --git a/man3/longjmp.3 b/man3/longjmp.3
index 075d7719..24348c0e 100644
--- a/man3/longjmp.3
+++ b/man3/longjmp.3
@@ -32,6 +32,7 @@ longjmp, siglongjmp \- non-local jump to a saved stack context
.sp
.nf
.BI "void longjmp(jmp_buf " env ", int " val );
+
.BI "void siglongjmp(sigjmp_buf " env ", int " val );
.fi
.ad b
diff --git a/man3/makecontext.3 b/man3/makecontext.3
index d9e4a59f..a111055c 100644
--- a/man3/makecontext.3
+++ b/man3/makecontext.3
@@ -28,7 +28,7 @@ makecontext, swapcontext \- manipulate user context
.sp
.BI "void makecontext(ucontext_t *" ucp ", void (*" func )(),
.BI "int " argc ", ...);"
-.br
+.sp
.BI "int swapcontext(ucontext_t *" oucp ", ucontext_t *" ucp );
.SH DESCRIPTION
In a System V-like environment, one has the type \fIucontext_t\fP defined in
diff --git a/man3/mq_getattr.3 b/man3/mq_getattr.3
index de77b25a..8db2f018 100644
--- a/man3/mq_getattr.3
+++ b/man3/mq_getattr.3
@@ -28,6 +28,7 @@ mq_getattr, mq_setattr \- get/set message queue attributes
.B #include <mqueue.h>
.sp
.BI "mqd_t mq_getattr(mqd_t " mqdes ", struct mq_attr *" attr );
+
.BI "mqd_t mq_setattr(mqd_t " mqdes ", struct mq_attr *" newattr ","
.BI " struct mq_attr *" oldattr );
.fi
diff --git a/man3/netlink.3 b/man3/netlink.3
index 8cd4bc17..708d7867 100644
--- a/man3/netlink.3
+++ b/man3/netlink.3
@@ -12,7 +12,7 @@ netlink \- Netlink macros
.B #include <asm/types.h>
.br
.B #include <linux/netlink.h>
-.br
+.sp
.BI "int NLMSG_ALIGN(size_t " len );
.br
.BI "int NLMSG_LENGTH(size_t " len );
diff --git a/man3/puts.3 b/man3/puts.3
index 2799f0cb..7bd0e44e 100644
--- a/man3/puts.3
+++ b/man3/puts.3
@@ -29,14 +29,15 @@ fputc, fputs, putc, putchar, puts \- output of characters and strings
.B #include <stdio.h>
.sp
.BI "int fputc(int " c ", FILE *" stream );
-.br
+
.BI "int fputs(const char *" "s" ", FILE *" "stream" );
-.br
+
.BI "int putc(int " c ", FILE *" stream );
-.br
+
.BI "int putchar(int " c );
-.br
+
.BI "int puts(const char *" "s" );
+.fi
.SH DESCRIPTION
.BR fputc ()
writes the character
diff --git a/man3/random.3 b/man3/random.3
index d136b8ea..87634cb5 100644
--- a/man3/random.3
+++ b/man3/random.3
@@ -36,9 +36,9 @@ random, srandom, initstate, setstate \- random number generator
.B #include <stdlib.h>
.sp
.B long int random(void);
-.br
+
.BI "void srandom(unsigned int " seed );
-.br
+
.BI "char *initstate(unsigned int " seed ", char *" state ", size_t " n );
.br
.BI "char *setstate(char *" state );
diff --git a/man3/re_comp.3 b/man3/re_comp.3
index c0c22dc2..73b5ea2e 100644
--- a/man3/re_comp.3
+++ b/man3/re_comp.3
@@ -33,7 +33,7 @@ re_comp, re_exec \- BSD regex functions
.B #include <regex.h>
.sp
.BI "char *re_comp(char *" regex );
-.br
+.sp
.BI "int re_exec(char *" string );
.SH DESCRIPTION
.BR re_comp ()
diff --git a/man3/sem_wait.3 b/man3/sem_wait.3
index e9083e7e..cfd8192a 100644
--- a/man3/sem_wait.3
+++ b/man3/sem_wait.3
@@ -28,7 +28,9 @@ sem_wait, sem_timedwait, sem_trywait \- lock a semaphore
.B #include <semaphore.h>
.sp
.BI "int sem_wait(sem_t *" sem );
+.sp
.BI "int sem_trywait(sem_t *" sem );
+.sp
.BI "int sem_timedwait(sem_t *" sem ", const struct timespec *" abs_timeout );
.fi
.sp
diff --git a/man3/setbuf.3 b/man3/setbuf.3
index c97b0af7..ea318108 100644
--- a/man3/setbuf.3
+++ b/man3/setbuf.3
@@ -51,11 +51,11 @@ setbuf, setbuffer, setlinebuf, setvbuf \- stream buffering operations
.B #include <stdio.h>
.sp
.BI "void setbuf(FILE *" stream ", char *" buf );
-.br
+.sp
.BI "void setbuffer(FILE *" stream ", char *" buf ", size_t " size );
-.br
+.sp
.BI "void setlinebuf(FILE *" stream );
-.br
+.sp
.BI "int setvbuf(FILE *" stream ", char *" buf ", int " mode
.BI ", size_t " size );
.ad
diff --git a/man3/setjmp.3 b/man3/setjmp.3
index 9d37473a..a614c24a 100644
--- a/man3/setjmp.3
+++ b/man3/setjmp.3
@@ -32,6 +32,7 @@ setjmp, sigsetjmp \- save stack context for non-local goto
.sp
.nf
.BI "int setjmp(jmp_buf " env );
+
.BI "int sigsetjmp(sigjmp_buf " env ", int " savesigs );
.fi
.ad b
diff --git a/man3/ttyname.3 b/man3/ttyname.3
index 6fd18e55..2e43f41c 100644
--- a/man3/ttyname.3
+++ b/man3/ttyname.3
@@ -31,7 +31,7 @@ ttyname, ttyname_r \- return name of a terminal
.B #include <unistd.h>
.sp
.BI "char *ttyname(int " fd );
-.br
+
.BI "int ttyname_r(int " fd ", char *" buf ", size_t " buflen );
.fi
.SH DESCRIPTION
diff --git a/man4/dsp56k.4 b/man4/dsp56k.4
index 10629202..a9d6ca1a 100644
--- a/man4/dsp56k.4
+++ b/man4/dsp56k.4
@@ -32,6 +32,7 @@ dsp56k \- DSP56001 interface device
.sp
.BI "ssize_t read(int " fd ", void *" data ", size_t " length );
.BI "ssize_t write(int " fd ", void *" data ", size_t " length );
+
.BI "int ioctl(int " fd ", DSP56K_UPLOAD, struct dsp56k_upload *" program );
.BI "int ioctl(int " fd ", DSP56K_SET_TX_WSIZE, int " wsize );
.BI "int ioctl(int " fd ", DSP56K_SET_RX_WSIZE, int " wsize );
diff --git a/man7/rtnetlink.7 b/man7/rtnetlink.7
index 60ba4df3..2f95fe20 100644
--- a/man7/rtnetlink.7
+++ b/man7/rtnetlink.7
@@ -19,7 +19,7 @@ rtnetlink, NETLINK_ROUTE \- Linux IPv4 routing socket
.B #include <linux/rtnetlink.h>
.br
.B #include <sys/socket.h>
-
+.sp
.BI "rtnetlink_socket = socket(PF_NETLINK, int " socket_type ", NETLINK_ROUTE);"
.SH DESCRIPTION
Rtnetlink allows the kernel's routing tables to be read and altered.
diff --git a/man7/socket.7 b/man7/socket.7
index 85dd96e8..d1d460f9 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -22,7 +22,7 @@
socket \- Linux socket interface
.SH SYNOPSIS
.B #include <sys/socket.h>
-.br
+.sp
.IB mysocket " = socket(int " socket_family ", int " socket_type ", int " protocol );
.SH DESCRIPTION
This manual page describes the Linux networking socket layer user
diff --git a/man7/tcp.7 b/man7/tcp.7
index 3af5b6da..9d485078 100644
--- a/man7/tcp.7
+++ b/man7/tcp.7
@@ -21,7 +21,7 @@ tcp \- TCP protocol
.B #include <netinet/in.h>
.br
.B #include <netinet/tcp.h>
-.br
+.sp
.B tcp_socket = socket(PF_INET, SOCK_STREAM, 0);
.SH DESCRIPTION
This is an implementation of the TCP protocol defined in
diff --git a/man7/udp.7 b/man7/udp.7
index 46535091..243d3134 100644
--- a/man7/udp.7
+++ b/man7/udp.7
@@ -12,7 +12,7 @@ udp \- User Datagram Protocol for IPv4
.B #include <sys/socket.h>
.br
.B #include <netinet/in.h>
-.br
+.sp
.B udp_socket = socket(PF_INET, SOCK_DGRAM, 0);
.SH DESCRIPTION
This is an implementation of the User Datagram Protocol