/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/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/splice/ |
D | splice03.c | 58 static int pipes[2]; variable 68 { &badfd, NULL, &pipes[1], NULL, EBADF }, 69 { &pipes[0], NULL, &badfd, NULL, EBADF }, 70 { &wrfd, NULL, &pipes[1], NULL, EBADF }, 71 { &pipes[0], NULL, &appendfd, NULL, EINVAL }, 73 { &pipes[0], &offset, &wrfd, NULL, ESPIPE }, 74 { &rdfd, NULL, &pipes[1], &offset, ESPIPE }, 125 SAFE_PIPE(cleanup, pipes); in setup() 127 SAFE_WRITE(cleanup, 1, pipes[1], STR, sizeof(STR) - 1); in setup() 162 if (pipes[0] && close(pipes[0]) < 0) in cleanup() [all …]
|
D | splice01.c | 92 int pipes[2]; in splice_test() local 96 SAFE_PIPE(cleanup, pipes); in splice_test() 99 ret = splice(fd_in, NULL, pipes[1], NULL, TEST_BLOCK_SIZE, 0); in splice_test() 103 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); in splice_test() 109 close(pipes[0]); in splice_test() 110 close(pipes[1]); in splice_test()
|
/external/ltp/testcases/kernel/syscalls/tee/ |
D | tee02.c | 45 static int pipes[2]; variable 52 { &fd, &pipes[1], EINVAL }, 53 { &pipes[0], &fd, EINVAL }, 54 { &pipes[0], &pipes[1], EINVAL }, 98 SAFE_PIPE(cleanup, pipes); in setup() 99 SAFE_WRITE(cleanup, 1, pipes[1], STR, sizeof(STR) - 1); in setup() 127 if (pipes[0] && close(pipes[0]) < 0) in cleanup() 130 if (pipes[1] && close(pipes[1]) < 0) in cleanup()
|
/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/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/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/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice02.c | 52 static int pipes[2]; variable 63 { &pipes[1], &ivc, IOV_MAX + 1, EINVAL }, 113 SAFE_PIPE(cleanup, pipes); in setup() 144 if (pipes[0] && close(pipes[0]) < 0) in cleanup() 147 if (pipes[1] && close(pipes[1]) < 0) in cleanup()
|
D | vmsplice01.c | 96 int pipes[2]; in vmsplice_test() local 106 SAFE_PIPE(cleanup, pipes); in vmsplice_test() 109 struct pollfd pfd = {.fd = pipes[1], .events = POLLOUT}; in vmsplice_test() 121 written = vmsplice(pipes[1], &v, 1, 0); in vmsplice_test() 133 ret = splice(pipes[0], NULL, fd_out, &offset, written, 0); in vmsplice_test() 139 close(pipes[0]); in vmsplice_test() 140 close(pipes[1]); in vmsplice_test()
|
/external/autotest/client/common_lib/cros/ |
D | arc.py | 8 import pipes 49 utils.system('adb keygen ' + pipes.quote(key_path)) 113 _android_shell('restorecon ' + pipes.quote(_ANDROID_ADB_KEYS_PATH)) 136 pipes.quote(package), pipes.quote(permission))) 153 output = adb_cmd('shell %s' % pipes.quote(cmd), **kwargs) 262 output = adb_shell('ps | grep %s' % pipes.quote(' %s$' % process_name)) 272 pipes.quote(filename))).find("FileExists") >= 0 281 adb_cmd('pull %s %s' % (pipes.quote(filename), 282 pipes.quote(tmpfile.name))) 299 adb_cmd('push %s %s' % (pipes.quote(tmpfile.name), [all …]
|
/external/toybox/lib/ |
D | xwrap.c | 203 pid_t xpopen_both(char **argv, int *pipes) in xpopen_both() argument 209 if (pipes) { in xpopen_both() 211 if (pipes[pid] != 0) continue; in xpopen_both() 213 pipes[pid] = cestnepasun[pid+1]; in xpopen_both() 220 if (pipes) { in xpopen_both() 223 if (pipes[1] != -1) close(cestnepasun[2]); in xpopen_both() 224 if (pipes[0] != -1) { in xpopen_both() 231 if (pipes[1] != -1) { in xpopen_both() 262 if (pipes) { in xpopen_both() 263 if (pipes[0] != -1) close(cestnepasun[0]); in xpopen_both() [all …]
|
/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/toybox/toys/other/ |
D | oneit.c | 65 int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; in oneit_main() local 68 for (i = 0; i<ARRAY_LEN(pipes); i++) xsignal(pipes[i], oneit_signaled); in oneit_main() 75 xpipe(pipes); in oneit_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-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/ |
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/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe07.c | 60 int pipes[2], max_fd = 0; in main() local 72 ret = pipe(pipes); in main() 82 max_fd = MAX(pipes[0], max_fd); in main() 83 max_fd = MAX(pipes[1], max_fd); in main()
|
D | pipe06.c | 53 int pipe_ret, pipes[2]; variable 70 TEST(pipe(pipes)); in main() 102 pipe_ret = pipe(pipes); in setup()
|
/external/libbrillo/brillo/message_loops/ |
D | message_loop_unittest.cc | 278 ScopedPipe pipes[kNumTasks]; in TYPED_TEST() local 283 FROM_HERE, pipes[i].writer, MessageLoop::kWatchWrite, in TYPED_TEST() 324 ScopedPipe pipes[kNumTasks]; in TYPED_TEST() local 328 auto fd_callback = [this, &pipes, &reads, &total_calls](int i) { in TYPED_TEST() 332 EXPECT_EQ(1, HANDLE_EINTR(read(pipes[i].reader, &c, 1))); in TYPED_TEST() 339 FROM_HERE, pipes[i].reader, MessageLoop::kWatchRead, in TYPED_TEST() 347 HANDLE_EINTR(write(pipes[i].writer, blob.data(), blob.size()))); in TYPED_TEST() 357 << pipes[i].reader; in TYPED_TEST()
|
/external/compiler-rt/lib/asan/scripts/ |
D | symbolize.py | 17 pipes = {} variable 65 if not pipes.has_key(binary): 66 pipes[binary] = subprocess.Popen(["addr2line", "-i", "-f", "-e", binary], 68 p = pipes[binary]
|
/external/toolchain-utils/automation/common/ |
D | command_executer.py | 115 pipes = [child.stdout, child.stderr] 118 for pipe in pipes: 125 while pipes: 139 ready_pipes, _, _ = select.select(pipes, [], [], 0.1) 149 pipes.remove(pipe)
|
/external/autotest/server/ |
D | crashcollect.py | 4 import pipes 46 self.host.run('rm -rf %s' % (pipes.quote(self.tmpdir),)) 88 host.run('rm -rf %s' % (pipes.quote(log_path),)) 104 host.run('cp -rp %s %s' % (pipes.quote(log_path), pipes.quote(tmpdir))) 116 cmd = 'ls -ld %s | cut -d" " -f5' % (pipes.quote(path),)
|