| /src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| detach.c | 47 static int pipefds[2] = {-1, -1}; variable 57 pipefds[0] = -1; 58 pipefds[1] = -1; 61 if (_pipe(pipefds, 4, O_BINARY) == -1) 64 if (pipe(pipefds) == -1) 83 write_side = _dup(pipefds[1]); /* The new fd will be inherited */ 113 (void) close(pipefds[0]); 114 pipefds[0] = -1; 129 (void) close(pipefds[1]); 130 pipefds[1] = -1 [all...] |
| /src/external/mit/libuv/dist/test/ |
| test-iouring-pollhup.c | 59 /* If nread == 0 is because of POLLHUP received still from pipefds[0] file 88 int pipefds[2]; local 94 ASSERT_OK(pipe(pipefds)); 97 ASSERT_OK(uv_pipe_open(&p1, pipefds[0])); 98 duped_fd = dup(pipefds[0]); 102 ASSERT_OK(close(pipefds[1])); /* Close write end, generate POLLHUP. */ 103 pipefds[1] = -1;
|
| test-signal-pending-on-close.c | 61 int pipefds[2]; local 71 ASSERT_OK(pipe(pipefds)); 75 ASSERT_OK(uv_pipe_open(&pipe_hdl, pipefds[1])); 87 close(pipefds[0]);
|
| /src/crypto/external/bsd/openssl.old/dist/engines/ |
| e_dasync.c | 420 OSSL_ASYNC_FD pipefds[2] = {0, 0}; local 434 if (ASYNC_WAIT_CTX_get_fd(waitctx, engine_dasync_id, &pipefds[0], 436 pipefds[1] = *writefd; 442 if (CreatePipe(&pipefds[0], &pipefds[1], NULL, 256) == 0) { 447 if (pipe(pipefds) != 0) { 452 *writefd = pipefds[1]; 454 if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, engine_dasync_id, pipefds[0], 456 wait_cleanup(waitctx, engine_dasync_id, pipefds[0], writefd); 466 WriteFile(pipefds[1], &buf, 1, &numwritten, NULL) [all...] |
| /src/crypto/external/apache2/openssl/dist/engines/ |
| e_dasync.c | 522 OSSL_ASYNC_FD pipefds[2] = { 0, 0 }; local 547 if (ASYNC_WAIT_CTX_get_fd(waitctx, engine_dasync_id, &pipefds[0], 549 pipefds[1] = *writefd; 555 if (CreatePipe(&pipefds[0], &pipefds[1], NULL, 256) == 0) { 560 if (pipe(pipefds) != 0) { 565 *writefd = pipefds[1]; 567 if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, engine_dasync_id, pipefds[0], 569 wait_cleanup(waitctx, engine_dasync_id, pipefds[0], writefd); 579 WriteFile(pipefds[1], &buf, 1, &numwritten, NULL) [all...] |
| /src/crypto/external/bsd/openssl/dist/engines/ |
| e_dasync.c | 524 OSSL_ASYNC_FD pipefds[2] = {0, 0}; local 550 if (ASYNC_WAIT_CTX_get_fd(waitctx, engine_dasync_id, &pipefds[0], 552 pipefds[1] = *writefd; 558 if (CreatePipe(&pipefds[0], &pipefds[1], NULL, 256) == 0) { 563 if (pipe(pipefds) != 0) { 568 *writefd = pipefds[1]; 570 if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, engine_dasync_id, pipefds[0], 572 wait_cleanup(waitctx, engine_dasync_id, pipefds[0], writefd); 582 WriteFile(pipefds[1], &buf, 1, &numwritten, NULL) [all...] |
| /src/usr.bin/make/ |
| main.c | 1757 int pipefds[2]; local 1771 if (pipe(pipefds) == -1) { 1782 (void)close(pipefds[0]); 1783 (void)dup2(pipefds[1], STDOUT_FILENO); 1784 (void)close(pipefds[1]); 1794 (void)close(pipefds[1]); /* No need for the writing half */ 1801 bytes_read = read(pipefds[0], result, sizeof result); 1808 (void)close(pipefds[0]); /* Close the input side of the pipe. */
|
| /src/external/mit/libuv/dist/src/unix/ |
| process.c | 239 int pipefds[2]) { 243 if (!(container->flags & UV_CREATE_PIPE) || pipefds[0] < 0) 246 err = uv__close(pipefds[1]); 250 pipefds[1] = -1; 251 uv__nonblock(pipefds[0], 1); 259 return uv__stream_open(container->data.stream, pipefds[0], flags);
|