6 extern int open_or_die(const char *file
, int flags
);
7 extern int open_or_die_m(const char *file
, int flags
, mode_t mode
);
8 extern int dup_or_die(int oldfd
);
9 extern void dup2_or_die(int oldfd
, int newfd
);
10 extern void create_or_die(const char *file
, mode_t mode
);
11 extern int tun_open_or_die(char *name
, int type
);
12 extern void pipe_or_die(int pipefd
[2], int flags
);
13 extern ssize_t
read_or_die(int fd
, void *buf
, size_t count
);
14 extern ssize_t
write_or_die(int fd
, const void *buf
, size_t count
);
15 extern int read_blob_or_die(const char *file
, void *blob
, size_t count
);
16 extern int write_blob_or_die(const char *file
, const void *blob
, size_t count
);