36# define fstat _fstati64
39# define lseek _lseeki64
261VLC_API int vlc_scandir(
const char *dirname,
char ***namelist,
int (*select)(
const char * ),
int (*
compar)(
const char **,
const char ** ) );
287# define lseek lseek64
#define VLC_USED
Definition: fourcc_gen.c:32
#define VLC_API
Definition: fourcc_gen.c:31
vlc_DIR * vlc_opendir(const char *dirname)
Opens a DIR pointer.
Definition: filesystem.c:110
char * vlc_getcwd(void)
Determines the current working directory.
Definition: filesystem.c:228
void vlc_rewinddir(vlc_DIR *dir)
Definition: filesystem.c:322
DIR vlc_DIR
Definition: vlc_fs.h:236
int vlc_mkdir(const char *dirname, mode_t mode)
Creates a directory.
Definition: filesystem.c:96
const char * vlc_readdir(vlc_DIR *dir)
Reads the next file name from an open directory.
Definition: filesystem.c:282
int vlc_loaddir(vlc_DIR *dir, char ***namelist, int(*select)(const char *), int(*compar)(const char **, const char **))
Does the same as vlc_scandir(), but takes an open directory pointer instead of a directory path.
Definition: filesystem.c:121
void vlc_closedir(vlc_DIR *dir)
Definition: filesystem.c:272
int vlc_scandir(const char *dirname, char ***namelist, int(*select)(const char *), int(*compar)(const char **, const char **))
Selects file entries from a directory, as GNU C scandir().
Definition: filesystem.c:187
int vlc_mkstemp(char *)
Definition: filesystem.c:204
int vlc_open(const char *filename, int flags,...)
Opens a system file handle.
Definition: filesystem.c:52
int vlc_openat(int fd, const char *filename, int flags,...)
Opens a system file handle relative to an existing directory handle.
Definition: filesystem.c:78
int vlc_pipe(int[2])
Creates a pipe (see "man pipe" for further reference).
Definition: filesystem.c:285
int vlc_memfd(void)
Creates an anonymous regular file descriptor, i.e.
Definition: filesystem.c:38
int vlc_dup2(int oldfd, int newfd)
Replaces a file descriptor.
Definition: filesystem.c:276
ssize_t vlc_writev(int, const struct iovec *, int)
Writes data from an iovec structure to a file descriptor.
Definition: filesystem.c:306
int vlc_dup(int oldfd)
Duplicates a file descriptor.
Definition: filesystem.c:265
int vlc_close(int fd)
Closes a file descriptor.
Definition: filesystem.c:91
ssize_t vlc_write(int, const void *, size_t)
Writes data to a file descriptor.
Definition: filesystem.c:299
int vlc_rename(const char *oldpath, const char *newpath)
Moves a file atomically.
Definition: filesystem.c:207
int vlc_lstat(const char *filename, struct stat *)
Finds file/inode information, as lstat().
Definition: filesystem.c:188
int vlc_unlink(const char *filename)
Removes a file.
Definition: filesystem.c:193
int vlc_stat(const char *filename, struct stat *)
Finds file/inode information - like stat().
Definition: filesystem.c:183
FILE * vlc_fopen(const char *filename, const char *mode)
Opens a FILE pointer.
Definition: filesystem.c:49
int(* compar)(const void *, const void *, void *)
Definition: sort.c:31
Definition: filesystem.c:156
This file is a collection of common definitions and types.