summaryrefslogtreecommitdiff
path: root/ioops.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-26 10:17:32 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-26 11:21:05 +0200
commitf3057cdf8518d4931a12beb3f4322638500efec8 (patch)
tree8cdb4da799e34313b3c56ee9b64afc0b73aa6151 /ioops.h
parent77d5cae4d45d1def8f41d4e89b705d2953858643 (diff)
ioops: Add mkostemp_or_die() wrapper for mkostemp(3)
Add a panic()ing wrapper for mkostemp(3). This will be used to safely create unique temporary files. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ioops.h')
-rw-r--r--ioops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ioops.h b/ioops.h
index ce0315f..9556930 100644
--- a/ioops.h
+++ b/ioops.h
@@ -8,6 +8,7 @@ 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 mkostemp_or_die(char *templ, int flags);
extern int tun_open_or_die(const char *name, int type);
extern void pipe_or_die(int pipefd[2], int flags);
extern ssize_t read_or_die(int fd, void *buf, size_t count);