Home | History | Annotate | Download | only in base

Lines Matching defs:handles

30   Handle handles[2] = { kInvalidHandle, kInvalidHandle };
45 if (socketpair(AF_UNIX, SOCK_STREAM, 0, handles) != 0) {
51 if (0 != setsockopt(handles[0], SOL_SOCKET, SO_NOSIGPIPE,
53 0 != setsockopt(handles[1], SOL_SOCKET, SO_NOSIGPIPE,
58 // Copy the handles out for successful return.
59 tmp_sockets[0]->handle_ = handles[0];
61 tmp_sockets[1]->handle_ = handles[1];
66 if (handles[0] != kInvalidHandle) {
67 if (HANDLE_EINTR(close(handles[0])) < 0)
70 if (handles[1] != kInvalidHandle) {
71 if (HANDLE_EINTR(close(handles[1])) < 0)