]> git.ipfire.org Git - thirdparty/man-pages.git/commit
execve.2, pipe.2, tee.2, fmemopen.3, mq_notify.3, qsort.3: Replace use of assert...
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 15 Sep 2009 04:46:16 +0000 (06:46 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 28 Sep 2009 10:46:19 +0000 (12:46 +0200)
commit6b34fb3f5a21ad8db2f92d0df3647ecb330c2f3d
tree434ee01ed888bf11104d894ac14d0797c6a87ae8
parented35aae690d742ca0e5c0103cf26fe7d08cabc44
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>
man2/execve.2
man2/pipe.2
man2/tee.2
man3/fmemopen.3
man3/mq_notify.3
man3/qsort.3