00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef VLC_FS_H
00022 #define VLC_FS_H 1
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include <sys/types.h>
00032 #include <dirent.h>
00033
00034 VLC_EXPORT( int, vlc_open, ( const char *filename, int flags, ... ) LIBVLC_USED );
00035 VLC_EXPORT( FILE *, vlc_fopen, ( const char *filename, const char *mode ) LIBVLC_USED );
00036 VLC_EXPORT( int, vlc_openat, ( int fd, const char *filename, int flags, ... ) LIBVLC_USED );
00037
00038 VLC_EXPORT( DIR *, vlc_opendir, ( const char *dirname ) LIBVLC_USED );
00039 VLC_EXPORT( char *, vlc_readdir, ( DIR *dir ) LIBVLC_USED );
00040 VLC_EXPORT( int, vlc_loaddir, ( DIR *dir, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** ) ) );
00041 VLC_EXPORT( int, vlc_scandir, ( const char *dirname, char ***namelist, int (*select)( const char * ), int (*compar)( const char **, const char ** ) ) );
00042 VLC_EXPORT( int, vlc_mkdir, ( const char *filename, mode_t mode ) );
00043
00044 VLC_EXPORT( int, vlc_unlink, ( const char *filename ) );
00045 VLC_EXPORT( int, vlc_rename, ( const char *oldpath, const char *newpath ) );
00046
00047 #if defined( WIN32 ) && !defined( UNDER_CE )
00048 # define stat _stati64
00049 #endif
00050
00051 VLC_EXPORT( int, vlc_stat, ( const char *filename, struct stat *buf ) );
00052 VLC_EXPORT( int, vlc_lstat, ( const char *filename, struct stat *buf ) );
00053
00054 VLC_EXPORT( int, vlc_mkstemp, ( char * ) );
00055
00056 VLC_EXPORT( int, vlc_dup, ( int ) );
00057 #endif