aboutsummaryrefslogtreecommitdiffstats
path: root/macros.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-10-06 14:54:42 +0200
committerMattias Andrée <maandree@kth.se>2019-10-06 14:54:42 +0200
commitf5b396dd73ea28506286e0be09d5e76e802222a2 (patch)
treecfc285a83639e78858d954cf82815cefe10a55ce /macros.h
parentClean up (diff)
downloadlibred-f5b396dd73ea28506286e0be09d5e76e802222a2.tar.gz
libred-f5b396dd73ea28506286e0be09d5e76e802222a2.tar.bz2
libred-f5b396dd73ea28506286e0be09d5e76e802222a2.tar.xz
Simplify
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--macros.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/macros.h b/macros.h
deleted file mode 100644
index e760bd0..0000000
--- a/macros.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include <unistd.h>
-
-
-#define t(...) do { if (__VA_ARGS__) goto fail; } while (0)
-#define xpread(fd, buf, len, off) t (pread(fd, buf, len, off) < (ssize_t)(len))
-#define xwrite(fd, buf, len) t (write(fd, buf, len) < (ssize_t)(len))