/external/python/cpython2/Lib/test/ |
D | test_pipes.py | 1 import pipes 21 t = pipes.Template() 22 t.append(s_command, pipes.STDIN_STDOUT) 32 t = pipes.Template() 33 t.append(s_command + ' < $IN > $OUT', pipes.FILEIN_FILEOUT) 41 t = pipes.Template() 42 t.append(s_command + ' < $IN', pipes.FILEIN_STDOUT) 53 t=pipes.Template() 63 t=pipes.Template() 70 t = pipes.Template() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_pipes.py | 1 import pipes 24 t = pipes.Template() 25 t.append(s_command, pipes.STDIN_STDOUT) 37 t = pipes.Template() 38 t.append(s_command + ' < $IN > $OUT', pipes.FILEIN_FILEOUT) 48 t = pipes.Template() 49 t.append(s_command + ' < $IN', pipes.FILEIN_STDOUT) 63 t=pipes.Template() 73 t=pipes.Template() 83 t = pipes.Template() [all …]
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice03.c | 57 static int pipes[2]; variable 67 { &badfd, NULL, &pipes[1], NULL, EBADF }, 68 { &pipes[0], NULL, &badfd, NULL, EBADF }, 69 { &wrfd, NULL, &pipes[1], NULL, EBADF }, 70 { &pipes[0], NULL, &appendfd, NULL, EINVAL }, 72 { &pipes[0], &offset, &wrfd, NULL, ESPIPE }, 73 { &rdfd, NULL, &pipes[1], &offset, ESPIPE }, 85 SAFE_PIPE(pipes); in setup() 87 SAFE_WRITE(1, pipes[1], STR, sizeof(STR) - 1); in setup() 124 if (pipes[0] > 0) in cleanup() [all …]
|
D | splice01.c | 68 int pipes[2]; in splice_test() local 73 SAFE_PIPE(pipes); in splice_test() 75 ret = splice(fd_in, NULL, pipes[1], NULL, TEST_BLOCK_SIZE, 0); in splice_test() 79 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in splice_test() 85 SAFE_CLOSE(pipes[0]); in splice_test() 86 SAFE_CLOSE(pipes[1]); in splice_test()
|
/external/autotest/client/cros/multimedia/ |
D | arc_resource.py | 9 import pipes 127 pipes.quote(self._MICROPHONE_PACKAGE), 128 pipes.quote(permission))) 133 arc.adb_shell('am start -W %s' % pipes.quote(self._MICROPHONE_ACTIVITY)) 143 'am force-stop %s' % pipes.quote(self._MICROPHONE_PACKAGE)) 154 arc.adb_cmd('pull %s %s' % (pipes.quote(self._MICROPHONE_RECORD_PATH), 155 pipes.quote(dest_path))) 160 arc.adb_shell('rm %s' % pipes.quote(self._MICROPHONE_RECORD_PATH)) 194 arc.adb_cmd('push %s %s' % (pipes.quote(file_path), 195 pipes.quote(dest_path))) [all …]
|
/external/ltp/testcases/kernel/syscalls/tee/ |
D | tee02.c | 44 static int pipes[2]; variable 51 { &fd, &pipes[1], EINVAL }, 52 { &pipes[0], &fd, EINVAL }, 53 { &pipes[0], &pipes[1], EINVAL }, 59 SAFE_PIPE(pipes); in setup() 60 SAFE_WRITE(1, pipes[1], STR, sizeof(STR) - 1); in setup() 91 if (pipes[0] > 0) in cleanup() 92 SAFE_CLOSE(pipes[0]); in cleanup() 94 if (pipes[1] > 0) in cleanup() 95 SAFE_CLOSE(pipes[1]); in cleanup()
|
/external/python/cpython2/Lib/ |
D | toaiff.py | 16 import pipes 23 t = pipes.Template() 33 t = pipes.Template() 37 t = pipes.Template() 41 t = pipes.Template() 45 t = pipes.Template() 49 t = pipes.Template() 53 t = pipes.Template() 57 uncompress = pipes.Template()
|
/external/compiler-rt/test/tsan/ |
D | fd_close_norace2.cc | 6 int pipes[2]; variable 10 while (read(pipes[0], &x, 1) != 1) { in Thread() 12 close(pipes[0]); in Thread() 13 close(pipes[1]); in Thread() 18 if (pipe(pipes)) in main() 23 while (write(pipes[1], &t, 1) != 1) { in main()
|
/external/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice02.c | 50 static int pipes[2]; variable 61 { &pipes[1], &ivc, IOV_MAX + 1, EINVAL }, 73 SAFE_PIPE(pipes); in setup() 107 if (pipes[0] > 0) in cleanup() 108 SAFE_CLOSE(pipes[0]); in cleanup() 110 if (pipes[1] > 0) in cleanup() 111 SAFE_CLOSE(pipes[1]); in cleanup()
|
D | vmsplice01.c | 71 int pipes[2]; in vmsplice_test() local 82 SAFE_PIPE(pipes); in vmsplice_test() 84 struct pollfd pfd = {.fd = pipes[1], .events = POLLOUT}; in vmsplice_test() 96 written = vmsplice(pipes[1], &v, 1, 0); in vmsplice_test() 108 ret = splice(pipes[0], NULL, fd_out, &offset, written, 0); in vmsplice_test() 114 SAFE_CLOSE(pipes[0]); in vmsplice_test() 115 SAFE_CLOSE(pipes[1]); in vmsplice_test()
|
/external/python/cpython2/Lib/plat-irix6/ |
D | torgb.py | 14 import pipes 19 t = pipes.Template() 23 t = pipes.Template() 30 t = pipes.Template() 34 t = pipes.Template() 40 t = pipes.Template() 46 t = pipes.Template() 52 uncompress = pipes.Template()
|
/external/python/cpython2/Lib/plat-irix5/ |
D | torgb.py | 14 import pipes 19 t = pipes.Template() 23 t = pipes.Template() 30 t = pipes.Template() 34 t = pipes.Template() 40 t = pipes.Template() 46 t = pipes.Template() 52 uncompress = pipes.Template()
|
/external/libevent/test/ |
D | bench_cascade.c | 63 static evutil_socket_t *pipes; variable 88 pipes = (evutil_socket_t *)calloc(num_pipes * 2, sizeof(evutil_socket_t)); in run_once() 90 if (events == NULL || pipes == NULL) { in run_once() 95 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { in run_once() 109 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { in run_once() 119 if (send(pipes[1], "e", 1, 0) < 0) in run_once() 127 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { in run_once() 133 free(pipes); in run_once()
|
D | bench.c | 68 static evutil_socket_t *pipes; variable 88 n = send(pipes[2 * widx + 1], "e", 1, 0); in read_cb() 103 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { in run_once() 116 (void) send(pipes[i * space + 1], "e", 1, 0); in run_once() 179 pipes = calloc(num_pipes * 2, sizeof(evutil_socket_t)); 180 if (events == NULL || pipes == NULL) { 187 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) {
|
/external/toybox/lib/ |
D | xwrap.c | 225 pid_t xpopen_both(char **argv, int *pipes) in xpopen_both() argument 231 if (pipes) for (pid = 0; pid < 2; pid++) { in xpopen_both() 232 if (pipes[pid] != -1) continue; in xpopen_both() 238 if (pipes) { in xpopen_both() 243 pipes[1] = cestnepasun[3]; in xpopen_both() 247 pipes[0] = cestnepasun[0]; in xpopen_both() 251 if (!pipes[1]) pipes[1] = dup(pipes[1]); in xpopen_both() 254 if (pipes[0]) { in xpopen_both() 255 dup2(pipes[0], 0); in xpopen_both() 256 close(pipes[0]); in xpopen_both() [all …]
|
/external/autotest/client/common_lib/cros/ |
D | arc.py | 9 import pipes 57 utils.system('adb keygen ' + pipes.quote(key_path)) 145 _android_shell('chown shell ' + pipes.quote(_ANDROID_ADB_KEYS_PATH)) 146 _android_shell('restorecon ' + pipes.quote(_ANDROID_ADB_KEYS_PATH)) 209 pipes.quote(package), pipes.quote(permission))) 227 output = adb_cmd('shell %s' % pipes.quote(cmd), **kwargs) 374 output = adb_shell('pgrep -c -f %s' % pipes.quote(process_name)) 384 pipes.quote(filename))).find("FileExists") >= 0 393 adb_cmd('pull %s %s' % (pipes.quote(filename), 394 pipes.quote(tmpfile.name))) [all …]
|
D | adb_keepalive.py | 10 import pipes 46 pipes.quote(target), pipes.quote(server_host), pipes.quote(server_port)) 93 _run_adb_cmd('connect %s' % pipes.quote(target),
|
/external/autotest/client/site_tests/security_ptraceRestrictions/src/ |
D | thread-prctl.c | 47 int pipes[2]; variable 78 close(pipes[1]); in tracer_main() 82 saw = read(pipes[0], buf, 3); in tracer_main() 124 close(pipes[0]); in tracee_main() 157 write(pipes[1], "ok\n", 3); in tracee_main() 220 if (pipe(pipes)<0) { in main() 250 close(pipes[0]); in main() 251 close(pipes[1]); in main()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_texture_desc.c | 355 unsigned i, pipes; in r300_setup_hyperz_properties() local 358 pipes = screen->info.r300_num_z_pipes; in r300_setup_hyperz_properties() 360 pipes = screen->info.r300_num_gb_pipes; in r300_setup_hyperz_properties() 378 zmask_blocks_x_per_dw[pipes-1] * zcompsize, in r300_setup_hyperz_properties() 379 zmask_blocks_y_per_dw[pipes-1] * zcompsize); in r300_setup_hyperz_properties() 383 zcomp_numdw <= screen->caps.zmask_ram * pipes) { in r300_setup_hyperz_properties() 388 util_align_npot(stride, zmask_blocks_x_per_dw[pipes-1] * zcompsize); in r300_setup_hyperz_properties() 396 stride = util_align_npot(stride, hiz_align_x[pipes-1]); in r300_setup_hyperz_properties() 397 height = align(height, hiz_align_y[pipes-1]); in r300_setup_hyperz_properties() 400 hiz_numdw = (stride * height) / (8*8 * pipes); in r300_setup_hyperz_properties() [all …]
|
/external/python/cpython3/Doc/library/ |
D | pipes.rst | 1 :mod:`pipes` --- Interface to shell pipelines 4 .. module:: pipes 10 **Source code:** :source:`Lib/pipes.py` 14 The :mod:`pipes` module defines a class to abstract the concept of a *pipeline* 20 The :mod:`pipes` module defines the following class: 29 >>> import pipes 30 >>> t = pipes.Template()
|
/external/libchrome/mojo/core/ |
D | invitation_unittest.cc | 486 MojoHandle pipes[2]; in TEST_F() local 488 "SendInvitationMultiplePipesClient", pipes, 2, TransportType::kChannel, in TEST_F() 491 WriteMessage(pipes[0], kTestMessage1); in TEST_F() 492 WriteMessage(pipes[1], kTestMessage2); in TEST_F() 494 WaitForSignals(pipes[0], MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 496 WaitForSignals(pipes[1], MOJO_HANDLE_SIGNAL_READABLE)); in TEST_F() 497 EXPECT_EQ(kTestMessage3, ReadMessage(pipes[0])); in TEST_F() 498 EXPECT_EQ(kTestMessage4, ReadMessage(pipes[1])); in TEST_F() 500 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(pipes[0])); in TEST_F() 501 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(pipes[1])); in TEST_F() [all …]
|
/external/toybox/toys/other/ |
D | oneit.c | 66 int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; in oneit_main() local 69 for (i = 0; i<ARRAY_LEN(pipes); i++) xsignal(pipes[i], oneit_signaled); in oneit_main() 76 xpipe(pipes); in oneit_main()
|
/external/strace/tests-mx32/ |
D | attach-f-p.c | 54 static pipefd pipes[N]; variable 62 if (read(pipes[no][0], &i, sizeof(i)) != (int) sizeof(i)) in thread() 79 if (pipe(pipes[i])) in main() 102 if (write(pipes[i][1], &i, sizeof(i)) != (int) sizeof(i)) in main()
|
/external/strace/tests-m32/ |
D | attach-f-p.c | 54 static pipefd pipes[N]; variable 62 if (read(pipes[no][0], &i, sizeof(i)) != (int) sizeof(i)) in thread() 79 if (pipe(pipes[i])) in main() 102 if (write(pipes[i][1], &i, sizeof(i)) != (int) sizeof(i)) in main()
|
/external/strace/tests/ |
D | attach-f-p.c | 54 static pipefd pipes[N]; variable 62 if (read(pipes[no][0], &i, sizeof(i)) != (int) sizeof(i)) in thread() 79 if (pipe(pipes[i])) in main() 102 if (write(pipes[i][1], &i, sizeof(i)) != (int) sizeof(i)) in main()
|