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.
.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
.B #include <sys/types.h>
.br
.B #include <linux/unistd.h>
+.B #include <errno.h>
.sp
.B _syscall0(pid_t,gettid)
.sp
.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 );
.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 );
.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
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
.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
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
.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
.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