VLC 4.0.0-dev
|
Modules | |
File descriptors | |
Directories | |
Files | |
file | vlc_fs.h |
The functions in this file help with using low-level Unix-style file descriptors, BSD sockets and directories. | |
Functions | |
int | vlc_stat (const char *filename, struct stat *) |
Finds file/inode information - like stat(). More... | |
int | vlc_lstat (const char *filename, struct stat *) |
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... | |
FILE * | vlc_fopen (const char *filename, const char *mode) |
Opens a FILE pointer. More... | |
FILE * vlc_fopen | ( | const char * | filename, |
const char * | mode | ||
) |
Opens a FILE pointer.
filename | file path, using UTF-8 encoding |
mode | fopen file open mode |
References vlc_close(), and vlc_open().
Referenced by config_OpenConfigFile(), hash_from_binary_file(), ImageWriteUrl(), input_FindArtInCacheUsingItemUID(), input_SaveArt(), TsStorageNew(), update_DownloadReal(), vlc_playlist_Export(), and vout_snapshot_SaveImage().
int vlc_lstat | ( | const char * | filename, |
struct stat * | buf | ||
) |
Finds file/inode information, as lstat().
Consider using fstat() instead, if possible.
filename | UTF-8 file path |
References vlc_stat(), and vlc_statEx().
int vlc_rename | ( | const char * | oldpath, |
const char * | newpath | ||
) |
Moves a file atomically.
This only works within a single file system.
oldpath | path to the file before the move |
newpath | intended path to the file after the move |
References ToLocaleDup, and widen_path().
Referenced by config_SaveConfigFile().
int vlc_stat | ( | const char * | filename, |
struct stat * | buf | ||
) |
Finds file/inode information - like stat().
filename | UTF-8 file path |
References vlc_statEx(), and widen_path().
Referenced by input_SaveArt(), input_SubtitleFile2Uri(), InputGetExtraFilesPattern(), subtitles_Detect(), vlc_lstat(), and vout_snapshot_SaveImage().
int vlc_unlink | ( | const char * | filename | ) |
Removes a file.
filename | a UTF-8 string with the name of the file you want to delete. |
References ToLocaleDup, unlikely, and widen_path().
Referenced by config_SaveConfigFile(), TsStorageDelete(), TsStorageNew(), and update_DownloadReal().