Lines Matching refs:cfd
34 int cfd[2]; member
49 if (pipe(fds->cfd) == -1) { in msg_open()
62 CLOSEFD(fds->cfd[0]); in msg_close()
63 CLOSEFD(fds->cfd[1]); in msg_close()
70 CLOSEFD(fds->cfd[1]); in msg_write_child()
78 rv = read(fds->cfd[0], msg, len); in msg_write_child()
89 CLOSEFD(fds->cfd[0]); in msg_write_parent()
92 rv = write(fds->cfd[1], msg, len); in msg_write_parent()
107 CLOSEFD(fds->cfd[0]); in msg_read_parent()
114 rv = write(fds->cfd[1], msg, len); in msg_read_parent()
124 CLOSEFD(fds->cfd[1]); in msg_read_child()
128 rv = read(fds->cfd[0], msg, len); in msg_read_child()