From a9501d10847d7993fad2e0778fe9c11317b4f7be Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 1 Dec 2022 23:20:33 +0800 Subject: Simplify logic by structure --- util.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 util.h (limited to 'util.h') diff --git a/util.h b/util.h new file mode 100644 index 0000000..6e9c8cf --- /dev/null +++ b/util.h @@ -0,0 +1,10 @@ +#ifndef __UTIL_H +#define __UTIL_H + +#define ERROR -1 +#define OK 0 + +void panic(const char *); +int setblocking(int fd, bool blocking); + +#endif -- cgit v1.2.3