build: use VERSION_SHORT instead of VERSION_STRING
[netsniff-ng.git] / ioops.h
blob8e124489e72e81b67b0dbe054f6ed7e2a1b2b533
1 #ifndef IOOPS_H
2 #define IOOPS_H
4 #include <sys/types.h>
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);
18 #endif /* IOOPS_H */