]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
After a note from Vasya Pupkin, I added <errno.h> to the SYNOPSIS
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 10 Dec 2004 09:03:08 +0000 (09:03 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 10 Dec 2004 09:03:08 +0000 (09:03 +0000)
of several Section 2 pages using the _syscallN() macros.

    In addition:
        -- erroneous semicolons at the end of _syscallN() were removed
           on various pages.

-- types such as "uint" in syscalN() declarations were changed
   to "unsigined int", etc.

-- various other minor breakages in the synopses were fixed.

man2/getdents.2
man2/gettid.2
man2/llseek.2
man2/mmap2.2
man2/modify_ldt.2
man2/pivot_root.2
man2/quotactl.2
man2/sysctl.2
man2/syslog.2
man2/tkill.2

index 1e4e7393cafd590b7687ec9a7b19c83dff7bbbff..71a7a5132a1a6b1f687a072a82b2c94fd376158c 100644 (file)
@@ -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
index 44e197e7131857dcdcd7b0dc19b8f784c22cabd6..5fc45d7583d5e6c8da0a26b672bbc5066581bd68 100644 (file)
@@ -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
index 3a14f89c74809d628c8c1e0ab7cefb2099dffc5f..0eb6e03eca719154e5986dbaed67dec2ad28dc63 100644 (file)
@@ -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 );
index 690471b901eec0a8123d06b25ecec83830e1f8cb..cd032cde5185370254676606c86c37a3a1e45db3 100644 (file)
@@ -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 );
index e684c3665aeb095ac4205803362dbdc01ad811a9..f0ba2de90514796e6ee78fc9d8284c259299afb2 100644 (file)
 .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
index 37637fc593eb6aaf693f727e158edb2d01780951..a5673b8789dad24e4ec4de64e8c70ba2e902cc23 100644 (file)
@@ -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
index 527d71fd78bb80dc216aed8d686deac174b61efa..91917089f1bdb52a432ed4c49bb64cd8ef88d491 100644 (file)
@@ -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
index a36ec7a88455fc423c592183120f7315cbb81dce..06989c16d3d7d70361080191955ead025ff831cd 100644 (file)
 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
index 8243b7ab155e86ea941618f4d4e494ce366b481d..3c2d63d5216a5a75e255f31a6be6b04ce4a01097 100644 (file)
@@ -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
index 774c0bb66167844947e3b372d8f38a6e113693bf..45520264d02a8261f8574b1ad7c1de1ce18ea539 100644 (file)
@@ -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