Re: sem_trywait returns EAGAIN (rather than returning -1 and setting errno)

2002-02-28 Thread Andrew T. Schnable
> To: <[EMAIL PROTECTED]> Cc: "Andrew T. Schnable" <[EMAIL PROTECTED]> Sent: Thursday, February 28, 2002 8:55 AM Subject: RE: sem_trywait returns EAGAIN (rather than returning -1 and setting errno) FWIW, I've patched sem_trywait and sem_wait. I haven't looked

Re: Is ksh available on cygwin

2002-02-27 Thread Andrew T. Schnable
I'm a long-time ksh guy - but I have found bash to be a very workable substitute. It starts up in an emacs editing mode - if you prefer vi - do a "set -o vi". Andy [EMAIL PROTECTED] - Original Message - From: "Sanjay Gupta" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday,

Re: not found error

2002-02-27 Thread Andrew T. Schnable
less is one of the available packages - has it been installed via setup? Andy - Original Message - From: "Rashmi Mathew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 1:46 PM Subject: less: not found error > Hello, > > We are using version cygwin-1.3.6

Re: sem_trywait returns EAGAIN (rather than returning -1 and setting errno)

2002-02-26 Thread Andrew T. Schnable
g -1 and setting errno) > On Tue, Feb 26, 2002 at 07:14:35PM -0500, Andrew T. Schnable wrote: > >You have a point regarding errno, but unfortunately, this is how the > >standard > >is written. If it's intentional that cygwin deviate from posix 1.b, I'm fine > &

Re: sem_trywait returns EAGAIN (rather than returning -1 and setting errno)

2002-02-26 Thread Andrew T. Schnable
You have a point regarding errno, but unfortunately, this is how the standard is written. If it's intentional that cygwin deviate from posix 1.b, I'm fine with that - I can code accordingly. FYI - I went to the The Open Group Base Specifications Issue 6 technically identical to IEEE Std

sem_trywait returns EAGAIN (rather than returning -1 and setting errno)

2002-02-25 Thread Andrew T. Schnable
Greetings, I was doing some pthreads/semaphore work and I tracked down a problem in my code to a bug in sem_trywait. Posix sem_trywait is defined as returning -1 and setting errno to EAGAIN if the semaphore would have blocked. The cygwin implementation returns EAGAIN an leaves errno unchange