David Sarrazin
|
Re: RE: chdir and errno on failure (correctness question)
|
David Sarrazin
07/07/2008 2:12 PM
post10127
|
Re: RE: chdir and errno on failure (correctness question)
We had this discussion many years ago about the return of access(). The problem was specifically that access() returned
EINTR, even though that return value wasn't documented. RnD's view at the time was "POSIX says that a function will
return _at least_ the documented values, maybe more", so the EINTR was still within POSIX.
Looking at access(), it can still return errno values outside of it's documented range, so chdir() doing the same isn't
anything new.
Personal opinion? chdir() (and access(), etc.) should be checking the return from calls like MsgSend(), and doing their
own error handing. (if EINTR is returned, the call should be re-started inside of chdir()). As a side-effect, the
chdir() call only returns its documented errno values.
|
|
|