|
clsync
|

Go to the source code of this file.
Macros | |
| #define | STAT_COMPARE(bit, field) |
Functions | |
| char * | fd2fpath_malloc (int fd) |
| int | fileutils_copy (const char *path_from, const char *path_to) |
| Copies file. | |
| short int | fileutils_calcdirlevel (const char *path) |
| Calculates directory level of a canonized path (actually it just counts "/"-s). | |
| int | mkdirat_open (const char *const dir_path, int dirfd_parent, mode_t dir_mode) |
| Combination of mkdirat() and openat(). | |
| uint32_t | stat_diff (stat64_t *a, stat64_t *b) |
| #define STAT_COMPARE | ( | bit, | |
| field ) |
| char * fd2fpath_malloc | ( | int | fd | ) |
Definition at line 26 of file fileutils.c.
| short int fileutils_calcdirlevel | ( | const char * | path | ) |
Calculates directory level of a canonized path (actually it just counts "/"-s).
| [in] | path | Canonized path (with realpath()) |
| zero | or prositive Direcory level |
| negative | Got error, while calculation. Error-code is placed to errno. |
Definition at line 138 of file fileutils.c.

| int fileutils_copy | ( | const char * | path_from, |
| const char * | path_to ) |
Copies file.
| [in] | path_from | Source file path |
| [in] | path_to | Destination file path |
| zero | Successfully copied |
| non-zero | Got error, while copying |
Definition at line 78 of file fileutils.c.

| int mkdirat_open | ( | const char *const | dir_path, |
| int | dirfd_parent, | ||
| mode_t | dir_mode ) |
Combination of mkdirat() and openat().
| [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) |
| dirfd | File descriptor to newly created directory |
| NULL | On error |
Definition at line 179 of file fileutils.c.
