summaryrefslogtreecommitdiffstats
path: root/utils.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2020-12-03 23:32:29 +0100
committerpgen <p.gen.progs@gmail.com>2020-12-03 23:32:29 +0100
commit6125efee118774d2fa920c8dfaa4dfb39f2ffde1 (patch)
tree1520a9532f67a68282bfe875029eb0ff79d4b291 /utils.h
parent01e6b904f11d0a1f0712db707a8ddd3fc6e0b691 (diff)
Use a safer read implementation
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 8c69b8e..8d108a3 100644
--- a/utils.h
+++ b/utils.h
@@ -6,6 +6,9 @@
#ifndef UTILS_H
#define UTILS_H
+# include <errno.h>
+# include <unistd.h>
+
typedef struct interval_s interval_t;
typedef struct range_s range_t;
@@ -65,4 +68,7 @@ xwcscasecmp(const wchar_t * w1s, const wchar_t * w2s);
int
is_integer(const char * const s);
+ssize_t
+xread(int fd, void * buf, size_t n);
+
#endif