Go to the source code of this file.
◆ fd2fpath_malloc()
| char * fd2fpath_malloc |
( |
int | fd | ) |
|
|
extern |
◆ fileutils_calcdirlevel()
| short int fileutils_calcdirlevel |
( |
const char * | path | ) |
|
|
extern |
Calculates directory level of a canonized path (actually it just counts "/"-s)
- Parameters
-
| [in] | path | Canonized path (with realpath()) |
- Return values
-
| zero | or prositive Direcory level |
| negative | Got error, while calculation. Error-code is placed to errno. |
Definition at line 138 of file fileutils.c.
◆ fileutils_copy()
| int fileutils_copy |
( |
const char * | path_from, |
|
|
const char * | path_to ) |
|
extern |
Copies file.
- Parameters
-
| [in] | path_from | Source file path |
| [in] | path_to | Destination file path |
- Return values
-
| zero | Successfully copied |
| non-zero | Got error, while copying |
Definition at line 78 of file fileutils.c.
◆ mkdirat_open()
| int mkdirat_open |
( |
const char *const | dir_path, |
|
|
int | dirfd_parent, |
|
|
mode_t | dir_mode ) |
|
extern |
Combination of mkdirat() and openat()
- Parameters
-
| [in] | dir_path | Path to directory to create and open |
| [in] | dirfd_parent | File descriptor of directory for relative paths |
| [in] | dir_mode | Modes for newly created directory (e.g. 750) |
- Return values
-
| dirfd | File descriptor to newly created directory |
| NULL | On error |
Definition at line 179 of file fileutils.c.
◆ stat_diff()