/external/compiler-rt/test/tsan/ |
H A D | fd_close_norace2.cc | 6 int pipes[2]; variable 10 while (read(pipes[0], &x, 1) != 1) { 12 close(pipes[0]); 13 close(pipes[1]); 18 if (pipe(pipes)) 23 while (write(pipes[1], &t, 1) != 1) {
|
/external/python/cpython2/Lib/test/ |
H A D | test_pipes.py | 1 import pipes namespace 8 raise unittest.SkipTest('pipes module only works on posix') 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 [all...] |
/external/ltp/testcases/kernel/syscalls/tee/ |
H A 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); 99 SAFE_WRITE(cleanup, 1, pipes[1], STR, sizeof(STR) - 1); 127 if (pipes[0] && close(pipes[0]) < 0) 128 tst_resm(TWARN | TERRNO, "close pipes[ [all...] |
/external/ltp/testcases/kernel/syscalls/splice/ |
H A 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); 127 SAFE_WRITE(cleanup, 1, pipes[1], STR, sizeof(STR) - 1); 162 if (pipes[ [all...] |
H A D | splice01.c | 92 int pipes[2]; local 96 SAFE_PIPE(cleanup, pipes); 99 ret = splice(fd_in, NULL, pipes[1], NULL, TEST_BLOCK_SIZE, 0); 103 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0); 109 close(pipes[0]); 110 close(pipes[1]);
|
/external/ltp/testcases/kernel/syscalls/vmsplice/ |
H A D | vmsplice02.c | 52 static int pipes[2]; variable 63 { &pipes[1], &ivc, IOV_MAX + 1, EINVAL }, 113 SAFE_PIPE(cleanup, pipes); 144 if (pipes[0] && close(pipes[0]) < 0) 145 tst_resm(TWARN | TERRNO, "close pipes[0] failed"); 147 if (pipes[1] && close(pipes[1]) < 0) 148 tst_resm(TWARN | TERRNO, "close pipes[1] failed");
|
H A D | vmsplice01.c | 96 int pipes[2]; local 106 SAFE_PIPE(cleanup, pipes); 109 struct pollfd pfd = {.fd = pipes[1], .events = POLLOUT}; 121 written = vmsplice(pipes[1], &v, 1, 0); 133 ret = splice(pipes[0], NULL, fd_out, &offset, written, 0); 139 close(pipes[0]); 140 close(pipes[1]);
|
/external/autotest/client/cros/multimedia/ |
H A D | arc_resource.py | 9 import pipes namespace 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)) 192 # pipes.quote is deprecated in 2.7 (but still available). 194 arc.adb_cmd('push %s %s' % (pipes [all...] |
/external/python/cpython2/Lib/ |
H A D | toaiff.py | 16 import pipes namespace 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/ltp/testcases/kernel/syscalls/pipe/ |
H A D | pipe06.c | 25 * Check what happens when the system runs out of pipes. 28 * Issue enough pipe calls to run the system out of pipes. 53 int pipe_ret, pipes[2]; variable 70 TEST(pipe(pipes)); 102 pipe_ret = pipe(pipes);
|
H A D | pipe07.c | 23 * descriptors permitted (or (maxfds - 3)/2 pipes) 27 * 2. open pipes until EMFILE is returned 28 * 3. check to see that the number of pipes opened is (maxfds - 3) / 2 60 int pipes[2], max_fd = 0; local 72 ret = pipe(pipes); 82 max_fd = MAX(pipes[0], max_fd); 83 max_fd = MAX(pipes[1], max_fd); 87 tst_resm(TPASS, "Opened %d pipes", npipes); 89 tst_resm(TFAIL, "Unable to open maxfds/2 pipes");
|
H A D | pipe05.c | 54 intptr_t pipes; variable 85 TEST(pipe((int *)pipes));
|
/external/python/cpython2/Lib/plat-irix5/ |
H A D | torgb.py | 14 import pipes namespace 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-irix6/ |
H A D | torgb.py | 14 import pipes namespace 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/toybox/toys/other/ |
H A D | oneit.c | 65 int i, pid, pipes[] = {SIGUSR1, SIGUSR2, SIGTERM, SIGINT}; local 68 for (i = 0; i<ARRAY_LEN(pipes); i++) xsignal(pipes[i], oneit_signaled); 75 xpipe(pipes);
|
/external/autotest/client/common_lib/cros/ |
H A D | adb_keepalive.py | 9 import pipes namespace 30 output = utils.system_output('adb connect %s' % pipes.quote(target),
|
H A D | arc.py | 8 import pipes namespace 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 [all...] |
/external/autotest/client/site_tests/security_ptraceRestrictions/src/ |
H A D | thread-prctl.c | 47 int pipes[2]; variable 78 close(pipes[1]); 82 saw = read(pipes[0], buf, 3); 124 close(pipes[0]); 157 write(pipes[1], "ok\n", 3); 220 if (pipe(pipes)<0) { 249 /* Leave the pipes for the tracee and tracer. */ 250 close(pipes[0]); 251 close(pipes[1]);
|
/external/strace/tests/ |
H A D | attach-f-p.c | 54 static pipefd pipes[N]; variable 62 if (read(pipes[no][0], &i, sizeof(i)) != (int) sizeof(i)) 79 if (pipe(pipes[i])) 102 if (write(pipes[i][1], &i, sizeof(i)) != (int) sizeof(i))
|
/external/strace/tests-m32/ |
H A D | attach-f-p.c | 54 static pipefd pipes[N]; variable 62 if (read(pipes[no][0], &i, sizeof(i)) != (int) sizeof(i)) 79 if (pipe(pipes[i])) 102 if (write(pipes[i][1], &i, sizeof(i)) != (int) sizeof(i))
|
/external/strace/tests-mx32/ |
H A D | attach-f-p.c | 54 static pipefd pipes[N]; variable 62 if (read(pipes[no][0], &i, sizeof(i)) != (int) sizeof(i)) 79 if (pipe(pipes[i])) 102 if (write(pipes[i][1], &i, sizeof(i)) != (int) sizeof(i))
|
/external/compiler-rt/lib/asan/scripts/ |
H A 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/autotest/server/cros/ |
H A D | remote_command.py | 7 import pipes namespace 59 self._command_name = pipes.quote(pkill_argument)
|
/external/selinux/mcstrans/share/examples/pipes/ |
H A D | setrans.conf | 20 Include=/etc/selinux/mls/setrans.d/pipes.conf
|
/external/toybox/lib/ |
H A D | xwrap.c | 200 // pipes[2]: stdin, stdout of new process, only allocated if zero on way in, 203 pid_t xpopen_both(char **argv, int *pipes) argument 207 // Make the pipes? Note this won't set either pipe to 0 because if fds are 209 if (pipes) { 211 if (pipes[pid] != 0) continue; 213 pipes[pid] = cestnepasun[pid+1]; 220 if (pipes) { 223 if (pipes[1] != -1) close(cestnepasun[2]); 224 if (pipes[0] != -1) { 231 if (pipes[ 280 xpclose_both(pid_t pid, int *pipes) argument 293 int pipes[2], pid; local [all...] |