/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/ |
D | 2-2.c | 42 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 …]
|
D | 2-1.c | 47 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/ |
D | ebb_on_child_test.c | 23 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()
|
D | ebb_on_willing_child_test.c | 23 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()
|
D | task_event_vs_ebb_test.c | 38 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()
|
D | ebb_vs_cpu_event_test.c | 39 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()
|
D | task_event_pinned_vs_ebb_test.c | 40 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()
|
D | cpu_event_vs_ebb_test.c | 39 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()
|
D | cpu_event_pinned_vs_ebb_test.c | 41 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()
|
D | ebb.c | 349 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()
|
D | ebb.h | 74 int ebb_child(union pipe read_pipe, union pipe write_pipe);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/ |
D | 2-1.c | 38 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/clang/test/SemaOpenCL/ |
D | invalid-pipe-builtin-cl2.0.cl | 8 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); 13 …read_pipe(p, tmp, tmp, ptr); // expected-error {{invalid argument type to function 'read_pipe' (… 14 …read_pipe(p, rid, rid, ptr); // expected-error {{invalid argument type to function 'read_pipe' (… 15 …read_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)}} 46 …read_pipe(p, rid, tmp, ptr); // expected-error {{invalid pipe access modifier (expecting read_o…
|
D | clang-builtin-version.cl | 21 …read_pipe(tmp, tmp); // expected-warning{{implicit declaration of function 'read_pipe' is invalid…
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ |
D | lib.c | 33 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()
|
D | lib.h | 25 extern int sync_with_child(union pipe read_pipe, union pipe write_pipe); 26 extern int wait_for_parent(union pipe read_pipe);
|
/external/ltp/testcases/kernel/syscalls/sigrelse/ |
D | sigrelse01.c | 131 static char *read_pipe(int fd); 252 if ((str = read_pipe(pipe_fd[0])) == NULL) { in parent() 309 if ((array = (int *)read_pipe(pipe_fd[0])) == NULL) { in parent() 345 if ((str = read_pipe(pipe_fd[0])) == NULL) { in parent() 460 if ((str = read_pipe(pipe_fd2[0])) == NULL) { in child() 596 static char *read_pipe(int fd) in read_pipe() function
|
/external/wpa_supplicant_8/src/drivers/ |
D | ndis_events.c | 31 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()
|
D | driver_ndis.h | 14 struct ndis_events_data * ndis_events_init(HANDLE *read_pipe, HANDLE *event,
|
/external/clang/test/CodeGenOpenCL/ |
D | pipe_types.cl | 43 read_pipe (SPipe, SDst); 45 read_pipe (SPipe, SDst);
|
D | pipe_builtin.cl | 8 read_pipe(p, ptr); 12 read_pipe(p, rid, 2, ptr);
|
/external/autotest/client/common_lib/ |
D | logging_manager_test.py | 45 self.read_pipe() 49 def read_pipe(self): member in PipedStringIO 60 instance.read_pipe()
|
/external/python/cpython2/PC/ |
D | _subprocess.c | 267 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/minijail/ |
D | libminijail_unittest.cc | 484 int read_pipe[2]; in TEST() local 490 status = pipe(read_pipe); in TEST() 497 status = minijail_preserve_fd(j, read_pipe[1], STDOUT_FILENO); in TEST() 511 close(read_pipe[1]); in TEST() 512 status = read(read_pipe[0], buf, 8); in TEST()
|
/external/spirv-llvm/test/SPIRV/transcoding/ |
D | pipe_builtins.ll | 18 ; 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]);
|