VLC
3.0.21
|
Functions | |
int | vlc_open (const char *filename, int flags,...) |
Opens a system file handle. More... | |
int | vlc_openat (int fd, const char *filename, int flags,...) |
Opens a system file handle relative to an existing directory handle. More... | |
int | vlc_mkstemp (char *) |
int | vlc_dup (int) |
Duplicates a file descriptor. More... | |
int | vlc_pipe (int[2]) |
Creates a pipe (see "man pipe" for further reference). More... | |
int | vlc_memfd (void) |
Creates an anonymous regular file descriptor, i.e. More... | |
ssize_t | vlc_write (int, const void *, size_t) |
Writes data to a file descriptor. More... | |
ssize_t | vlc_writev (int, const struct iovec *, int) |
Writes data from an iovec structure to a file descriptor. More... | |
int | vlc_close (int fd) |
Closes a file descriptor. More... | |
int vlc_close | ( | int | fd | ) |
Closes a file descriptor.
This closes a file descriptor. If this is a last file descriptor for the underlying open file, the file is closed too; the exact semantics depend on the type of file.
fd | file descriptor |
A nul return value does not necessarily imply that all pending I/O succeeded, since I/O might still occur asynchronously afterwards.
int vlc_dup | ( | int | ) |
Duplicates a file descriptor.
The new file descriptor has the close-on-exec descriptor flag preset.
References likely, and vlc_cloexec().
int vlc_memfd | ( | void | ) |
Creates an anonymous regular file descriptor, i.e.
a descriptor for a temporary file.
The file is initially empty. The storage space is automatically reclaimed when all file descriptors referencing it are closed.
The new file descriptor has the close-on-exec flag preset.
References O_TMPFILE, vlc_mkstemp(), and vlc_open().
int vlc_mkstemp | ( | char * | ) |
References vlc_cloexec().
Referenced by vlc_memfd().
int vlc_open | ( | const char * | filename, |
int | flags, | ||
... | |||
) |
Opens a system file handle.
filename | file path to open (with UTF-8 encoding) |
flags | open() flags, see the C library open() documentation |
References O_TMPFILE, ToLocaleDup, vlc_cloexec(), and widen_path().
Referenced by block_FilePath(), config_SaveConfigFile(), vlc_fopen(), vlc_memfd(), and vlc_rand_init().
int vlc_openat | ( | int | fd, |
const char * | filename, | ||
int | flags, | ||
... | |||
) |
Opens a system file handle relative to an existing directory handle.
dir | directory file descriptor |
filename | file path to open (with UTF-8 encoding) |
flags | open() flags, see the C library open() documentation |
References O_TMPFILE, and VLC_UNUSED.
int vlc_pipe | ( | int | [2] | ) |
Creates a pipe (see "man pipe" for further reference).
The new file descriptors have the close-on-exec flag preset.
References vlc_cloexec(), and vlc_socketpair().
Referenced by vlc_getProxyUrl(), and vlc_poll_i11e_inner().
ssize_t vlc_write | ( | int | , |
const void * | , | ||
size_t | |||
) |
Writes data to a file descriptor.
Unlike write(), if EPIPE error occurs, this function does not generate a SIGPIPE signal.
References vlc_writev().
ssize_t vlc_writev | ( | int | , |
const struct iovec * | , | ||
int | |||
) |
Writes data from an iovec structure to a file descriptor.
Unlike writev(), if EPIPE error occurs, this function does not generate a SIGPIPE signal.
References count.
Referenced by vlc_write().