List of routines safe to use in signals?
Cameron Simpson
cameron at usage.csd.oz
Fri Dec 14 19:25:52 AEST 1990
In <1990Dec13.205957.25208 at athena.mit.edu>, by jik at athena.mit.edu (Jonathan I. Kamens):
| In <1990Dec13.022804.7712 at scuzzy.in-berlin.de>, src at scuzzy.in-berlin.de (Heiko Blume):
| |> don't get me wrong, but there are so many things that are in the
| |> man page, but just don't work.
|
| Then they should be fixed as they are found.
|
| A man page for a library function is a specification for that function.
True, but often a man page specifies more than what is portable.
For instance, free() may be defined as accepting NULL happily.
Or (my personal peeve) realloc() may say the old pointer is invalid
even if the realloc fails.
The thing is that there is often (nay, never) a distinction made in the
manual about what is specific to the local implementation and what is
generic (generic BSD, generic Sys5, generic ANSI C, etc etc etc). It is
often difficult to decide how much of a manual page one should trust when
writing code to run on different implementations.
- Cameron Simpson
cameron at spectrum.cs.unsw.oz.au
More information about the Comp.unix.programmer
mailing list