From 984886049d82f9f6adfe50c37a0b29d410915ade Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 1 Jan 2008 13:44:49 +0000 Subject: [PATCH] Remove exstraneous .sp macros. --- Changes | 7 +++++++ man2/_syscall.2 | 3 +-- man2/lookup_dcookie.2 | 1 - man3/aio_cancel.3 | 1 - man3/aio_error.3 | 1 - man3/aio_fsync.3 | 1 - man3/aio_read.3 | 1 - man3/aio_return.3 | 1 - man3/aio_write.3 | 1 - man3/canonicalize_file_name.3 | 1 - man3/envz_add.3 | 14 ++++++-------- man3/getgrouplist.3 | 1 - man3/getttyent.3 | 1 - man3/key_setsecret.3 | 1 - man3/mtrace.3 | 1 - man3/tcgetpgrp.3 | 1 - man3/tcgetsid.3 | 1 - man3/ttyslot.3 | 1 - man4/tty_ioctl.4 | 3 --- 19 files changed, 14 insertions(+), 28 deletions(-) diff --git a/Changes b/Changes index 88b098323..e0fb9012e 100644 --- a/Changes +++ b/Changes @@ -318,6 +318,13 @@ xdr.3 mtk Removed .SM macros. +madvise.2 +getdirentries.3 +printf.3 +sigvec.3 + mtk + Remove extraneous .br macro before/after .SH/.SS. + Typographical or grammatical errors have been corrected in several places. diff --git a/man2/_syscall.2 b/man2/_syscall.2 index ea31baef5..185f8a914 100644 --- a/man2/_syscall.2 +++ b/man2/_syscall.2 @@ -90,7 +90,7 @@ was always required.) The _syscall() macros \fIdo not\fP produce a prototype. You may have to create one, especially for C++ users. -.sp + System calls are not required to return only positive or negative error codes. You need to read the source to be sure how it will return errors. @@ -117,7 +117,6 @@ passed by-value or by-pointer (for aggregates like structs). .\" Otherwise, the use of a _syscall macro is required. .\" .SH EXAMPLE -.sp .nf #include #include diff --git a/man2/lookup_dcookie.2 b/man2/lookup_dcookie.2 index 95152466d..8e091dfa8 100644 --- a/man2/lookup_dcookie.2 +++ b/man2/lookup_dcookie.2 @@ -28,7 +28,6 @@ .SH NAME lookup_dcookie \- return a directory entry's path .SH SYNOPSIS -.sp .BI "int lookup_dcookie(u64 " cookie ", char *" buffer ", size_t " len ); .SH DESCRIPTION Look up the full path of the directory entry specified by the value diff --git a/man3/aio_cancel.3 b/man3/aio_cancel.3 index 4a69da6d7..0d6971d6d 100644 --- a/man3/aio_cancel.3 +++ b/man3/aio_cancel.3 @@ -24,7 +24,6 @@ .SH NAME aio_cancel \- cancel an outstanding asynchronous I/O request .SH SYNOPSIS -.sp .B "#include " .sp .BI "int aio_cancel(int " fd ", struct aiocb *" aiocbp ); diff --git a/man3/aio_error.3 b/man3/aio_error.3 index 8f9f20c09..15240e6f5 100644 --- a/man3/aio_error.3 +++ b/man3/aio_error.3 @@ -24,7 +24,6 @@ .SH NAME aio_error \- get error status of asynchronous I/O operation .SH SYNOPSIS -.sp .B "#include " .sp .BI "int aio_error(const struct aiocb *" aiocbp ); diff --git a/man3/aio_fsync.3 b/man3/aio_fsync.3 index 63182d5eb..de3b4b47e 100644 --- a/man3/aio_fsync.3 +++ b/man3/aio_fsync.3 @@ -24,7 +24,6 @@ .SH NAME aio_fsync \- asynchronous file synchronization .SH SYNOPSIS -.sp .B "#include " .sp .BI "int aio_fsync(int " op ", struct aiocb *" aiocbp ); diff --git a/man3/aio_read.3 b/man3/aio_read.3 index 543fa7611..5b12d8c2d 100644 --- a/man3/aio_read.3 +++ b/man3/aio_read.3 @@ -24,7 +24,6 @@ .SH NAME aio_read \- asynchronous read .SH SYNOPSIS -.sp .B "#include " .sp .BI "int aio_read(struct aiocb *" aiocbp ); diff --git a/man3/aio_return.3 b/man3/aio_return.3 index 24c293e4a..96b548fce 100644 --- a/man3/aio_return.3 +++ b/man3/aio_return.3 @@ -24,7 +24,6 @@ .SH NAME aio_return \- get return status of asynchronous I/O operation .SH SYNOPSIS -.sp .B "#include " .sp .BI "ssize_t aio_return(struct aiocb *" aiocbp ); diff --git a/man3/aio_write.3 b/man3/aio_write.3 index 569e14ffd..43d08f639 100644 --- a/man3/aio_write.3 +++ b/man3/aio_write.3 @@ -24,7 +24,6 @@ .SH NAME aio_write \- asynchronous write .SH SYNOPSIS -.sp .B "#include " .sp .BI "int aio_write(struct aiocb *" aiocbp ); diff --git a/man3/canonicalize_file_name.3 b/man3/canonicalize_file_name.3 index f09cbdf94..50ceb4471 100644 --- a/man3/canonicalize_file_name.3 +++ b/man3/canonicalize_file_name.3 @@ -6,7 +6,6 @@ .SH NAME canonicalize_file_name \- return the canonicalized filename .SH SYNOPSIS -.sp .B #define _GNU_SOURCE .br .B #include diff --git a/man3/envz_add.3 b/man3/envz_add.3 index 5c584e327..34d11b81e 100644 --- a/man3/envz_add.3 +++ b/man3/envz_add.3 @@ -9,26 +9,25 @@ envz_add, envz_entry, envz_get, envz_merge, envz_remove, envz_strip \- environment string support .SH SYNOPSIS .nf -.sp .B "#include " -.sp + .BI "error_t envz_add(char **" envz ", size_t *" envz_len , .ti 20n .BI "const char *" name ", const char *" value ); -.sp + .BI "char *envz_entry(const char *" envz ", size_t *" envz_len \ ", const char *" name ); -.sp + .BI "char *envz_get(const char *" envz ", size_t *" envz_len \ ", const char *" name ); -.sp + .BI "error_t envz_merge(char **" envz ", size_t *" envz_len , .ti 20n .BI "const char *" envz2 ", size_t " envz2_len ", int " override ); -.sp + .BI "void envz_remove(char **" envz ", size_t *" envz_len \ ", const char *" name ); -.sp + .BI "void envz_strip(char **" envz ", size_t *" envz_len ); .fi .SH DESCRIPTION @@ -115,7 +114,6 @@ if an allocation error occurs. These functions are a GNU extension. Handle with care. .SH EXAMPLE -.sp .nf #include #include diff --git a/man3/getgrouplist.3 b/man3/getgrouplist.3 index 470590ca7..49b7eb384 100644 --- a/man3/getgrouplist.3 +++ b/man3/getgrouplist.3 @@ -7,7 +7,6 @@ .SH NAME getgrouplist \- list of groups a user belongs to .SH SYNOPSIS -.sp .B #include .sp .BI "int getgrouplist(const char *" user ", gid_t " group , diff --git a/man3/getttyent.3 b/man3/getttyent.3 index f0a633f2a..27fd69905 100644 --- a/man3/getttyent.3 +++ b/man3/getttyent.3 @@ -5,7 +5,6 @@ .SH NAME getttyent, getttynam, setttyent, endttyent \- get ttys file entry .SH SYNOPSIS -.sp .B "#include " .sp .B "struct ttyent *getttyent(void);" diff --git a/man3/key_setsecret.3 b/man3/key_setsecret.3 index 9da12176a..716db5ae4 100644 --- a/man3/key_setsecret.3 +++ b/man3/key_setsecret.3 @@ -7,7 +7,6 @@ key_decryptsession, key_encryptsession, key_setsecret, key_gendes, key_secretkey_is_set \- interfaces to rpc keyserver daemon .SH SYNOPSIS -.sp .B "#include " .sp .BI "int key_decryptsession(const char *" remotename , diff --git a/man3/mtrace.3 b/man3/mtrace.3 index 0316d0629..dc84732ad 100644 --- a/man3/mtrace.3 +++ b/man3/mtrace.3 @@ -5,7 +5,6 @@ .SH NAME mtrace, muntrace \- malloc debugging .SH SYNOPSIS -.sp .B "#include " .sp .B "void mtrace(void);" diff --git a/man3/tcgetpgrp.3 b/man3/tcgetpgrp.3 index 6fa38b6f2..d883cfa18 100644 --- a/man3/tcgetpgrp.3 +++ b/man3/tcgetpgrp.3 @@ -24,7 +24,6 @@ .SH NAME tcgetpgrp, tcsetpgrp \- get and set terminal foreground process group .SH SYNOPSIS -.sp .B "#include " .sp .BI "pid_t tcgetpgrp(int " fd ); diff --git a/man3/tcgetsid.3 b/man3/tcgetsid.3 index eb85f74fd..6db0fe40b 100644 --- a/man3/tcgetsid.3 +++ b/man3/tcgetsid.3 @@ -24,7 +24,6 @@ .SH NAME tcgetsid \- get session ID .SH SYNOPSIS -.sp .B #define _XOPEN_SOURCE 500 .br .B "#include " diff --git a/man3/ttyslot.3 b/man3/ttyslot.3 index e28f6e953..8e11bf541 100644 --- a/man3/ttyslot.3 +++ b/man3/ttyslot.3 @@ -27,7 +27,6 @@ .SH NAME ttyslot \- find the slot of the current user's terminal in some file .SH SYNOPSIS -.sp .BR "#include " " /* on BSD-like systems, and Linux */" .br .BR "#include " " /* on System V-like systems */" diff --git a/man4/tty_ioctl.4 b/man4/tty_ioctl.4 index c8d6ec544..919233cd1 100644 --- a/man4/tty_ioctl.4 +++ b/man4/tty_ioctl.4 @@ -6,7 +6,6 @@ .SH NAME tty ioctl \- ioctls for terminals and serial lines .SH SYNOPSIS -.sp .B "#include " .sp .BI "int ioctl(int " fd ", int " cmd ", ...);" @@ -390,7 +389,6 @@ For the ioctl, see .BR console_ioctl (4). .SS "Kernel debugging" -.sp .B "#include " .TP .BI "TIOCTTYGSTRUCT struct tty_struct *" argp @@ -400,7 +398,6 @@ corresponding to .IR fd . .\" .\" .SS "Serial info" -.\" .sp .\" .BR "#include " .\" .sp .\" .TP