#include #include #include #include #include #include #include #include #define MAXMESGDATA (PIPE_BUF - 2*sizeof(long)) #define MESGHDRSIZE (sizeof(struct mymesg) -MAXMESGDATA) struct mymesg { long mesg_len; long mesg_type; char mesg_data[MAXMESGDATA]; }; ssize_t mesg_send(int, struct mymesg *); ssize_t mesg_recv(int, struct mymesg *);