List of routines safe to use in signals?
Jonathan I. Kamens
jik at athena.mit.edu
Mon Dec 17 09:42:46 AEST 1990
In article <995 at usage.csd.unsw.oz.au>, cameron at usage.csd.oz (Cameron Simpson) writes:
|> 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.
Agreed. That is why I mentioned the POSIX standards as well.
Personally, I would never rely on anything in a man page that I was not
absolutely, positively certain was true of ALL implementations of the function
described in the man page. That means that I would most likely not assume
that a function is safe to use in a signal handler just because the man page
on one OS type says that it is. Of course, since I don't recall ever seeing a
man page that actually mentions whether or not a function is safe to use in a
signal handler, the point is sort of moot. Standards like POSIX may deal with
such things, but I don't think most man pages to :-).
--
Jonathan Kamens USnail:
MIT Project Athena 11 Ashford Terrace
jik at Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8085 Home: 617-782-0710
More information about the Comp.unix.programmer
mailing list