Home
last modified time | relevance | path

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

12

/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
174 bytes = read(read_pipe, reply, 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
27 FAIL_IF(wait_for_parent(read_pipe)); in victim_child()
32 FAIL_IF(wait_for_parent(read_pipe)); in victim_child()
46 union pipe read_pipe, write_pipe; in ebb_on_child() local
52 FAIL_IF(pipe(read_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
25 FAIL_IF(wait_for_parent(read_pipe)); in victim_child()
53 union pipe read_pipe, write_pipe; in ebb_on_willing_child() local
59 FAIL_IF(pipe(read_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
45 FAIL_IF(pipe(read_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
50 FAIL_IF(pipe(read_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()
Dtask_event_pinned_vs_ebb_test.c40 union pipe read_pipe, write_pipe; in task_event_pinned_vs_ebb() local
47 FAIL_IF(pipe(read_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()
Debb_vs_cpu_event_test.c39 union pipe read_pipe, write_pipe; in ebb_vs_cpu_event() local
50 FAIL_IF(pipe(read_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()
Dcpu_event_pinned_vs_ebb_test.c41 union pipe read_pipe, write_pipe; in cpu_event_pinned_vs_ebb() local
52 FAIL_IF(pipe(read_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
354 FAIL_IF(wait_for_parent(read_pipe)); in ebb_child()
384 FAIL_IF(wait_for_parent(read_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/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
38 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); in sync_with_child()
45 int wait_for_parent(union pipe read_pipe) in wait_for_parent() argument
49 FAIL_IF(read(read_pipe.read_fd, &c, 1) != 1); in wait_for_parent()
97 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) in eat_cpu_child() argument
108 wait_for_parent(read_pipe); in eat_cpu_child()
118 union pipe read_pipe, write_pipe; in eat_cpu() local
126 if (pipe(read_pipe.fds) == -1) in eat_cpu()
134 exit(eat_cpu_child(write_pipe, read_pipe)); in eat_cpu()
136 if (sync_with_child(read_pipe, write_pipe)) { in eat_cpu()
Dlib.h25 extern int sync_with_child(union pipe read_pipe, union pipe write_pipe);
26 extern int wait_for_parent(union pipe read_pipe);
/external/clang/test/SemaOpenCL/
Dinvalid-pipe-builtin-cl2.0.cl8 read_pipe(p, &tmp);
9 read_pipe(p, ptr);
10 read_pipe(tmp, p); // expected-error {{first argument to 'read_pipe' must be a pipe type}}
11 read_pipe(p); // expected-error {{invalid number of arguments to function: 'read_pipe'}}
12 read_pipe(p, rid, tmp, ptr);
13read_pipe(p, tmp, tmp, ptr); // expected-error {{invalid argument type to function 'read_pipe' (…
14read_pipe(p, rid, rid, ptr); // expected-error {{invalid argument type to function 'read_pipe' (…
15read_pipe(p, tmp); // expected-error {{invalid argument type to function 'read_pipe' (expecting …
45 read_pipe(p, ptr); // expected-error {{invalid pipe access modifier (expecting read_only)}}
46read_pipe(p, rid, tmp, ptr); // expected-error {{invalid pipe access modifier (expecting read_o…
Dclang-builtin-version.cl21read_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'read_pipe' is invalid…
/external/ltp/testcases/kernel/syscalls/sigrelse/
Dsigrelse01.c131 static char *read_pipe(int fd);
252 if ((str = read_pipe(pipe_fd[0])) == NULL) { in parent()
310 if ((array = (int *)read_pipe(pipe_fd[0])) == NULL) { in parent()
346 if ((str = read_pipe(pipe_fd[0])) == NULL) { in parent()
461 if ((str = read_pipe(pipe_fd2[0])) == NULL) { in child()
597 static char *read_pipe(int fd) in read_pipe() function
/external/clang/test/CodeGenOpenCL/
Dpipe_types.cl43 read_pipe (SPipe, SDst);
45 read_pipe (SPipe, SDst);
Dpipe_builtin.cl8 read_pipe(p, ptr);
12 read_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()
132 CloseHandle(events->read_pipe); in ndis_events_constructor()
143 CloseHandle(events->read_pipe); in ndis_events_destructor()
702 ndis_events_init(HANDLE *read_pipe, HANDLE *event_avail, in ndis_events_init() argument
798 *read_pipe = events->read_pipe; in ndis_events_init()
Ddriver_ndis.h14 struct ndis_events_data * ndis_events_init(HANDLE *read_pipe, HANDLE *event,
/external/autotest/client/common_lib/
Dlogging_manager_test.py45 self.read_pipe()
49 def read_pipe(self): member in PipedStringIO
60 instance.read_pipe()
/external/python/cpython2/PC/
D_subprocess.c267 HANDLE read_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/spirv-llvm/test/SPIRV/transcoding/
Dpipe_builtins.ll18 ; read_pipe(in_pipe, &dst[gid]);
46 ; read_pipe(in_pipe, res_id, 0, &dst[gid]);
72 ; read_pipe(in_pipe, res_id, get_local_id(0), &dst[gid]);
98 ; read_pipe(in_pipe, res_id, get_sub_group_local_id(), &dst[gid]);
/external/spirv-llvm/lib/SPIRV/
DOCLUtil.h575 _SPIRV_OP(read_pipe, ReadPipe) in init()

12