Re: What errno value should I receive if trying to create a file an a
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: What errno value should I receive if trying to create a file an a




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: What errno value should I receive if trying to create a file an a  
Geoff Clare


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-10-07 06:23 PM

Scott Lurndal wrote:

> Per POSIX:
>
> [EACCES]
>     Search permission is denied on a component of the path prefix,
>     or the file exists and the permissions specified by oflag are denied,
>     or the file does not exist and write permission is denied for the pare
nt
>     directory of the file to be created, or O_TRUNC is specified and write
>     permission is denied.
>
> [EROFS]
>     The named file resides on a read-only file system and either O_WRONLY,
>     O_RDWR, O_CREAT (if the file does not exist), or O_TRUNC is set in
>     the oflag argument.
>
> Note that either _could_ apply in this case, but I believe the intent of P
OSIX
> is that EROFS should take precedence.

What makes you believe that is the intent?

POSIX has a general rule that there is no precedence between errors.
XSH section 2.3 Error Numbers:

"If more than one error occurs in processing a function call, any
one of the possible errors may be returned, as the order of
detection is undefined."

--
Geoff Clare <netnews@gclare.org.uk>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register