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