diff options
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/basename.3 | 2 | ||||
| -rw-r--r-- | man3/catopen.3 | 2 | ||||
| -rw-r--r-- | man3/clock_getres.3 | 4 | ||||
| -rw-r--r-- | man3/ferror.3 | 6 | ||||
| -rw-r--r-- | man3/fopen.3 | 6 | ||||
| -rw-r--r-- | man3/fseek.3 | 6 | ||||
| -rw-r--r-- | man3/getline.3 | 2 | ||||
| -rw-r--r-- | man3/gets.3 | 10 | ||||
| -rw-r--r-- | man3/getw.3 | 2 | ||||
| -rw-r--r-- | man3/insque.3 | 1 | ||||
| -rw-r--r-- | man3/login.3 | 2 | ||||
| -rw-r--r-- | man3/longjmp.3 | 1 | ||||
| -rw-r--r-- | man3/makecontext.3 | 2 | ||||
| -rw-r--r-- | man3/mq_getattr.3 | 1 | ||||
| -rw-r--r-- | man3/netlink.3 | 2 | ||||
| -rw-r--r-- | man3/puts.3 | 9 | ||||
| -rw-r--r-- | man3/random.3 | 4 | ||||
| -rw-r--r-- | man3/re_comp.3 | 2 | ||||
| -rw-r--r-- | man3/sem_wait.3 | 2 | ||||
| -rw-r--r-- | man3/setbuf.3 | 6 | ||||
| -rw-r--r-- | man3/setjmp.3 | 1 | ||||
| -rw-r--r-- | man3/ttyname.3 | 2 |
22 files changed, 42 insertions, 33 deletions
diff --git a/man3/basename.3 b/man3/basename.3 index e24201266c..043c7ead5c 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 0dd3c7be27..05f858594a 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 078dc63d44..8451cf6d4b 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 43443095f6..76d9b5123b 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 8d322631c3..742fb13533 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 7b5ef6dfb4..334f202662 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 911632d54f..8b97782471 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 52a90cd1fe..a802cc1056 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 2f63c37793..26e28baf77 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 484a31eff1..30de7a88df 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 e4bba60bd5..d15d8732ff 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 075d771973..24348c0ee6 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 d9e4a59f35..a111055c55 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 de77b25a6e..8db2f01871 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 8cd4bc171e..708d786773 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 2799f0cbde..7bd0e44e16 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 d136b8eac8..87634cb56f 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 c0c22dc233..73b5ea2e79 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 e9083e7e81..cfd8192aa6 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 c97b0af755..ea31810858 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 9d37473a7b..a614c24a0e 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 6fd18e5557..2e43f41cdc 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 |
