libcdio
2.1.0
|
Routines involving UDF file operations. More...
Go to the source code of this file.
Functions | |
bool | udf_get_fileid_descriptor (const udf_dirent_t *p_udf_dirent, udf_fileid_desc_t *p_udf_fid) |
const char * | udf_get_filename (const udf_dirent_t *p_udf_dirent) |
bool | udf_get_file_entry (const udf_dirent_t *p_udf_dirent, udf_file_entry_t *p_udf_fe) |
uint16_t | udf_get_link_count (const udf_dirent_t *p_udf_dirent) |
uint64_t | udf_get_file_length (const udf_dirent_t *p_udf_dirent) |
mode_t | udf_get_posix_filemode (const udf_dirent_t *p_udf_dirent) |
udf_dirent_t * | udf_opendir (const udf_dirent_t *p_udf_dirent) |
ssize_t | udf_read_block (const udf_dirent_t *p_udf_dirent, void *buf, size_t count) |
udf_dirent_t * | udf_readdir (udf_dirent_t *p_udf_dirent) |
bool | udf_dirent_free (udf_dirent_t *p_udf_dirent) |
bool | udf_is_dir (const udf_dirent_t *p_udf_dirent) |
Routines involving UDF file operations.
bool udf_dirent_free | ( | udf_dirent_t * | p_udf_dirent | ) |
free free resources associated with p_udf_dirent.
bool udf_get_file_entry | ( | const udf_dirent_t * | p_udf_dirent, |
udf_file_entry_t * | p_udf_fe | ||
) |
Return the name of the file
uint64_t udf_get_file_length | ( | const udf_dirent_t * | p_udf_dirent | ) |
Return the file length the file. Return 2147483647L if error.
bool udf_get_fileid_descriptor | ( | const udf_dirent_t * | p_udf_dirent, |
udf_fileid_desc_t * | p_udf_fid | ||
) |
Return the file id descriptor of the given file.
const char* udf_get_filename | ( | const udf_dirent_t * | p_udf_dirent | ) |
Return the name of the file
uint16_t udf_get_link_count | ( | const udf_dirent_t * | p_udf_dirent | ) |
Return the number of hard links of the file. Return 0 if error.
mode_t udf_get_posix_filemode | ( | const udf_dirent_t * | p_udf_dirent | ) |
Returns a POSIX mode for a given p_udf_dirent.
bool udf_is_dir | ( | const udf_dirent_t * | p_udf_dirent | ) |
Return true if the file is a directory.
udf_dirent_t* udf_opendir | ( | const udf_dirent_t * | p_udf_dirent | ) |
Return the next subdirectory.
ssize_t udf_read_block | ( | const udf_dirent_t * | p_udf_dirent, |
void * | buf, | ||
size_t | count | ||
) |
Attempts to read up to count bytes from UDF directory entry p_udf_dirent into the buffer starting at buf. buf should be a multiple of UDF_BLOCKSIZE bytes. Reading continues after the point at which we last read or from the beginning the first time.
If count is zero, read() returns zero and has no other results. If count is greater than SSIZE_MAX, the result is unspecified.
If there is an error, cast the result to driver_return_code_t for the specific error code. Attempts to read up to count bytes from file descriptor fd into the buffer starting at buf.
If count is zero, read() returns zero and has no other results. If count is greater than SSIZE_MAX, the result is unspecified.
udf_dirent_t* udf_readdir | ( | udf_dirent_t * | p_udf_dirent | ) |
Advances p_udf_direct to the the next directory entry in the pointed to by p_udf_dir. It also returns this as the value. NULL is returned on reaching the end-of-file or if an error. Also p_udf_dirent is free'd. If the end of is not reached the caller must call udf_dirent_free() with p_udf_dirent when done with it to release resources.