public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] which routines must be re-entrant?
@ 2001-05-31 23:01 Dawson Engler
  2001-06-01 15:37 ` Kurt Roeckx
  0 siblings, 1 reply; 2+ messages in thread
From: Dawson Engler @ 2001-05-31 23:01 UTC (permalink / raw)
  To: linux-kernel

Is there an easy way to tell which routines must be re-entrant? 
(it doesn't have to be exhaustive, even an incomplete set is useful)

I was going to write a checker to make sure supposedly re-entrant
routines actually were, but was having a hard time figuring out which
ones were supposed to be...

Thanks,
Dawson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [QUESTION] which routines must be re-entrant?
  2001-05-31 23:01 [QUESTION] which routines must be re-entrant? Dawson Engler
@ 2001-06-01 15:37 ` Kurt Roeckx
  0 siblings, 0 replies; 2+ messages in thread
From: Kurt Roeckx @ 2001-06-01 15:37 UTC (permalink / raw)
  To: Dawson Engler; +Cc: linux-kernel

On Thu, May 31, 2001 at 04:01:34PM -0700, Dawson Engler wrote:
> Is there an easy way to tell which routines must be re-entrant? 
> (it doesn't have to be exhaustive, even an incomplete set is useful)
> 
> I was going to write a checker to make sure supposedly re-entrant
> routines actually were, but was having a hard time figuring out which
> ones were supposed to be...

Their was an post on bugtraq a few days ago about this, it had a
list with all system calls which are reentrant safe under
OpenBSD.  The paper was about signals, and is available at

http://razor.bindview.com/publish/papers/signals.txt

OpenBSD had a manpage wich lists all the function which should be
be safe to call from a signal handler.  It might be a nice
place to start.  You should only look at those from section 2
of course.

http://www.openbsd.org/cgi-bin/man.cgi?query=sigaction



Kurt


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-01 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-31 23:01 [QUESTION] which routines must be re-entrant? Dawson Engler
2001-06-01 15:37 ` Kurt Roeckx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox