Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Q:Errno in multi-threaded programs.
@ 1995-11-10  5:00 David Hinz
  0 siblings, 0 replies; only message in thread
From: David Hinz @ 1995-11-10  5:00 UTC (permalink / raw)


In a multi-threaded application are there any special things needed to use
errno safely? In the DEC "Programming With Threads" manual (page 3-13) it says
that "The POSIX 1003.4a (pthread) interface returns a function value of -1 and
sets the per-thread errno variable to an error code." Does this mean that I can
safely use perror, errno, strerror and get the correct error message from a
function that has failed? Is it necessary to set errno to 0 before a function
call? 


Thanks for any info,
David Hinz




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-11-10  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-10  5:00 Q:Errno in multi-threaded programs David Hinz

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