Searched refs:recv_peek_pipe (Results 1 - 1 of 1) sorted by relevance

/ast/src/lib/libast/sfio/
H A Dsfpkrd.c227 static int recv_peek_pipe; local
228 if (recv_peek_pipe == 0) /* this will be done just once */
235 recv_peek_pipe = 1;
236 if(recv_peek_pipe == 1 && pipe(fds) < 0)
237 recv_peek_pipe = -1;
238 if(recv_peek_pipe == 1 && write(fds[1], tst, 2) != 2)
239 recv_peek_pipe = -1;
243 if(recv_peek_pipe == 1 && (r = recv(fds[0], tst, 1, MSG_PEEK)) != 1)
244 recv_peek_pipe = -1;
245 if(recv_peek_pipe
[all...]

Completed in 19 milliseconds