/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | ebb_on_willing_child_test.c | 23 static int victim_child(union pipe read_pipe, union pipe write_pipe) argument 32 FAIL_IF(notify_parent(write_pipe)); 53 union pipe read_pipe, write_pipe; local 60 FAIL_IF(pipe(write_pipe.fds) == -1); 65 exit(victim_child(write_pipe, read_pipe)); 69 FAIL_IF(sync_with_child(read_pipe, write_pipe));
|
H A D | cpu_event_pinned_vs_ebb_test.c | 41 union pipe read_pipe, write_pipe; local 53 FAIL_IF(pipe(write_pipe.fds) == -1); 58 exit(ebb_child(write_pipe, read_pipe)); 69 if (sync_with_child(read_pipe, write_pipe)) 74 FAIL_IF(sync_with_child(read_pipe, write_pipe));
|
H A D | cpu_event_vs_ebb_test.c | 39 union pipe read_pipe, write_pipe; local 51 FAIL_IF(pipe(write_pipe.fds) == -1); 56 exit(ebb_child(write_pipe, read_pipe)); 67 if (sync_with_child(read_pipe, write_pipe)) 72 FAIL_IF(sync_with_child(read_pipe, write_pipe));
|
H A D | ebb_on_child_test.c | 23 static int victim_child(union pipe read_pipe, union pipe write_pipe) argument 28 FAIL_IF(notify_parent(write_pipe)); 33 FAIL_IF(notify_parent(write_pipe)); 46 union pipe read_pipe, write_pipe; local 53 FAIL_IF(pipe(write_pipe.fds) == -1); 58 exit(victim_child(write_pipe, read_pipe)); 61 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 75 FAIL_IF(sync_with_child(read_pipe, write_pipe));
|
H A D | ebb_vs_cpu_event_test.c | 39 union pipe read_pipe, write_pipe; local 51 FAIL_IF(pipe(write_pipe.fds) == -1); 56 exit(ebb_child(write_pipe, read_pipe)); 60 FAIL_IF(sync_with_child(read_pipe, write_pipe)); 70 FAIL_IF(sync_with_child(read_pipe, write_pipe));
|
H A D | task_event_pinned_vs_ebb_test.c | 40 union pipe read_pipe, write_pipe; local 48 FAIL_IF(pipe(write_pipe.fds) == -1); 53 exit(ebb_child(write_pipe, read_pipe)); 64 if (sync_with_child(read_pipe, write_pipe)) 69 FAIL_IF(sync_with_child(read_pipe, write_pipe));
|
H A D | task_event_vs_ebb_test.c | 38 union pipe read_pipe, write_pipe; local 46 FAIL_IF(pipe(write_pipe.fds) == -1); 51 exit(ebb_child(write_pipe, read_pipe)); 62 if (sync_with_child(read_pipe, write_pipe)) 67 FAIL_IF(sync_with_child(read_pipe, write_pipe));
|
H A D | ebb.c | 349 int ebb_child(union pipe read_pipe, union pipe write_pipe) argument 377 notify_parent_of_error(write_pipe); 383 FAIL_IF(notify_parent(write_pipe)); 385 FAIL_IF(notify_parent(write_pipe));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/ |
H A 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) argument 117 rval = send_receive(read_pipe, write_pipe, 'a', &reply); 138 rval = send_receive(read_pipe, write_pipe, 'c', &reply); 155 int child_process(char *qname, int read_pipe, int write_pipe) argument 163 rval = send_receive(read_pipe, write_pipe, 0, &reply); 184 rval = send_receive(read_pipe, write_pipe, 'b', &reply); 199 send_receive(read_pipe, write_pipe, rva 216 send_receive(int read_pipe, int write_pipe, char send, char *reply) argument [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/ |
H A 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) argument 108 rval = send_receive(read_pipe, write_pipe, 'a', &reply); 138 int child_process(char *mqname, int read_pipe, int write_pipe) argument 144 rval = send_receive(read_pipe, write_pipe, 0, &reply); 157 rval = send_receive(read_pipe, write_pipe, 'b', NULL); 162 int send_receive(int read_pipe, int write_pipe, char send, char *reply) argument 167 bytes = write(write_pipe, [all...] |
H A 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) argument 103 rval = send_receive(read_pipe, write_pipe, 'a', &reply); 112 rval = send_receive(read_pipe, write_pipe, 'c', &reply); 140 int child_process(char *mqname, int read_pipe, int write_pipe) argument 146 rval = send_receive(read_pipe, write_pipe, 0, &reply); 159 rval = send_receive(read_pipe, write_pipe, 'b', &reply); 171 rval = send_receive(read_pipe, write_pipe, ' 178 send_receive(int read_pipe, int write_pipe, char send, char *reply) argument [all...] |
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ |
H A D | lib.c | 33 int sync_with_child(union pipe read_pipe, union pipe write_pipe) argument 37 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); 55 int notify_parent(union pipe write_pipe) argument 59 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); 64 int notify_parent_of_error(union pipe write_pipe) argument 68 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); 97 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) argument 107 notify_parent(write_pipe); 118 union pipe read_pipe, write_pipe; local 129 if (pipe(write_pipe [all...] |
/external/ltp/testcases/kernel/syscalls/sigrelse/ |
H A D | sigrelse01.c | 132 static int write_pipe(int fd, char *msg); 286 if (write_pipe(pipe_fd2[1], READY) < 0) { 359 /* the write() call failed in child's write_pipe */ 426 if (write_pipe(pipe_fd[1], note) < 0) { 428 * write_pipe() failed. Set exit value to WRITE_BROK to let 510 if (write_pipe(pipe_fd[1], note) < 0) { 512 * write_pipe() failed. Set exit value to WRITE_BROK to let 631 * write_pipe(msg) : write msg to pipe. If it fails, put message in 634 static int write_pipe(int fd, char *msg) function 638 printf("write_pipe [all...] |
/external/minijail/ |
H A D | libminijail_unittest.cc | 332 int write_pipe[2]; local 339 status = pipe(write_pipe); 342 status = minijail_preserve_fd(j, write_pipe[0], STDIN_FILENO); 353 close(write_pipe[0]); 354 status = write(write_pipe[1], teststr, teststr_len); 356 close(write_pipe[1]);
|
/external/python/cpython2/PC/ |
H A D | _subprocess.c | 268 HANDLE write_pipe; local 278 result = CreatePipe(&read_pipe, &write_pipe, NULL, size); 285 "NN", sp_handle_new(read_pipe), sp_handle_new(write_pipe));
|
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | ndis_events.c | 31 HANDLE read_pipe, write_pipe, event_avail; member in struct:ndis_events_data 123 if (!CreatePipe(&events->read_pipe, &events->write_pipe, NULL, 512)) { 133 CloseHandle(events->write_pipe); 144 CloseHandle(events->write_pipe); 217 if (WriteFile(events->write_pipe, buf, pos - buf, &written, NULL)) {
|
/external/wpa_supplicant_8/src/drivers/ |
H A D | ndis_events.c | 31 HANDLE read_pipe, write_pipe, event_avail; member in struct:ndis_events_data 123 if (!CreatePipe(&events->read_pipe, &events->write_pipe, NULL, 512)) { 133 CloseHandle(events->write_pipe); 144 CloseHandle(events->write_pipe); 217 if (WriteFile(events->write_pipe, buf, pos - buf, &written, NULL)) {
|
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/ |
H A D | ndis_events.c | 31 HANDLE read_pipe, write_pipe, event_avail; member in struct:ndis_events_data 123 if (!CreatePipe(&events->read_pipe, &events->write_pipe, NULL, 512)) { 133 CloseHandle(events->write_pipe); 144 CloseHandle(events->write_pipe); 217 if (WriteFile(events->write_pipe, buf, pos - buf, &written, NULL)) {
|
/external/python/cpython3/Modules/ |
H A D | _winapi.c | 660 HANDLE write_pipe; local 664 result = CreatePipe(&read_pipe, &write_pipe, NULL, size); 671 "NN", HANDLE_TO_PYNUM(read_pipe), HANDLE_TO_PYNUM(write_pipe));
|