1 /* macros for conversion between host and (internet) network byte order */
3 # include <netinet/in.h> /* Consts and structs defined by the internet system */
4 # define BINARY_FILE_OPTS
7 # define BINARY_FILE_OPTS "b"
11 # include <sys/wait.h>
14 # define WIFSIGNALED(S) (((S) & 0xff) != 0 && ((S) & 0xff) != 0x7f)
17 # define WTERMSIG(S) ((S) & 0x7f)
20 # define WIFEXITED(S) (((S) & 0xff) == 0)
23 # define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
26 # define WCOREDUMP(S) ((S) & WCOREFLG)
29 # define WCOREFLG 0200
31 #ifndef HAVE_STRSIGNAL
32 # define strsignal(sig) "SIG???"
35 extern const char *elf2flt_progname;
37 void fatal(const char *, ...);
38 void fatal_perror(const char *, ...);