2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2009, 2010 Daniel Borkmann.
5 * Subject to the GPL, version 2.
11 extern int open_or_die(const char *file
, int flags
);
12 extern int open_or_die_m(const char *file
, int flags
, mode_t mode
);
13 extern void create_or_die(const char *file
, mode_t mode
);
14 extern int tun_open_or_die(char *name
, int type
);
15 extern void pipe_or_die(int pipefd
[2], int flags
);
16 extern ssize_t
read_or_die(int fd
, void *buf
, size_t count
);
17 extern ssize_t
write_or_die(int fd
, const void *buf
, size_t count
);
18 extern ssize_t
read_exact(int fd
, void *buf
, size_t len
, int mayexit
);
19 extern ssize_t
write_exact(int fd
, void *buf
, size_t len
, int mayexit
);