From: nobu.nokada@... Date: 2003-12-05T17:47:16+09:00 Subject: Re: propagating errno from c extensions Hi, At Fri, 5 Dec 2003 14:02:05 +0900, Ara.T.Howard wrote: > > > however i see many cases where functions simply return Qfalse, Qtrue, etc. for > > > broad catagories of errno values - leaving the user to guess as to the cause > > > of the error (eg. rb_file_flock). is there are way of getting at errno that i > > > am unaware of? if so perhaps this is o.k.... > > > > rb_file_flock() raises SystemCallError except for the case it > > would block. > > doesn't this mean that, under certain return values (EACCES), flock would > simply return false? On some systems, fcntl() fails with not EAGAIN but EACCES when the file is locked already. -- Nobu Nakada