fs: clean up vlc_dup() documentation

This commit is contained in:
Rémi Denis-Courmont 2020-11-29 11:44:17 +02:00
parent 7322ef1f01
commit 4c75d5a4ae
1 changed files with 8 additions and 4 deletions

View File

@ -100,11 +100,15 @@ VLC_API int vlc_openat(int fd, const char *filename, int flags, ...) VLC_USED;
VLC_API int vlc_mkstemp( char * );
/**
* Duplicates a file descriptor. The new file descriptor has the close-on-exec
* descriptor flag preset.
* @return a new file descriptor, -1 (see errno)
* Duplicates a file descriptor.
*
* @param oldfd file descriptor to duplicate
*
* @note Contrary to standard dup(), the new file descriptor has the
* close-on-exec descriptor flag preset.
* @return a new file descriptor, -1 (see @c errno)
*/
VLC_API int vlc_dup(int) VLC_USED;
VLC_API int vlc_dup(int oldfd) VLC_USED;
/**
* Creates a pipe (see "man pipe" for further reference). The new file