diff options
| -rw-r--r-- | man2/getdents.2 | 1 | ||||
| -rw-r--r-- | man2/gettid.2 | 1 | ||||
| -rw-r--r-- | man2/llseek.2 | 4 | ||||
| -rw-r--r-- | man2/mmap2.2 | 6 | ||||
| -rw-r--r-- | man2/modify_ldt.2 | 4 | ||||
| -rw-r--r-- | man2/pivot_root.2 | 2 | ||||
| -rw-r--r-- | man2/quotactl.2 | 2 | ||||
| -rw-r--r-- | man2/sysctl.2 | 6 | ||||
| -rw-r--r-- | man2/syslog.2 | 2 | ||||
| -rw-r--r-- | man2/tkill.2 | 4 |
10 files changed, 25 insertions, 7 deletions
diff --git a/man2/getdents.2 b/man2/getdents.2 index 1e4e7393ca..71a7a5132a 100644 --- a/man2/getdents.2 +++ b/man2/getdents.2 @@ -33,6 +33,7 @@ getdents \- get directory entries .B #include <linux/types.h> .B #include <linux/dirent.h> .B #include <linux/unistd.h> +.B #include <errno.h> .sp .B _syscall3(int, getdents, uint, fd, struct dirent *, dirp, uint, count) .sp diff --git a/man2/gettid.2 b/man2/gettid.2 index 44e197e713..5fc45d7583 100644 --- a/man2/gettid.2 +++ b/man2/gettid.2 @@ -28,6 +28,7 @@ gettid \- get thread identification .B #include <sys/types.h> .br .B #include <linux/unistd.h> +.B #include <errno.h> .sp .B _syscall0(pid_t,gettid) .sp diff --git a/man2/llseek.2 b/man2/llseek.2 index 3a14f89c74..0eb6e03eca 100644 --- a/man2/llseek.2 +++ b/man2/llseek.2 @@ -29,9 +29,11 @@ _llseek \- reposition read/write file offset .SH SYNOPSIS .B #include <unistd.h> .sp +.B #include <sys/types.h> .B #include <linux/unistd.h> +.B #include <errno.h> .sp -.B _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo, loff_t *, res, uint, wh) +.B _syscall5(int, _llseek, unsigned int, fd, unsigned long, hi, unsigned long, lo, loff_t *, res, unsigned int, wh) .sp .BI "int _llseek(unsigned int " fd ", unsigned long " offset_high , .BI "unsigned long " offset_low ", loff_t *" result ", unsigned int " whence ); diff --git a/man2/mmap2.2 b/man2/mmap2.2 index 690471b901..cd032cde51 100644 --- a/man2/mmap2.2 +++ b/man2/mmap2.2 @@ -33,9 +33,11 @@ mmap2 \- map files or devices into memory .B #include <sys/mman.h> .br .B #include <syscall.h> +.br +.B #include <errno.h> .sp -.BI "_syscall6(void *, " start ", size_t, " length ", int, " prot , -.BI "int, " flags ", int, " fd ", off_t, " pgoffset ) +.BI "_syscall6(void *, " mmap2 ", void *, " start ", size_t, " length , +.BI "int, " prot ", int, " flags ", int, " fd ", off_t, " pgoffset ) .sp .BI "void * mmap2(void *" start ", size_t " length ", int " prot , .BI "int " flags ", int " fd ", off_t " pgoffset ); diff --git a/man2/modify_ldt.2 b/man2/modify_ldt.2 index e684c3665a..f0ba2de905 100644 --- a/man2/modify_ldt.2 +++ b/man2/modify_ldt.2 @@ -26,9 +26,11 @@ .SH NAME modify_ldt \- get or set ldt .SH SYNOPSIS -.B #include <linux/ldt.h> +.B #include <sys/types.h> .br .B #include <linux/unistd.h> +.br +.B #include <errno.h> .sp .BI "_syscall3(int, modify_ldt, int, " func ", void *, " ptr ", unsigned long, " bytecount ) .sp diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index 37637fc593..a5673b8789 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -9,6 +9,8 @@ pivot_root \- change the root file system .SH SYNOPSIS .B #include <linux/unistd.h> +.br +.B #include <errno.h> .sp .B _syscall2(int,pivot_root,const char *,new_root,const char *,put_old) .sp diff --git a/man2/quotactl.2 b/man2/quotactl.2 index 527d71fd78..91917089f1 100644 --- a/man2/quotactl.2 +++ b/man2/quotactl.2 @@ -35,6 +35,8 @@ quotactl \- manipulate disk quota .sp .B #include <linux/unistd.h> .sp +.B #include <errno.h> +.sp .BI "_syscall4(int, quotactl, int, " cmd ", const char *, " special .BI ", int, " id ", caddr_t, " addr ) .SH DESCRIPTION diff --git a/man2/sysctl.2 b/man2/sysctl.2 index a36ec7a884..06989c16d3 100644 --- a/man2/sysctl.2 +++ b/man2/sysctl.2 @@ -30,10 +30,12 @@ sysctl \- read/write system parameters .SH SYNOPSIS .B #include <unistd.h> -.sp +.br .B #include <linux/unistd.h> -.sp +.br .B #include <linux/sysctl.h> +.br +.B #include <errno.h> .sp .B _syscall1(int, _sysctl, struct __sysctl_args *, args) .sp diff --git a/man2/syslog.2 b/man2/syslog.2 index 8243b7ab15..3c2d63d521 100644 --- a/man2/syslog.2 +++ b/man2/syslog.2 @@ -37,6 +37,8 @@ syslog, klogctl \- read and/or clear kernel message ring buffer; set console_log .B #include <unistd.h> .br .B #include <linux/unistd.h> +.br +.B #include <errno.h> .sp .B _syscall3(int, syslog, int, type, char *, bufp, int, len) .sp diff --git a/man2/tkill.2 b/man2/tkill.2 index 774c0bb661..45520264d0 100644 --- a/man2/tkill.2 +++ b/man2/tkill.2 @@ -31,12 +31,14 @@ tkill, tgkill \- send a signal to a single process .B #include <sys/types.h> .br .B #include <linux/unistd.h> +.br +.B #include <errno.h> .sp .B "_syscall2(int, tkill, int, tid, int, sig)" .sp .B int tkill(int tid, int sig); .sp -.B "_syscall3(int, tkill, int, tgid, int, tid, int, sig)" +.B "_syscall3(int, tgkill, int, tgid, int, tid, int, sig)" .sp .B int tgkill(int tgid, int tid, int sig); .fi |
