summaryrefslogtreecommitdiff
path: root/ioops.h
diff options
context:
space:
mode:
Diffstat (limited to 'ioops.h')
-rw-r--r--ioops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ioops.h b/ioops.h
index 6de6c62..8e12448 100644
--- a/ioops.h
+++ b/ioops.h
@@ -5,6 +5,8 @@
extern int open_or_die(const char *file, int flags);
extern int open_or_die_m(const char *file, int flags, mode_t mode);
+extern int dup_or_die(int oldfd);
+extern void dup2_or_die(int oldfd, int newfd);
extern void create_or_die(const char *file, mode_t mode);
extern int tun_open_or_die(char *name, int type);
extern void pipe_or_die(int pipefd[2], int flags);