diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-04-30 12:29:33 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-05-02 12:40:06 +0200 |
commit | c1efe73569d429b49a9e6e1c9c72b947d414270c (patch) | |
tree | 953a2d4943a36b62023391d5ae5073dfd6087029 /include | |
parent | a85c6025903a2b6e97e1938b201b3361a0cbed66 (diff) |
Add utility functions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r-- | include/util.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h new file mode 100644 index 0000000..16f3162 --- /dev/null +++ b/include/util.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +#ifndef UTIL_H +#define UTIL_H + +#include <sys/types.h> + +int canonicalize_name(char *filename); + +ssize_t write_retry(int fd, void *data, size_t size); + +ssize_t read_retry(int fd, void *buffer, size_t size); + +#endif /* UTIL_H */ |