apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: APR_EXCL
Date Sat, 20 Jan 2001 03:27:30 GMT

> > This is the win32 apr_open code...
> > 
> > if ((flag & APR_EXCL) && !(flag & APR_CREATE)) {
> >     return APR_EACCES;
> > }
> > 
> > That's not what I get out of the man pages.  What is the side
> > effect of O_EXCL and !O_CREATE?  I'm not clear.
> 
> O_EXCL is only useful when O_CREAT is used. Otherwise, O_EXCL can be
> ignored. (see _O_EXCL in your MSDN library)
> 
> The above test is probably redundant (read: remove it), since it shouldn't
> ever happen. (and our policy is to not worry about caller mistakes)

I disagree.  Try calling the unix code with APR_EXCL but not APR_CREATE,
it return APR_EACCESS.  Windows should do the same in this case.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message