Michael Kerrisk
6b34fb3f5a
execve.2, pipe.2, tee.2, fmemopen.3, mq_notify.3, qsort.3: Replace use of assert() by code that checks argc
...
See http://bugzilla.kernel.org/show_bug.cgi?id=13569
As noted by Andrey:
The purpose of the assert macro, defined in <assert.h>,
is to provide a tool to check for programming mistakes
or program logic errors. However, the assert macro must
never be used to perform checks for run time errors,
since, with the NDEBUG macro defined, expressions within
the assert macro invocations are not evaluated/checked
for, resulting in behavior that was not originally intended.
...
The pages affected in the core package are
execve(2)
pipe(2)
tee(2)
fmemopen(3)
mq_notify(3)
qsort(3)
Reported-by: Andrey Vihrov <vihrov@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-09-28 12:46:19 +02:00
Michael Kerrisk
7bbac16345
qsort.3: EXAMPLE: remove unnecessary "#include <stdlib.h>"
...
Reported-by: Christian Siebert <christian.siebert@s2000.tu-chemnitz.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-02-02 02:00:10 +13:00
Michael Kerrisk
a93bcd70d8
Added FIXME
2008-06-11 09:55:35 +00:00
Michael Kerrisk
088a639be3
Make the standard indent for code samples, shell session
...
logs, etc. to be ".in +4n".
2007-12-19 06:57:44 +00:00
Michael Kerrisk
a057d61fb4
wfix
2007-07-09 21:45:31 +00:00
Michael Kerrisk
29059a6548
s/-/\\-/
2007-06-20 21:39:45 +00:00
Michael Kerrisk
9daa4fb9bb
Add page number to xrefs
2007-06-14 06:25:37 +00:00
Michael Kerrisk
19c98696a2
s/SH NOTE$/SH NOTES/
2007-05-16 02:54:18 +00:00
Michael Kerrisk
60a90ecdae
Convert function formatting of the form "\fBname\fP()" to ".BR name ()".
2007-05-12 09:06:04 +00:00
Michael Kerrisk
fb18673428
Adding section numbers to xrefs toother pages
2007-05-12 00:30:29 +00:00
Michael Kerrisk
c13182efa3
Wrapped long lines, wrapped at sentence boundaries; stripped trailing
...
white space.
2007-04-12 22:42:49 +00:00
Michael Kerrisk
1eb85d1484
Updated various header pages to accurately reflect which functions
...
are and are not part of C89. Also fixed/improved a few other
CONFORMING TO entries.
2006-12-16 22:11:08 +00:00
Michael Kerrisk
cb47866806
Fix wording referring to the use of strcmp() in 'compar' function.
...
See Debian bug 391402.
2006-10-06 13:57:33 +00:00
Michael Kerrisk
68e1685c25
Updated CONFORMING TO section
2006-08-03 13:57:30 +00:00
Michael Kerrisk
7c5bd0ebc2
Add missing "const" qualifies to cast in EXAMPLE.
...
Slight rewording of comments in EXAMPLE.
2006-05-08 06:41:59 +00:00
Michael Kerrisk
48a1cb4903
Small rewording under EXAMPLE.
2006-01-16 19:48:56 +00:00
Michael Kerrisk
788be12467
Clarify how strcmp() should be used as the 'compar'
...
function by providing an example.
2006-01-14 18:25:27 +00:00
Michael Kerrisk
31e9a9ec99
Change itacised function names and page xrefs to bold
2005-11-02 11:34:24 +00:00
Michael Kerrisk
e1d6264d9f
Manual fixes for parentheses formatting
2005-10-19 07:29:28 +00:00
Michael Kerrisk
63aa9df02f
Automated unformatting of parentheses using unformat_parens.sh
2005-10-19 07:07:02 +00:00
Michael Kerrisk
b14d4aa5b8
Classical BSD versions are now always named x.yBSD (formerly
...
there was a mix of x.yBSD and BSD x.y).
2005-07-18 15:05:56 +00:00
Michael Kerrisk
fea681dafb
Import of man-pages 1.70
2004-11-03 13:51:07 +00:00