|
qLibc
|
Counter file handling APIs. More...
Go to the source code of this file.
Functions | |
| int64_t | qcount_read (const char *filepath) |
| Read an integer counter from a file with advisory file locking. | |
| bool | qcount_save (const char *filepath, int64_t number) |
| Save an integer counter to a file with advisory file locking. | |
| int64_t | qcount_update (const char *filepath, int64_t number) |
| Increase or decrease the counter by the given value with advisory file locking. | |
Counter file handling APIs.
Definition in file qcount.c.
| int64_t qcount_read | ( | const char * | filepath | ) |
Read an integer counter from a file with advisory file locking.
| filepath | file path |
| bool qcount_save | ( | const char * | filepath, |
| int64_t | number ) |
Save an integer counter to a file with advisory file locking.
| filepath | file path |
| number | counter value |
| int64_t qcount_update | ( | const char * | filepath, |
| int64_t | number ) |
Increase or decrease the counter by the given value with advisory file locking.
| filepath | file path |
| number | amount to increase or decrease |