#include <stddef.h>#include <sys/types.h>#include <dirent.h>

Defines | |
| #define | LOCK_FILE_EXISTS -2 |
| #define | ALREADY_LOCKED -1 |
Functions | |
| int | rmdir_with_content (char *name) |
| int | create_lock (char *path) |
| Creates a lock file. | |
| int | free_lock (int fd, char *path) |
| Frees a lock file. | |
| #define ALREADY_LOCKED -1 |
| #define LOCK_FILE_EXISTS -2 |
| int create_lock | ( | char * | path | ) |
Creates a lock file.
| path | - Path to directory where lock will be created |
| int free_lock | ( | int | fd, | |
| char * | path | |||
| ) |
Frees a lock file.
| fd | - Descriptor of lock | |
| path | - Path to directory where lock is created |
| int rmdir_with_content | ( | char * | name | ) |

1.6.3