From 4a3ef8e66ad07656caa1e6a2bc69823926b880e3 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Wed, 20 Feb 2013 01:46:27 +0000 Subject: [PATCH] Remove empty lines from manpages (lint errors) --- man3/abort.3 | 14 +++++++------- man3/assert.3 | 10 +++++----- man3/atexit.3 | 24 ++++++++++++------------ man3/errno.3 | 6 +++--- man3/exit.3 | 22 +++++++++++----------- man3/flockfile.3 | 16 ++++++++-------- man3/pdclib.3 | 12 ++++++------ man3/strdup.3 | 14 +++++++------- man3/string.h.3 | 2 +- 9 files changed, 60 insertions(+), 60 deletions(-) diff --git a/man3/abort.3 b/man3/abort.3 index 4062011..8fcdc21 100644 --- a/man3/abort.3 +++ b/man3/abort.3 @@ -4,19 +4,19 @@ .Dd .Dt abort 3 .Os - +.\" .Sh NAME .Nm abort .Nd abnormal process termination - +.\" .Sh SYNOPSIS .In stdlib.h .Fn "noreturn void abort" "void" - +.\" .Sh DESCRIPTION .Fn abort causes abnormal process termination to occur. - +.\" .Pp First, .Dv SIGABRT @@ -29,7 +29,7 @@ will then proceed to cause the process to terminate with a failure exit status. It is implementation defined whether any open .Vt FILE streams are flushed before the process exits. - +.\" .Sh IMPLEMENTATION NOTES PDCLib implements termination (in the case that the .Dv SIGABRT @@ -39,13 +39,13 @@ Therefore, stream flushing rules for .Nm follow those defined for .Fn _Exit . - +.\" .Sh SEE ALSO .Xr exit 3 .Xr quick_exit 3 .Xr _Exit 3 .Xr raise 3 - +.\" .Sh STANDARDS .Fn abort is first defined in diff --git a/man3/assert.3 b/man3/assert.3 index d2874e3..09f9307 100644 --- a/man3/assert.3 +++ b/man3/assert.3 @@ -4,15 +4,15 @@ .Dd .Dt assert 3 .Os - +.\" .Sh NAME .Nm assert .Nd validate assertion - +.\" .Sh SYNOPSIS .In assert.h .Fn "void assert" "" - +.\" .Sh DESCRIPTION If .Dv NDEBUG @@ -30,13 +30,13 @@ The enclosing function of the call to .Nm will only be printed in the error message when compiling for C99, or a later revision of the C standard. - +.\" .Sh SEE ALSO .Xr _Exit 3 .Xr quick_exit 3 .Xr exit 3 .Xr abort 3 - +.\" .Sh STANDARDS Conforming to .St -isoC-90 , diff --git a/man3/atexit.3 b/man3/atexit.3 index a210266..09fe18d 100644 --- a/man3/atexit.3 +++ b/man3/atexit.3 @@ -4,17 +4,17 @@ .Dd .Dt atexit 3 .Os - +.\" .Sh NAME .Nm atexit .Nd registration of functions to be invoked before process termination - +.\" .Sh SYNOPSIS .In stdlib.h .Fn "int atexit" "void (*handler)(void)" .Fn "int at_quick_exit" "void (*handler)(void)" (C11, C++11) - +.\" .Sh DESCRIPTION These functions register a function to be called when the corresponding process exit function is invoked. For @@ -25,7 +25,7 @@ for .Fn at_quick_exit the function will be invoked when the process is terminated by calling .Fn quick_exit . - +.\" .Pp These functions are used in order to permit a program to perform actions before a process is terminated; for example, releasing an interprocess semaphore. @@ -36,14 +36,14 @@ handlers; the purpose of is to support the abandonning of a process when normal process termination might not be possible; at_quick_exit handlers should therefore be used sparingly and only when their use is essential. - +.\" .Pp The standard guarantees that .Fn atexit and .Fn at_quick_exit may each be called at least 32 times successfully. - +.\" .Pp .Fn atexit and @@ -51,7 +51,7 @@ and handlers are called in reverse order of the order they were registered in. For precise details of their ordering, see .Xr exit 3 . - +.\" .Pp The result of exiting from a handler registered with .Fn atexit @@ -66,7 +66,7 @@ or should throw, .Fn std::terminate is invoked. - +.\" .Pp Undefined behaviour results if an .Fn atexit @@ -76,19 +76,19 @@ handler calls .Fn exit or .Fn quick_exit . - +.\" .Sh RETURN VALUES Returns 0 to indicate success; nonzero returns indicate failure. - +.\" .Sh ERRORS No errors are defined - +.\" .Sh SEE ALSO .Xr abort 3 .Xr exit 3 .Xr quick_exit 3 .Xr _Exit 3 - +.\" .Sh STANDARDS .Fn atexit is first defined in diff --git a/man3/errno.3 b/man3/errno.3 index da54640..80cb02d 100644 --- a/man3/errno.3 +++ b/man3/errno.3 @@ -4,11 +4,11 @@ .Dd .Dt ERRNO 3 .Os - +.\" .Sh NAME .Nm errno .Nd library error result - +.\" .Sh SYNOPSIS .In errno.h .Pp @@ -54,7 +54,7 @@ using errno was to define .Va extern int errno . This is no longer supported by the POSIX or C standards, and will not work on the majority of implementations, including this one. - +.\" .Sh SEE ALSO .Xr errno.h 3 .Xr abort 3 diff --git a/man3/exit.3 b/man3/exit.3 index ac8ae99..4d9860e 100644 --- a/man3/exit.3 +++ b/man3/exit.3 @@ -4,17 +4,17 @@ .Dd .Dt exit 3 .Os - +.\" .Sh NAME .Nm exit .Nd terminates the process - +.\" .Sh SYNOPSIS .In stdlib.h .Fn "noreturn void exit" "int status" .Fn "noreturn void quick_exit" "int status" .Fn "noreturn void _Exit" "int exitcode" - +.\" .Sh DESCRIPTION Calling any of these three functions terminates the current process, returning the exit code passed as a parameter. The interpretation of the exit code is @@ -23,7 +23,7 @@ undefined, except that 0 or shall indicate successful completion and .Dv EXIT_FAILURE shall indicate a non-successful completion. - +.\" .Pp .Fn exit first destroys all objects with C++ thread local storage duration (the C @@ -43,7 +43,7 @@ particular that functions registered with are .Sy not called. - +.\" .Pp .Fn quick_exit invokes any functions registered with @@ -53,7 +53,7 @@ environment by calling .Fn _Exit . No signal handlers are called, nor are any functions registered with .Fn atexit . - +.\" .Pp .Fn _Exit returns control to the controlling environment without invoking any functions @@ -64,7 +64,7 @@ any signal handlers, or the destructors of any thread local objects or C++ objects of static storage duration. Whether or not any open .Vt FILE streams with unwritten data are flushed or not is undefined. - +.\" .Pp The result of aborting a call to .Fn exit @@ -79,7 +79,7 @@ or should throw, .Fn std::terminate is invoked. - +.\" .Pp Undefined behaviour results if, while a call to .Fn exit @@ -90,7 +90,7 @@ is in progress, a call to or .Fn quick_exit is made. - +.\" .Sh IMPLEMENTATION NOTES PDCLib implements the process of flushing streams in .Fn _Exit , @@ -99,12 +99,12 @@ and therefore calls it after all .Fn atexit handlers have been invoked. - +.\" .Sh SEE ALSO .Xr abort 3 .Xr atexit 3 .Xr at_quick_exit 3 - +.\" .Sh STANDARDS .Fn exit is first defined in diff --git a/man3/flockfile.3 b/man3/flockfile.3 index a8a4a3b..8473fa9 100644 --- a/man3/flockfile.3 +++ b/man3/flockfile.3 @@ -4,19 +4,19 @@ .Dd .Dt flockfile 3 .Os - +.\" .Sh NAME .Nm flockfile, ftrylockfile, funlockfile .Nd stdio file locking - +.\" .Sh SYNOPSIS .Sy #define _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || _SVID_SOURCE || _BSD_SOURCE - +.\" .In stdio.h .Fn "void flockfile" "FILE *file" .Fn "int ftrylockfile" "FILE *file" .Fn "void funlockfile" "FILE *file" - +.\" .Sh DESCRIPTION .Fn flockfile locks the passed FILE stream for access by the calling thread, potentially @@ -39,18 +39,18 @@ on a file must be equal to the number of calls to .\" .Pp No other thread may do I/O through the locked file while it is locked. - +.\" .Sh IMPLEMENTATION NOTES PDCLib implements the file locking on top of the Mutex primitives added by C11 - +.\" .Sh SEE ALSO .Xr fopen 3 .Xr fclose 3 .Xr unlocked_stdio 3 .Xr mtx_t 3 - +.\" .Sh STANDARDS The locked I/O routines were initially introduced in .St -svid4 , and incorporated into POSIX in -.St -p1003.1-2001 . +.St -p1003.1-2001 . \ No newline at end of file diff --git a/man3/pdclib.3 b/man3/pdclib.3 index 3c4b664..8773c26 100644 --- a/man3/pdclib.3 +++ b/man3/pdclib.3 @@ -4,11 +4,11 @@ .Dd .Dt PDCLIB 3 .Os - +.\" .Sh NAME .Nm PDCLib .Nd Public domain, portable C library - +.\" .Sh LIBRARY .Lb pdclib .Sh SYNOPSIS @@ -31,7 +31,7 @@ .In threads.h .In time.h .In wchar.h - +.\" .Sh DESCRIPTION The .Nm @@ -57,7 +57,7 @@ to the appropriate value. For example, in the following definition: .br .Fn "char * strdup" "const char *" .Ed - +.\" it is documented that defining either .Dv _XOPEN_SOURCE or @@ -68,7 +68,7 @@ before the first inclusion of .In string.h will expose a definition of the function .Fn strdup - +.\" .Sh SEE ALSO .Xr cc 1 , .Xr c++ 7 @@ -93,4 +93,4 @@ library is maintained by by .Mt pdclib@owenshepherd.net . Based upon work by .An Martin "Solar" Baute , -.Mt solar@rootdirectory.de . +.Mt solar@rootdirectory.de . \ No newline at end of file diff --git a/man3/strdup.3 b/man3/strdup.3 index 8ac67e0..2803611 100644 --- a/man3/strdup.3 +++ b/man3/strdup.3 @@ -4,11 +4,11 @@ .Dd .Dt strdup 3 .Os - +.\" .Sh NAME .Nm strdup .Nd string duplication - +.\" .Sh SYNOPSIS .Sy #define _XOPEN_SOURCE || _POSIX_C_SOURCE >= 200809L .In string.h @@ -17,7 +17,7 @@ .Sy #define _POSIX_C_SOURCE >= 200809L .In string.h .Fn "char *strndup" "const char *str" "size_t len" - +.\" .Sh DESCRIPTION .Fn strdup allocates a new buffer of sufficient size as to be able to hold the entirety of @@ -25,7 +25,7 @@ allocates a new buffer of sufficient size as to be able to hold the entirety of including the terminating character, and copies the contents of .Va str into it. - +.\" .Pp .Fn strndup allocates a buffer large enough to contain @@ -38,17 +38,17 @@ including the trailing null character, whichever is smaller. The first characters of .Va str are then copied into it, and a null character appended. - +.\" .Pp The buffers returned by these functions must be released by a call to .Fn free . - +.\" .Sh SEE ALSO .Xr free 3 .Xr malloc 3 .Xr strcpy 3 .Xr strncpy 3 - +.\" .Sh STANDARDS .Fn strdup first specified in diff --git a/man3/string.h.3 b/man3/string.h.3 index fa312b5..eb786ce 100644 --- a/man3/string.h.3 +++ b/man3/string.h.3 @@ -23,7 +23,7 @@ The type and the preprocessor constant .Dv NULL shall be defined. - +.\" .Pp The following shall be defined as functions: .br -- 2.40.0