|
ECP-VELOC Components
User documentation for all components
|
Go to the source code of this file.
Functions | |
| mode_t | kvtree_getmode (int read, int write, int execute) |
| int | kvtree_open (const char *file, int flags,...) |
| int | kvtree_close (const char *file, int fd) |
| int | kvtree_file_lock_write (const char *file, int fd) |
| int | kvtree_file_unlock (const char *file, int fd) |
| int | kvtree_open_with_lock (const char *file, int flags, mode_t mode, int write) |
| int | kvtree_close_with_unlock (const char *file, int fd) |
| int | kvtree_lseek (const char *file, int fd, off_t pos, int whence) |
| ssize_t | kvtree_read_attempt (const char *file, int fd, void *buf, size_t size) |
| ssize_t | kvtree_write_attempt (const char *file, int fd, const void *buf, size_t size) |
| int | kvtree_file_is_readable (const char *file) |
| int kvtree_close | ( | const char * | file, |
| int | fd | ||
| ) |
close file with an fsync
| int kvtree_close_with_unlock | ( | const char * | file, |
| int | fd | ||
| ) |
unlocks the specified file descriptor and then closes the file
| int kvtree_file_is_readable | ( | const char * | file | ) |
tests whether the file or directory is readable
| int kvtree_file_lock_write | ( | const char * | file, |
| int | fd | ||
| ) |
get and release file locks
| int kvtree_file_unlock | ( | const char * | file, |
| int | fd | ||
| ) |
| mode_t kvtree_getmode | ( | int | read, |
| int | write, | ||
| int | execute | ||
| ) |
returns user's current mode as determine by their umask
| int kvtree_lseek | ( | const char * | file, |
| int | fd, | ||
| off_t | pos, | ||
| int | whence | ||
| ) |
seek file descriptor to specified position
| int kvtree_open | ( | const char * | file, |
| int | flags, | ||
| ... | |||
| ) |
open file with specified flags and mode, retry open a few times on failure
| int kvtree_open_with_lock | ( | const char * | file, |
| int | flags, | ||
| mode_t | mode, | ||
| int | write | ||
| ) |
opens specified file and waits for a shared lock if write=0 or an exclusive lock if write=1 before returning the file descriptor
| ssize_t kvtree_read_attempt | ( | const char * | file, |
| int | fd, | ||
| void * | buf, | ||
| size_t | size | ||
| ) |
make a good attempt to read from file (retries, if necessary, return error if fail)
| ssize_t kvtree_write_attempt | ( | const char * | file, |
| int | fd, | ||
| const void * | buf, | ||
| size_t | size | ||
| ) |
make a good attempt to write to file (retries, if necessary, return error if fail)
1.8.17