>And to try to answer my own question, Draft 2 says
>(about dirfd() among others):
>
>...shall be declared as functions and may also be defined as macros. Function
>prototypes shall be provided.
>
>and specifically about dirfd():
>
>The dirfd( ) function may fail if:
>[EINVAL] The dirp argument does not refer to a valid directory stream.

None of readdir/opendir have this return value.

Note also that it says "may fail"; so returning failure on NULL is
allowed as is SIGSEGV; IMHO, the latter is still prefered.

Casper
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to