Searched refs:pipes (Results 1 - 25 of 66) sorted by relevance

123

/external/compiler-rt/test/tsan/
H A Dfd_close_norace2.cc6 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 Dtest_pipes.py1 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 Dtee02.c45 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 Dsplice03.c58 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 Dsplice01.c92 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 Dvmsplice02.c52 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 Dvmsplice01.c96 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 Darc_resource.py9 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 Dtoaiff.py16 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 Dpipe06.c25 * 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 Dpipe07.c23 * 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 Dpipe05.c54 intptr_t pipes; variable
85 TEST(pipe((int *)pipes));
/external/python/cpython2/Lib/plat-irix5/
H A Dtorgb.py14 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 Dtorgb.py14 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 Doneit.c65 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 Dadb_keepalive.py9 import pipes namespace
30 output = utils.system_output('adb connect %s' % pipes.quote(target),
H A Darc.py8 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 Dthread-prctl.c47 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 Dattach-f-p.c54 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 Dattach-f-p.c54 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 Dattach-f-p.c54 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 Dsymbolize.py17 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 Dremote_command.py7 import pipes namespace
59 self._command_name = pipes.quote(pkill_argument)
/external/selinux/mcstrans/share/examples/pipes/
H A Dsetrans.conf20 Include=/etc/selinux/mls/setrans.d/pipes.conf
/external/toybox/lib/
H A Dxwrap.c200 // 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...]

Completed in 873 milliseconds

123