History log of /dflybsd-src/lib/libc/gen/dirfd.c (Results 1 – 1 of 1)
Revision Date Author Comments
# de45303d 24-Jan-2015 Sascha Wildner <saw@online.de>

libc: Change dirfd() into a function (needed per POSIX).

At the same time, make struct _dirdesc private to libc. If access
to dd_fd is needed, dirfd() has to be used. Inside libc, the former
dirfd()

libc: Change dirfd() into a function (needed per POSIX).

At the same time, make struct _dirdesc private to libc. If access
to dd_fd is needed, dirfd() has to be used. Inside libc, the former
dirfd() macro is preserved as _dirfd().

Also, in struct _dirdesc, change the lock from "void *" to
"struct pthread_mutex *". This allows us to eliminate some casts
in readdir() and friends.

Our documentation already describes dirfd() as a function.

Based-on: FreeBSD's similar work

show more ...