cvs commit: src/lib/libc/gen syslog.c
joerg at britannica.bec.de
joerg at britannica.bec.de
Fri May 12 06:52:37 UTC 2006
On Thu, May 11, 2006 at 10:41:37PM +0400, Maxim Konovalov wrote:
> On Thu, 11 May 2006, 09:10-0000, David Xu wrote:
>
> > davidxu 2006-05-11 09:10:33 UTC
> >
> > FreeBSD src repository
> >
> > Modified files:
> > lib/libc/gen syslog.c
> > Log:
> > Save errno before calling pthread_mutex_lock because pthread_mutex_lock
> > may change errno unexpectly.
>
> AFAIR POSIX's pthread_* don't change errno. Is it a bug in our
> implementation?
I agree that SUS doesn't specify any case where pthread_mutex_lock can
change errno. The major difference is that those functions return the
error directly.
Joerg
More information about the cvs-src
mailing list