[vlc-devel] [cube at cubidou.net: [Videolan-devel] access/file shortcut to open file descriptors]

Rémi Denis-Courmont rdenis at simphalempin.com
Thu Feb 19 12:13:45 CET 2009


"filedesc://" evokes file descriptION. In my opinion, the usual accronym
for file descriptOR is just "fd://".
Also, it seems the dup() call is missing. Or why should this behave
differently from the stdin case?

There are a few subtle differences between this patch and
"/dev/fd"/"/proc/self/fd", e.g.:
- it reads the file from current descriptor offset instead of from the
- it changes the file descriptor offset,
- it inherits file locks,
- on Linux, /proc/self/fd cannot open sockets and anonymous pipes, 
- on OSX, /dev/fd cannot open directories.

I guess these are non-issues.


Rémi Denis-Courmont

More information about the vlc-devel mailing list