From: David Hinz <7587678@mcimail.com>
Subject: Q:Errno in multi-threaded programs.
Date: 1995/11/10 [thread overview]
Message-ID: <47vsh1$1un@hermes.dna.mci.com> (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
reply other threads:[~1995-11-10 5:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox