3 /* should be, but isn't on all systems, defined in <netinet/in.h> */
5 #define INADDR_NONE 0xffffffff
12 int send_fd(int*, int);
13 int fd_establish_communication(ErlDrvPort
, char*);
14 int fd_accept_path(ErlDrvPort
, int, char*);
15 int fd_listen_path(ErlDrvPort
, char*);
18 #define get_int32(s) ((((unsigned char*) (s))[0] << 24) | \
19 (((unsigned char*) (s))[1] << 16) | \
20 (((unsigned char*) (s))[2] << 8) | \
21 (((unsigned char*) (s))[3]))
23 #define put_int32(i, s) {((char*)(s))[0] = (char)((i) >> 24) & 0xff; \
24 ((char*)(s))[1] = (char)((i) >> 16) & 0xff; \
25 ((char*)(s))[2] = (char)((i) >> 8) & 0xff; \
26 ((char*)(s))[3] = (char)((i) & 0xff);}
28 void reply_ok(ErlDrvPort
);
29 void reply_err(ErlDrvPort
);
30 void reply_err_string(ErlDrvPort
, char*);
31 void reply_err_errno(ErlDrvPort
);
32 void reply_int(ErlDrvPort
, int);