Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-7] src/lib/libc/gen



Module Name:    src
Committed By:   snj
Date:           Tue Apr 14 05:21:26 UTC 2015

Modified Files:
        src/lib/libc/gen [netbsd-7]: opendir.c

Log Message:
Pull up following revision(s) (requested by christos in ticket #691):
        lib/libc/gen/opendir.c: revision 1.39
- Use O_DIRECTORY to open the file, so that we don't need to stat() after
  that.
- Move the stat() call to fdopendir() and change it's error handling so that
  it does not hide errors.
- According to POSIX, fdopendir() transfers ownership of the fd only on
  success, so don't close it on failure. XXX: We still make it non-blocking
  on failure, but that's nitpicking.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.38.20.1 src/lib/libc/gen/opendir.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index