diff options
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/_exit.2 | 2 | ||||
| -rw-r--r-- | man2/alloc_hugepages.2 | 2 | ||||
| -rw-r--r-- | man2/bind.2 | 4 | ||||
| -rw-r--r-- | man2/cacheflush.2 | 14 | ||||
| -rw-r--r-- | man2/epoll_wait.2 | 4 | ||||
| -rw-r--r-- | man2/execve.2 | 34 | ||||
| -rw-r--r-- | man2/fcntl.2 | 12 | ||||
| -rw-r--r-- | man2/fdatasync.2 | 4 | ||||
| -rw-r--r-- | man2/flock.2 | 2 | ||||
| -rw-r--r-- | man2/getcontext.2 | 4 | ||||
| -rw-r--r-- | man2/intro.2 | 2 | ||||
| -rw-r--r-- | man2/ioperm.2 | 2 | ||||
| -rw-r--r-- | man2/kill.2 | 2 | ||||
| -rw-r--r-- | man2/mmap.2 | 2 | ||||
| -rw-r--r-- | man2/mprotect.2 | 10 | ||||
| -rw-r--r-- | man2/open.2 | 8 | ||||
| -rw-r--r-- | man2/pciconfig_read.2 | 4 | ||||
| -rw-r--r-- | man2/pivot_root.2 | 2 | ||||
| -rw-r--r-- | man2/ptrace.2 | 2 | ||||
| -rw-r--r-- | man2/quotactl.2 | 2 | ||||
| -rw-r--r-- | man2/readv.2 | 12 | ||||
| -rw-r--r-- | man2/sched_rr_get_interval.2 | 2 | ||||
| -rw-r--r-- | man2/semop.2 | 2 | ||||
| -rw-r--r-- | man2/sigaction.2 | 2 | ||||
| -rw-r--r-- | man2/signal.2 | 6 | ||||
| -rw-r--r-- | man2/stat.2 | 12 | ||||
| -rw-r--r-- | man2/swapon.2 | 2 | ||||
| -rw-r--r-- | man2/sysctl.2 | 4 | ||||
| -rw-r--r-- | man2/syslog.2 | 2 | ||||
| -rw-r--r-- | man2/write.2 | 2 |
30 files changed, 82 insertions, 82 deletions
diff --git a/man2/_exit.2 b/man2/_exit.2 index d0fd1593c5..f4b161ef2b 100644 --- a/man2/_exit.2 +++ b/man2/_exit.2 @@ -90,7 +90,7 @@ On the other hand, does close open file descriptors, and this may cause an unknown delay, waiting for pending output to finish. If the delay is undesired, -it may be useful to call functions like +it may be useful to call functions like .BR tcflush (3) before calling .BR _exit (). diff --git a/man2/alloc_hugepages.2 b/man2/alloc_hugepages.2 index 46ee27efd2..7e6f6f6bf7 100644 --- a/man2/alloc_hugepages.2 +++ b/man2/alloc_hugepages.2 @@ -43,7 +43,7 @@ and were introduced in Linux 2.5.36 and removed again in 2.5.54. They existed only on i386 and ia64 (when built with CONFIG_HUGETLB_PAGE). In Linux 2.4.20 the syscall numbers exist, -but the calls fail with the error +but the calls fail with the error .BR ENOSYS . .LP On i386 the memory management hardware knows about ordinary pages (4 KiB) diff --git a/man2/bind.2 b/man2/bind.2 index 2e1bc46dee..6c3e15122a 100644 --- a/man2/bind.2 +++ b/man2/bind.2 @@ -294,11 +294,11 @@ main(int argc, char *argv[]) if (bind(sfd, (struct sockaddr *) &my_addr, sizeof(struct sockaddr_un)) == \-1) die("bind"); - + if (listen(sfd, LISTEN_BACKLOG) == \-1) die("listen"); - /* Now we can accept incoming connections one + /* Now we can accept incoming connections one at a time using accept(2) */ peer_addr_size = sizeof(struct sockaddr_un); diff --git a/man2/cacheflush.2 b/man2/cacheflush.2 index 3735eca2be..289122e15b 100644 --- a/man2/cacheflush.2 +++ b/man2/cacheflush.2 @@ -32,10 +32,10 @@ cacheflush \- flush contents of instruction and/or data cache .fi .SH DESCRIPTION .BR cacheflush () -flushes the contents of the indicated cache(s) for the +flushes the contents of the indicated cache(s) for the user addresses in the range .I addr -to +to .IR (addr+nbytes-1) . .IR cache may be one of: @@ -58,18 +58,18 @@ will indicate the error. .SH ERRORS .TP .B EFAULT -Some or all of the address range +Some or all of the address range .I addr -to +to .I (addr+nbytes-1) is not accessible. .TP .B EINVAL .I cache -is not one of +is not one of .BR ICACHE , -.BR DCACHE , -or +.BR DCACHE , +or .BR BCACHE . .SH CONFORMING TO This Linux-specific system call is only available on MIPS based systems. diff --git a/man2/epoll_wait.2 b/man2/epoll_wait.2 index 985e7a7541..eef5483d6f 100644 --- a/man2/epoll_wait.2 +++ b/man2/epoll_wait.2 @@ -30,7 +30,7 @@ epoll_wait, epoll_pwait \- wait for an I/O event on an epoll file descriptor .BI "int epoll_wait(int " epfd ", struct epoll_event *" events , .BI " int " maxevents ", int " timeout ); .BI "int epoll_pwait(int " epfd ", struct epoll_event *" events , -.BI " int " maxevents ", int " timeout , +.BI " int " maxevents ", int " timeout , .BI " const sigset_t *" sigmask ); .fi .SH DESCRIPTION @@ -166,7 +166,7 @@ is less than or equal to zero. .BR epoll_pwait () was added to Linux in kernel 2.6.19. -Glibc support for +Glibc support for .BR epoll_pwait () is provided starting with version 2.6. .SH CONFORMING TO diff --git a/man2/execve.2 b/man2/execve.2 index 9b02659c6c..e127df771d 100644 --- a/man2/execve.2 +++ b/man2/execve.2 @@ -78,8 +78,8 @@ after a successful .BR execve (). If the set-user-ID bit is set on the program file pointed to by -\fIfilename\fP, -and the underlying file system is not mounted +\fIfilename\fP, +and the underlying file system is not mounted .IR nosuid (the .B MS_NOSUID @@ -211,7 +211,7 @@ For the handling of capabilities during see .BR capabilities (7). .IP * 4 -By default, file descriptors remain open across an +By default, file descriptors remain open across an .BR execve (). File descriptors that are marked close-on-exec are closed ; see the description of @@ -223,7 +223,7 @@ of all record locks obtained on the underlying file by this process. See .BR fcntl (2) for details.) -POSIX.1-2001 says that if file descriptors 0, 1, and 2 would +POSIX.1-2001 says that if file descriptors 0, 1, and 2 would otherwise be closed after a successful .BR execve (), and the process would gain privilege because the set-user_ID or @@ -231,14 +231,14 @@ set-group_ID permission bit was set on the executed file, then the system may open an unspecified file for each of these file descriptors. As a general principle, no portable program, whether privileged or not, -can assume that these three file descriptors will remain +can assume that these three file descriptors will remain closed across an .BR execve (). .\" On Linux it appears that these file descriptors are .\" always open after an execve(), and it looks like .\" Solaris 8 and FreeBSD 6.1 are the same. -- mtk, 30 Apr 2007 .SS Interpreter scripts -An interpreter script is a text file that has execute +An interpreter script is a text file that has execute permission enabled and whose first line is of the form: .in +0.5i @@ -247,15 +247,15 @@ permission enabled and whose first line is of the form: .fi .in -The -.I interpreter +The +.I interpreter must be a valid pathname for an executable which is not itself a script. -If the +If the .I filename argument of .BR execve () -specifies an interpreter script, then +specifies an interpreter script, then .I interpreter will be invoked with the following arguments: @@ -267,9 +267,9 @@ will be invoked with the following arguments: where .I arg... -is the series of words pointed to by the +is the series of words pointed to by the .I argv -argument of +argument of .BR execve (). For portable use, @@ -401,14 +401,14 @@ a #! executable shell script. The semantics of the .I optional-arg argument of an interpreter script vary across implementations. -On Linux, the entire string following the +On Linux, the entire string following the .I interpreter name is passed as a single argument to the interpreter, and this string can include white space. However, behavior differs on some other systems. Some systems .\" e.g., Solaris 8 -use the first white space to terminate +use the first white space to terminate .IR optional-arg . On some systems, .\" e.g., FreeBSD before 6.0, but not FreeBSD 6.0 onwards @@ -417,7 +417,7 @@ and white spaces in .I optional-arg are used to delimit the arguments. -On Linux, +On Linux, .I argv and .I envp @@ -437,7 +437,7 @@ on most other Unix systems doing this will result in an error. .\" Some Linux versions have failed to check permissions on ELF .\" interpreters. This is a security hole, because it allows users to .\" open any file, such as a rewinding tape device, for reading. Some -.\" Linux versions have also had other security holes in +.\" Linux versions have also had other security holes in .\" .BR execve (2) .\" that could be exploited for denial of service by a suitably crafted .\" ELF binary. There are no known problems with 2.0.34 or 2.2.15. @@ -494,7 +494,7 @@ main(int argc, char *argv[]) char *newargv[] = { NULL, "hello", "world", NULL }; char *newenviron[] = { NULL }; - assert(argc == 2); /* argv[1] identifies + assert(argc == 2); /* argv[1] identifies program to exec */ newargv[0] = argv[1]; diff --git a/man2/fcntl.2 b/man2/fcntl.2 index fe6f4070dd..d8ad9b4ce7 100644 --- a/man2/fcntl.2 +++ b/man2/fcntl.2 @@ -559,7 +559,7 @@ with .B O_NONBLOCK set etc.) to determine which file descriptors are available for I/O. .sp -By selecting a real time signal (value >= +By selecting a real time signal (value >= .BR SIGRTMIN ), multiple I/O events may be queued using the same signal numbers. (Queuing is dependent on available memory). @@ -925,7 +925,7 @@ are specified in POSIX.1-2001. and .BR F_SETLEASE are Linux specific. -(Define the +(Define the .BR _GNU_SOURCE macro to obtain these definitions.) .\" .PP @@ -978,7 +978,7 @@ will contain the (positive) process group ID. .\" mtk, Dec 04: some limited testing on alpha and ia64 seems to .\" indicate that ANY negative PGID value will cause F_GETOWN .\" to misinterpret the return as an error. Some other architectures -.\" seem to have the same range check as x86. +.\" seem to have the same range check as x86. In Linux 2.4 and earlier, there is bug that can occur when an unprivileged process uses @@ -1006,8 +1006,8 @@ and signals will be sent to the owner. .BR feature_test_macros (7) .P See also -.IR Documentation/locks.txt , -.IR Documentation/mandatory.txt , -and +.IR Documentation/locks.txt , +.IR Documentation/mandatory.txt , +and .I Documentation/dnotify.txt in the kernel source. diff --git a/man2/fdatasync.2 b/man2/fdatasync.2 index cb50383963..d6521a3bbd 100644 --- a/man2/fdatasync.2 +++ b/man2/fdatasync.2 @@ -81,7 +81,7 @@ On POSIX systems on which .BR fdatasync () is available, .B _POSIX_SYNCHRONIZED_IO -is defined in +is defined in .I <unistd.h> to a value greater than 0. (See also @@ -90,7 +90,7 @@ to a value greater than 0. .\" -1: unavailable, 0: ask using sysconf(). .\" glibc defines them to 1. .SH NOTES -In Linux 2.2 and earlier, +In Linux 2.2 and earlier, .BR fdatasync () is equivalent to .BR fsync (2), diff --git a/man2/flock.2 b/man2/flock.2 index e8a6098763..934482e817 100644 --- a/man2/flock.2 +++ b/man2/flock.2 @@ -207,5 +207,5 @@ and occurs on many other implementations.) See also .I Documentation/locks.txt and -.I Documentation/mandatory.txt +.I Documentation/mandatory.txt in the kernel source. diff --git a/man2/getcontext.2 b/man2/getcontext.2 index ed693302f1..27bd2cd501 100644 --- a/man2/getcontext.2 +++ b/man2/getcontext.2 @@ -125,11 +125,11 @@ None defined. SUSv2, POSIX.1-2001. .SH NOTES The earliest incarnation of this mechanism was the -.BR setjmp (3)/ longjmp (3) +.BR setjmp (3)/ longjmp (3) mechanism. Since that does not define the handling of the signal context, the next stage was the -.BR sigsetjmp (3)/ siglongjmp (3) +.BR sigsetjmp (3)/ siglongjmp (3) pair. The present mechanism gives much more control. On the other hand, diff --git a/man2/intro.2 b/man2/intro.2 index ff8372f1aa..8dc67560cb 100644 --- a/man2/intro.2 +++ b/man2/intro.2 @@ -132,7 +132,7 @@ passed by-value or by-pointer (for aggregates like structs). .\" .I <sys/syscall.h> .\" header file contains the required SYS_foo definition. .\" Otherwise, the use of a _syscall macro is required. -.\" +.\" .SH EXAMPLE .sp .nf diff --git a/man2/ioperm.2 b/man2/ioperm.2 index be04d1f5e4..260f31b277 100644 --- a/man2/ioperm.2 +++ b/man2/ioperm.2 @@ -51,7 +51,7 @@ sets the port access permission bits for the calling process for If \fIturn_on\fP is non-zero, the calling process must be privileged .RB ( CAP_SYS_RAWIO ). -.\" FIXME is the following ("Only the first 0x3ff I/O ports can be +.\" FIXME is the following ("Only the first 0x3ff I/O ports can be .\" specified in this manner") still true? Looking at changes in .\" include/asm-i386/processor.h between 2.4 and 2.6 suggests .\" that the limit is different in 2.6. diff --git a/man2/kill.2 b/man2/kill.2 index ac11de8423..2a313c3894 100644 --- a/man2/kill.2 +++ b/man2/kill.2 @@ -124,7 +124,7 @@ Linux allows a process to signal itself, but on Linux the call POSIX.1-2001 requires that if a process sends a signal to itself, and the sending thread does not have the signal blocked, and no other thread -has it unblocked or is waiting for it in +has it unblocked or is waiting for it in .BR sigwait (3), at least one unblocked signal must be delivered to the sending thread before the diff --git a/man2/mmap.2 b/man2/mmap.2 index 033f659b9f..34a2525095 100644 --- a/man2/mmap.2 +++ b/man2/mmap.2 @@ -188,7 +188,7 @@ This flag is ignored. .B MAP_FILE Compatibility flag. Ignored. -.\" On some systems, this was required as the opposite of +.\" On some systems, this was required as the opposite of .\" MAP_ANONYMOUS -- mtk, 1 May 2007 .TP .B MAP_FIXED diff --git a/man2/mprotect.2 b/man2/mprotect.2 index 5af2f4b076..6210a71f41 100644 --- a/man2/mprotect.2 +++ b/man2/mprotect.2 @@ -41,13 +41,13 @@ mprotect \- set protection on a region of memory .SH DESCRIPTION .BR mprotect () changes protection for the calling process's memory page(s) -containing any part of the address range in the +containing any part of the address range in the interval [\fIaddr\fP,\fIaddr\fP+\fIlen\fP\-1]. .I addr must be aligned to a page boundary. If the calling process tries to access memory in a manner -that violates the protection, then the kernel generates a +that violates the protection, then the kernel generates a .B SIGSEGV signal for the process. .PP @@ -167,7 +167,7 @@ char *buffer; static void handler(int sig, siginfo_t *si, void *unused) { - printf("Got SIGSEGV at address: 0x%lx\\n", + printf("Got SIGSEGV at address: 0x%lx\\n", (long) si\->si_addr); exit(EXIT_FAILURE); } @@ -189,7 +189,7 @@ main(int argc, char *argv[]) if (pagesize == \-1) die("sysconf"); - /* Allocate a buffer aligned on a page boundary; + /* Allocate a buffer aligned on a page boundary; initial protection is PROT_READ | PROT_WRITE */ buffer = memalign(pagesize, 4 * pagesize); @@ -198,7 +198,7 @@ main(int argc, char *argv[]) printf("Start of region: 0x%lx\\n", (long) buffer); - if (mprotect(buffer + pagesize * 2, pagesize, + if (mprotect(buffer + pagesize * 2, pagesize, PROT_NONE) == \-1) die("mprotect"); diff --git a/man2/open.2 b/man2/open.2 index 1d0cc9c35c..c943636435 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -497,7 +497,7 @@ One may have to define the .B _GNU_SOURCE macro to get their definitions. .SH NOTES -Under Linux, the +Under Linux, the .B O_NONBLOCK flag indicates that one wants to open but does not necessarily have the intention to read or write. @@ -561,7 +561,7 @@ permissions, but UID mapping is performed by the server upon read and write requests. If the file is newly created, its -.IR st_atime , +.IR st_atime , .IR st_ctime , .I st_mtime fields @@ -571,11 +571,11 @@ time of last modification; see are set to the current time, and so are the .I st_ctime -and +and .I st_mtime fields of the parent directory. -Otherwise, if the file is modified because of the +Otherwise, if the file is modified because of the .B O_TRUNC flag, its st_ctime and st_mtime fields are set to the current time. .SH BUGS diff --git a/man2/pciconfig_read.2 b/man2/pciconfig_read.2 index 774b189e92..0a9a35b63d 100644 --- a/man2/pciconfig_read.2 +++ b/man2/pciconfig_read.2 @@ -61,13 +61,13 @@ On success zero is returned. On error, \-1 is returned and errno is set appropriately. .TP .BR pciconfig_iobase () -Returns information on locations of various I/O +Returns information on locations of various I/O regions in physical memory according to the .I which value. Values for .I which -are: IOBASE_BRIDGE_NUMBER, IOBASE_MEMORY, +are: IOBASE_BRIDGE_NUMBER, IOBASE_MEMORY, IOBASE_IO, IOBASE_ISA_IO, IOBASE_ISA_MEM. .SH ERRORS .TP diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index 519a2c11ac..629a15f76a 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -76,7 +76,7 @@ the same directory as \fInew_root\fP. .IP \- 3 No other file system may be mounted on \fIput_old\fP. .PP -See also +See also .BR pivot_root (8) for additional usage examples. diff --git a/man2/ptrace.2 b/man2/ptrace.2 index 948898669a..4d86fae24d 100644 --- a/man2/ptrace.2 +++ b/man2/ptrace.2 @@ -379,7 +379,7 @@ detached in this way regardless of which method was used to initiate tracing. (\fIaddr\fP is ignored.) .SH "RETURN VALUE" -On success, +On success, .BR PTRACE_PEEK* requests return the requested data, while other requests return zero. diff --git a/man2/quotactl.2 b/man2/quotactl.2 index e85b762cd8..02d4ec0071 100644 --- a/man2/quotactl.2 +++ b/man2/quotactl.2 @@ -38,7 +38,7 @@ .\" Q_SYNC .\" .\" Linux 2.4 has: -.\" +.\" .\" Q_COMP_QUOTAOFF .\" Q_COMP_QUOTAON .\" Q_COMP_SYNC diff --git a/man2/readv.2 b/man2/readv.2 index d623f3ae5d..658a2ffb35 100644 --- a/man2/readv.2 +++ b/man2/readv.2 @@ -45,7 +45,7 @@ function reads buffers from the file associated with the file descriptor .I fd into the buffers described by -.IR iov +.IR iov ("scatter input"). .PP The @@ -55,12 +55,12 @@ function writes buffers of data described by .I iov to the file associated with the file descriptor -.IR fd +.IR fd ("gather output"). .PP The pointer .I iov -points to an array of +points to an array of .I iovec structures, defined in @@ -94,7 +94,7 @@ This means that .BR readv () completely fills .IR iov [0] -before proceeding to +before proceeding to .IR iov [1], and so on. (If there is insufficient data, then not all buffers pointed to by @@ -104,7 +104,7 @@ Similarly, .BR writev () writes out the entire contents of .IR iov [0] -before proceeding to +before proceeding to .IR iov [1], and so on. .PP @@ -123,7 +123,7 @@ analogously, is guaranteed to read a contiguous block of data from the file, regardless of read operations performed in other threads or processes that have file descriptors referring to the same open file description -(see +(see .BR open (2)). .SH "RETURN VALUE" On success, the diff --git a/man2/sched_rr_get_interval.2 b/man2/sched_rr_get_interval.2 index 564af42209..61493d1d6c 100644 --- a/man2/sched_rr_get_interval.2 +++ b/man2/sched_rr_get_interval.2 @@ -100,7 +100,7 @@ The default quantum is 0.1 seconds; the degree to which changing the nice value affects the quantum has varied somewhat across kernel versions. .\" .SH BUGS -.\" As of Linux 1.3.81 +.\" As of Linux 1.3.81 .\" .BR sched_rr_get_interval () .\" returns with error .\" ENOSYS, because SCHED_RR has not yet been fully implemented and tested diff --git a/man2/semop.2 b/man2/semop.2 index 67aae2b519..940a9e12fc 100644 --- a/man2/semop.2 +++ b/man2/semop.2 @@ -384,7 +384,7 @@ the implementation dependent maximum value for .BR semtimedop () first appeared in Linux 2.5.52, and was subsequently backported into kernel 2.4.22. -Glibc support for +Glibc support for .BR semtimedop () first appeared in version 2.3.3. .SH "CONFORMING TO" diff --git a/man2/sigaction.2 b/man2/sigaction.2 index ad8addb40e..28ed62032e 100644 --- a/man2/sigaction.2 +++ b/man2/sigaction.2 @@ -477,7 +477,7 @@ for details on manipulating signal sets. .PP See .BR signal (7) -for a list of the async-signal-safe functions that can be +for a list of the async-signal-safe functions that can be safely called inside from inside a signal handler. .SS Undocumented Before the introduction of diff --git a/man2/signal.2 b/man2/signal.2 index 66d3a43d7c..e74f3b9cfa 100644 --- a/man2/signal.2 +++ b/man2/signal.2 @@ -38,7 +38,7 @@ signal \- ANSI C signal handling .sp .BI "sighandler_t signal(int " signum ", sighandler_t " handler ); .SH DESCRIPTION -The behavior of +The behavior of .BR signal () varies across Unix versions, and has also varied historically across different versions of Linux. @@ -102,7 +102,7 @@ is invalid. .SH "CONFORMING TO" C89, C99, POSIX.1-2001. .SH NOTES -The effects of +The effects of .BR signal () in a multi-threaded process are unspecified. .PP @@ -133,7 +133,7 @@ is set to .PP See .BR signal (7) -for a list of the async-signal-safe functions that can be +for a list of the async-signal-safe functions that can be safely called inside from inside a signal handler. .PP The use of diff --git a/man2/stat.2 b/man2/stat.2 index ada80ac18a..c32d646e20 100644 --- a/man2/stat.2 +++ b/man2/stat.2 @@ -380,7 +380,7 @@ does not return the file size in the .I st_size field; instead the field is returned with the value 0. .SH EXAMPLE -The following program calls +The following program calls .BR stat (2) and displays selected fields in the returned .I stat @@ -391,7 +391,7 @@ structure. #include <sys/stat.h> #include <time.h> #include <stdio.h> -#include <stdlib.h> +#include <stdlib.h> int main(int argc, char *argv[]) @@ -422,18 +422,18 @@ main(int argc, char *argv[]) printf("I\-node number: %ld\\n", (long) sb.st_ino); - printf("Mode: %lo (octal)\\n", + printf("Mode: %lo (octal)\\n", (unsigned long) sb.st_mode); printf("Link count: %ld\\n", (long) sb.st_nlink); printf("Ownership: UID=%ld GID=%ld\\n", (long) sb.st_uid, (long) sb.st_gid); - printf("Preferred I/O block size: %ld bytes\\n", + printf("Preferred I/O block size: %ld bytes\\n", (long) sb.st_blksize); - printf("File size: %lld bytes\\n", + printf("File size: %lld bytes\\n", (long long) sb.st_size); - printf("Blocks allocated: %lld\\n", + printf("Blocks allocated: %lld\\n", (long long) sb.st_blocks); printf("Last inode change: %s", ctime(&sb.st_ctime)); diff --git a/man2/swapon.2 b/man2/swapon.2 index c378d721ab..2ddbe47254 100644 --- a/man2/swapon.2 +++ b/man2/swapon.2 @@ -137,7 +137,7 @@ The system has insufficient memory to start swapping. .B EPERM The caller does not have the .B CAP_SYS_ADMIN -capability. +capability. Alternatively, the maximum number of swap files are already in use; see NOTES below. .SH "CONFORMING TO" diff --git a/man2/sysctl.2 b/man2/sysctl.2 index 48fa4c1a7e..2ba4f4765b 100644 --- a/man2/sysctl.2 +++ b/man2/sysctl.2 @@ -144,9 +144,9 @@ main(void) args.nlen = sizeof(name)/sizeof(name[0]); args.oldval = osname; args.oldlenp = &osnamelth; - + osnamelth = sizeof(osname); - + if (syscall(SYS__sysctl, &args) == \-1) { perror("_sysctl"); exit(EXIT_FAILURE); diff --git a/man2/syslog.2 b/man2/syslog.2 index 32967a41cc..df68c1d39a 100644 --- a/man2/syslog.2 +++ b/man2/syslog.2 @@ -77,7 +77,7 @@ Only function 3 is allowed to non-root processes. The kernel has a cyclic buffer of length LOG_BUF_LEN (4096, since 1.3.54: 8192, since 2.1.113: 16384; in recent kernels the size can be set at compile time) in which messages given as argument -to the kernel function +to the kernel function .BR printk () are stored (regardless of their loglevel). diff --git a/man2/write.2 b/man2/write.2 index 3147c5d96d..18584295b1 100644 --- a/man2/write.2 +++ b/man2/write.2 @@ -47,7 +47,7 @@ write \- write to a file descriptor .BR write () writes up to .I count -bytes from the buffer pointed +bytes from the buffer pointed .IR buf to the file referred to by the file descriptor .IR fd. |
