Home
last modified time | relevance | path

Searched refs:write_pipe (Results 1 – 25 of 26) sorted by relevance

12

/external/clang/test/SemaOpenCL/
Dinvalid-pipe-builtin-cl2.0.cl7 // read/write_pipe
16 write_pipe(p, ptr); // expected-error {{invalid pipe access modifier (expecting write_only)}}
17write_pipe(p, rid, tmp, ptr); // expected-error {{invalid pipe access modifier (expecting write…
19 // reserve_read/write_pipe
25 // commit_read/write_pipe
36 // read/write_pipe
37 write_pipe(p, &tmp);
38 write_pipe(p, ptr);
39 write_pipe(tmp, p); // expected-error {{first argument to 'write_pipe' must be a pipe type}}
40 write_pipe(p); // expected-error {{invalid number of arguments to function: 'write_pipe'}}
[all …]
Dclang-builtin-version.cl22write_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'write_pipe' is invali…
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/
Dlib.c33 int sync_with_child(union pipe read_pipe, union pipe write_pipe) in sync_with_child() argument
37 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in sync_with_child()
55 int notify_parent(union pipe write_pipe) in notify_parent() argument
59 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent()
64 int notify_parent_of_error(union pipe write_pipe) in notify_parent_of_error() argument
68 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent_of_error()
97 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) in eat_cpu_child() argument
107 notify_parent(write_pipe); in eat_cpu_child()
118 union pipe read_pipe, write_pipe; in eat_cpu() local
129 if (pipe(write_pipe.fds) == -1) in eat_cpu()
[all …]
Dlib.h25 extern int sync_with_child(union pipe read_pipe, union pipe write_pipe);
27 extern int notify_parent(union pipe write_pipe);
28 extern int notify_parent_of_error(union pipe write_pipe);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/
D2-2.c42 int parent_process(char *mqname, int read_pipe, int write_pipe, int child_pid);
43 int child_process(char *mqname, int read_pipe, int write_pipe);
44 int send_receive(int read_pipe, int write_pipe, char send, char *reply);
91 int parent_process(char *mqname, int read_pipe, int write_pipe, int child_pid) in parent_process() argument
103 rval = send_receive(read_pipe, write_pipe, 'a', &reply); in parent_process()
112 rval = send_receive(read_pipe, write_pipe, 'c', &reply); in parent_process()
140 int child_process(char *mqname, int read_pipe, int write_pipe) in child_process() argument
146 rval = send_receive(read_pipe, write_pipe, 0, &reply); in child_process()
159 rval = send_receive(read_pipe, write_pipe, 'b', &reply); in child_process()
171 rval = send_receive(read_pipe, write_pipe, 'd', NULL); in child_process()
[all …]
D2-1.c47 int parent_process(char *mqname, int read_pipe, int write_pipe, int child_pid);
48 int child_process(char *mqname, int read_pipe, int write_pipe);
49 int send_receive(int read_pipe, int write_pipe, char send, char *reply);
96 int parent_process(char *mqname, int read_pipe, int write_pipe, int child_pid) in parent_process() argument
108 rval = send_receive(read_pipe, write_pipe, 'a', &reply); in parent_process()
138 int child_process(char *mqname, int read_pipe, int write_pipe) in child_process() argument
144 rval = send_receive(read_pipe, write_pipe, 0, &reply); in child_process()
157 rval = send_receive(read_pipe, write_pipe, 'b', NULL); in child_process()
162 int send_receive(int read_pipe, int write_pipe, char send, char *reply) in send_receive() argument
167 bytes = write(write_pipe, &send, 1); in send_receive()
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/
Debb_on_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) in victim_child() argument
28 FAIL_IF(notify_parent(write_pipe)); in victim_child()
33 FAIL_IF(notify_parent(write_pipe)); in victim_child()
46 union pipe read_pipe, write_pipe; in ebb_on_child() local
53 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_child()
58 exit(victim_child(write_pipe, read_pipe)); in ebb_on_child()
61 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child()
75 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child()
Debb_on_willing_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) in victim_child() argument
32 FAIL_IF(notify_parent(write_pipe)); in victim_child()
53 union pipe read_pipe, write_pipe; in ebb_on_willing_child() local
60 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_willing_child()
65 exit(victim_child(write_pipe, read_pipe)); in ebb_on_willing_child()
69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_willing_child()
Dtask_event_vs_ebb_test.c38 union pipe read_pipe, write_pipe; in task_event_vs_ebb() local
46 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_vs_ebb()
51 exit(ebb_child(write_pipe, read_pipe)); in task_event_vs_ebb()
62 if (sync_with_child(read_pipe, write_pipe)) in task_event_vs_ebb()
67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_vs_ebb()
Dcpu_event_vs_ebb_test.c39 union pipe read_pipe, write_pipe; in cpu_event_vs_ebb() local
51 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_vs_ebb()
56 exit(ebb_child(write_pipe, read_pipe)); in cpu_event_vs_ebb()
67 if (sync_with_child(read_pipe, write_pipe)) in cpu_event_vs_ebb()
72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_vs_ebb()
Debb_vs_cpu_event_test.c39 union pipe read_pipe, write_pipe; in ebb_vs_cpu_event() local
51 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_vs_cpu_event()
56 exit(ebb_child(write_pipe, read_pipe)); in ebb_vs_cpu_event()
60 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event()
70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event()
Dtask_event_pinned_vs_ebb_test.c40 union pipe read_pipe, write_pipe; in task_event_pinned_vs_ebb() local
48 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_pinned_vs_ebb()
53 exit(ebb_child(write_pipe, read_pipe)); in task_event_pinned_vs_ebb()
64 if (sync_with_child(read_pipe, write_pipe)) in task_event_pinned_vs_ebb()
69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_pinned_vs_ebb()
Dcpu_event_pinned_vs_ebb_test.c41 union pipe read_pipe, write_pipe; in cpu_event_pinned_vs_ebb() local
53 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_pinned_vs_ebb()
58 exit(ebb_child(write_pipe, read_pipe)); in cpu_event_pinned_vs_ebb()
69 if (sync_with_child(read_pipe, write_pipe)) in cpu_event_pinned_vs_ebb()
74 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_pinned_vs_ebb()
Debb.c349 int ebb_child(union pipe read_pipe, union pipe write_pipe) in ebb_child() argument
377 notify_parent_of_error(write_pipe); in ebb_child()
383 FAIL_IF(notify_parent(write_pipe)); in ebb_child()
385 FAIL_IF(notify_parent(write_pipe)); in ebb_child()
Debb.h74 int ebb_child(union pipe read_pipe, union pipe write_pipe);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/
D2-1.c38 int parent_process(char *qname, int read_pipe, int write_pipe, int child_pid);
39 int child_process(char *qname, int read_pipe, int write_pipe);
41 int send_receive(int read_pipe, int write_pipe, char send, char *reply);
95 int parent_process(char *qname, int read_pipe, int write_pipe, int child_pid) in parent_process() argument
117 rval = send_receive(read_pipe, write_pipe, 'a', &reply); in parent_process()
138 rval = send_receive(read_pipe, write_pipe, 'c', &reply); in parent_process()
155 int child_process(char *qname, int read_pipe, int write_pipe) in child_process() argument
163 rval = send_receive(read_pipe, write_pipe, 0, &reply); in child_process()
184 rval = send_receive(read_pipe, write_pipe, 'b', &reply); in child_process()
199 send_receive(read_pipe, write_pipe, rval ? 'e' : 'd', NULL); in child_process()
[all …]
/external/ltp/testcases/kernel/syscalls/sigrelse/
Dsigrelse01.c132 static int write_pipe(int fd, char *msg);
286 if (write_pipe(pipe_fd2[1], READY) < 0) { in parent()
426 if (write_pipe(pipe_fd[1], note) < 0) { in child()
510 if (write_pipe(pipe_fd[1], note) < 0) { in child()
634 static int write_pipe(int fd, char *msg) in write_pipe() function
/external/minijail/
Dlibminijail_unittest.cc332 int write_pipe[2]; in TEST() local
339 status = pipe(write_pipe); in TEST()
342 status = minijail_preserve_fd(j, write_pipe[0], STDIN_FILENO); in TEST()
353 close(write_pipe[0]); in TEST()
354 status = write(write_pipe[1], teststr, teststr_len); in TEST()
356 close(write_pipe[1]); in TEST()
/external/clang/test/CodeGenOpenCL/
Dpipe_builtin.cl19 write_pipe(p, ptr);
23 write_pipe(p, rid, 2, ptr);
/external/wpa_supplicant_8/src/drivers/
Dndis_events.c31 HANDLE read_pipe, write_pipe, event_avail; member
123 if (!CreatePipe(&events->read_pipe, &events->write_pipe, NULL, 512)) { in ndis_events_constructor()
133 CloseHandle(events->write_pipe); in ndis_events_constructor()
144 CloseHandle(events->write_pipe); in ndis_events_destructor()
217 if (WriteFile(events->write_pipe, buf, pos - buf, &written, NULL)) { in ndis_events_send_event()
/external/python/cpython2/PC/
D_subprocess.c268 HANDLE write_pipe; in sp_CreatePipe() local
278 result = CreatePipe(&read_pipe, &write_pipe, NULL, size); in sp_CreatePipe()
285 "NN", sp_handle_new(read_pipe), sp_handle_new(write_pipe)); in sp_CreatePipe()
/external/autotest/server/site_tests/network_WiFi_RoamOnLowPower/
Dnetwork_WiFi_RoamOnLowPower.py29 def __init__(self, write_pipe): argument
35 self._write_pipe = write_pipe
/external/spirv-llvm/test/SPIRV/transcoding/
Dpipe_builtins.ll12 ; write_pipe(out_pipe, &src[gid]);
28 ; write_pipe(out_pipe, res_id, 0, &src[gid]);
59 ; write_pipe(out_pipe, res_id, get_local_id(0), &src[gid]);
85 ; write_pipe(out_pipe, res_id, get_sub_group_local_id(), &src[gid]);
/external/python/cpython3/Modules/
D_winapi.c660 HANDLE write_pipe; in _winapi_CreatePipe_impl() local
664 result = CreatePipe(&read_pipe, &write_pipe, NULL, size); in _winapi_CreatePipe_impl()
671 "NN", HANDLE_TO_PYNUM(read_pipe), HANDLE_TO_PYNUM(write_pipe)); in _winapi_CreatePipe_impl()
/external/spirv-llvm/lib/SPIRV/
DOCLUtil.h576 _SPIRV_OP(write_pipe, WritePipe) in init()

12