[vlc-devel] [PATCH] access directory: try opening files as non blocking (fix #6940).
Tobias Güntner
fatbull at web.de
Fri Jun 15 02:58:02 CEST 2012
Rémi Denis-Courmont:
>> What if you use O_DIRECTORY instead of O_NONBLOCK?
>
> That's Linux-specific. If we agree to ignore standards (which seems like the
> only option), then we might as well use O_NONBLOCK, which is probably more
> portable than O_DIRECTORY, and does not require further code changes.
Is this still the case? According to POSIX[1], O_NONBLOCK is unspecified
for anything except FIFOs and special files, whereas O_DIRECTORY has no
such limitation.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/openat.html
Regards,
Tobias
More information about the vlc-devel
mailing list