This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to handle NULL dirp argument to readdir_r


On Sat, Dec 20, 2003 at 05:16:53PM +0530, sandeep kumar wrote:
> Changelog :
> * src/dir.cxx (readdir_r): Handle NULL dirp argument and return EINVAL.
> 
> Choice of return value as EINVAL/ENOTDIR/EBADF . If you find EINVAL
> is not the right error code to return, please change that.

Thanks for the patch.

I checked the POSIX standard. It say that EBADF should be returned, so
i made the appropriate change.

       Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]