VLC  3.0.15
Macros | Functions
filesystem.c File Reference
Include dependency graph for filesystem.c:

Macros

#define lstat(a, b)   stat(a, b)
 
#define O_TMPFILE   0
 

Functions

static void vlc_cloexec (int fd)
 
int vlc_open (const char *filename, int flags,...)
 Opens a system file handle. More...
 
int vlc_openat (int dir, const char *filename, int flags,...)
 Opens a system file handle relative to an existing directory handle. More...
 
int vlc_mkstemp (char *template)
 
int vlc_memfd (void)
 Creates an anonymous regular file descriptor, i.e. More...
 
int vlc_close (int fd)
 Closes a file descriptor. More...
 
int vlc_mkdir (const char *dirname, mode_t mode)
 Creates a directory. More...
 
DIR * vlc_opendir (const char *dirname)
 Opens a DIR pointer. More...
 
const char * vlc_readdir (DIR *dir)
 Reads the next file name from an open directory. More...
 
int vlc_stat (const char *filename, struct stat *buf)
 Finds file/inode information - like stat(). More...
 
int vlc_lstat (const char *filename, struct stat *buf)
 Finds file/inode information, as lstat(). More...
 
int vlc_unlink (const char *filename)
 Removes a file. More...
 
int vlc_rename (const char *oldpath, const char *newpath)
 Moves a file atomically. More...
 
char * vlc_getcwd (void)
 Determines the current working directory. More...
 
int vlc_dup (int oldfd)
 Duplicates a file descriptor. More...
 
int vlc_pipe (int fds[2])
 Creates a pipe (see "man pipe" for further reference). More...
 
ssize_t vlc_write (int fd, const void *buf, size_t len)
 Writes data to a file descriptor. More...
 
ssize_t vlc_writev (int fd, const struct iovec *iov, int count)
 Writes data from an iovec structure to a file descriptor. More...
 
static void vlc_socket_setup (int fd, bool nonblock)
 
int vlc_socket (int pf, int type, int proto, bool nonblock)
 Creates a socket file descriptor. More...
 
int vlc_socketpair (int pf, int type, int proto, int fds[2], bool nonblock)
 Creates a pair of socket file descriptors. More...
 
int vlc_accept (int lfd, struct sockaddr *addr, socklen_t *alen, bool nonblock)
 Accepts an inbound connection request on a listening socket. More...
 

Macro Definition Documentation

◆ lstat

#define lstat (   a,
 
)    stat(a, b)

◆ O_TMPFILE

#define O_TMPFILE   0

Function Documentation

◆ vlc_cloexec()

static void vlc_cloexec ( int  fd)
inlinestatic

◆ vlc_socket_setup()

static void vlc_socket_setup ( int  fd,
bool  nonblock 
)
static

References vlc_cloexec().

Referenced by vlc_accept(), vlc_socket(), and vlc_socketpair().