31 #include <sys/types.h>
34 VLC_API
int vlc_open(
const char *filename,
int flags, ... ) VLC_USED;
35 VLC_API FILE * vlc_fopen( const
char *filename, const
char *mode ) VLC_USED;
36 VLC_API
int vlc_openat(
int fd, const
char *filename,
int flags, ... ) VLC_USED;
38 VLC_API DIR * vlc_opendir( const
char *dirname ) VLC_USED;
39 VLC_API
char * vlc_readdir( DIR *dir ) VLC_USED;
40 VLC_API
int vlc_loaddir( DIR *dir,
char ***namelist,
int (*select)( const
char * ),
int (*compar)( const
char **, const
char ** ) );
41 VLC_API
int vlc_scandir( const
char *dirname,
char ***namelist,
int (*select)( const
char * ),
int (*compar)( const
char **, const
char ** ) );
42 VLC_API
int vlc_mkdir( const
char *filename, mode_t mode );
44 VLC_API
int vlc_unlink( const
char *filename );
45 VLC_API
int vlc_rename( const
char *oldpath, const
char *newpath );
46 VLC_API
char *vlc_getcwd(
void ) VLC_USED;
49 static inline int vlc_closedir( DIR *dir )
51 _WDIR *wdir = *(_WDIR **)dir;
53 return wdir ? _wclosedir( wdir ) : 0;
56 # define closedir vlc_closedir
58 static inline void vlc_rewinddir( DIR *dir )
60 _WDIR *wdir = *(_WDIR **)dir;
65 # define rewinddir vlc_rewinddir
67 # include <sys/stat.h>
69 # define stat _stati64
72 # define fstat _fstati64
75 # define lseek _lseeki64
79 # define lseek lseek64
84 VLC_API
int vlc_stat(
const char *filename,
struct stat *buf );
85 VLC_API
int vlc_lstat(
const char *filename,
struct stat *buf );
87 VLC_API
int vlc_mkstemp(
char * );
89 VLC_API
int vlc_dup(
int );
90 VLC_API
int vlc_pipe(
int[2] );