16#include "../dlib/dlib.h"
22#define MSG(...) printf("[dpid]: " __VA_ARGS__)
23#define MSG_ERR(...) fprintf(stderr, "[dpid]: " __VA_ARGS__)
25#define dotDILLO_DPI ".dillo/dpi"
26#define dotDILLO_DPIDRC ".dillo/dpidrc"
27#define dotDILLO_DPID_COMM_KEYS ".dillo/dpid_comm_keys"
29#define ERRMSG(CALLER, CALLED, ERR)\
30 errmsg(CALLER, CALLED, ERR, __FILE__, __LINE__)
31#define _ERRMSG(CALLER, CALLED, ERR)
37#define CKD_WRITE(fd, msg) ckd_write(fd, msg, __FILE__, __LINE__)
38#define CKD_CLOSE(fd) ckd_close(fd, __FILE__, __LINE__)
49void errmsg(
char *caller,
char *called,
int errornum,
char *file,
int line);
51ssize_t
ckd_write(
int fd,
char *msg,
char *file,
int line);
52ssize_t
ckd_close(
int fd,
char *file,
int line);
ssize_t ckd_close(int fd, char *file, int line)
ssize_t ckd_write(int fd, char *msg, char *file, int line)
void errmsg(char *caller, char *called, int errornum, char *file, int line)