Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 1997 17:46:48 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        nash@mcs.com
Cc:        bradley@dunn.org, freebsd-hackers@FreeBSD.ORG
Subject:   Re: pthread_cond_timedwait returning wrong error?
Message-ID:  <199711251746.KAA02503@usr08.primenet.com>
In-Reply-To: <199711242333.RAA00666@zen.nash.org> from "Alex Nash" at Nov 24, 97 05:33:17 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > While we are talking about threads, any comments on PR-4376?
> 
> You are 100% right about the return value being incorrect.
> Unfortunately, this problem is present in many more functions than just
> pthread_join().
> 
> From what I can tell by looking at an old DEC OSF/1 reference on
> pthreads, returning -1 an setting errno is the way things used to work.
> Apparently POSIX has changed that.

Given that "errno" is a global variable, this is actually a good thing.

How many times have you wished for:

     errno = lseek(int fildes, off_t newoffset, int whence, off_t *oldoffset)

Or:

     errno = lseek(int fildes, off_t *offset, int whence)

Instead of:

     off_t
     lseek(int fildes, off_t offset, int whence)

So that you didn't have to worry about the sign bit?


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711251746.KAA02503>