|
DTS Application Library
0.2.3
Application library containing referenced objects and interfaces to common libraries
|
Convinece wrappers arround stat. More...
Files | |
| file | fileutil.c |
| File utilities to test files (fstat) | |
Functions | |
| int | is_file (const char *path) |
| Determine if a file exists. More... | |
| int | is_dir (const char *path) |
| Determine if a path is a directory. More... | |
| int | is_exec (const char *path) |
| Determine if a file is executable. More... | |
| int | mk_dir (const char *dir, mode_t mode, uid_t user, gid_t group) |
| Create a directory. More... | |
Convinece wrappers arround stat.
| int is_dir | ( | const char * | path | ) |
Determine if a path is a directory.
| path | Path of directory to check. |
Definition at line 55 of file fileutil.c.
| int is_exec | ( | const char * | path | ) |
Determine if a file is executable.
| path | Path of file to check. |
Definition at line 67 of file fileutil.c.
| int is_file | ( | const char * | path | ) |
Determine if a file exists.
| path | Filename. |
Definition at line 43 of file fileutil.c.
| int mk_dir | ( | const char * | dir, |
| mode_t | mode, | ||
| uid_t | user, | ||
| gid_t | group | ||
| ) |
Create a directory.
On *NIX systems a mode, uid and gid can be used to set initial permisions.
| dir | Directory to create. |
| mode | Initial mode to set. |
| user | Initial UID. |
| group | Initial GID. |
Definition at line 87 of file fileutil.c.