| /linux/tools/testing/selftests/namespaces/ |
| H A D | listns_efault_test.c | 137 if (write_nointr(sv[i][1], "R", 1) != 1) in TEST() 164 write_nointr(sv[i][0], "X", 1); in TEST() 350 if (write_nointr(sv[i][1], "R", 1) != 1) in TEST() 373 write_nointr(sv[i][0], "X", 1); in TEST() 380 write_nointr(sv[i][0], "X", 1); in TEST() 499 if (write_nointr(sv[i][1], "R", 1) != 1) in TEST() 522 write_nointr(sv[i][0], "X", 1); in TEST()
|
| H A D | regression_pidfd_setns_test.c | 58 if (write_nointr(sv[1], "1", 1) < 0) { in TEST()
|
| /linux/tools/testing/selftests/uevent/ |
| H A D | uevent_filtering.c | 42 ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 148 ret = write_nointr(sync_fd, &sync_add, sizeof(sync_add)); in uevent_listener() 182 (void)write_nointr(STDERR_FILENO, buf, r); in uevent_listener() 183 (void)write_nointr(STDERR_FILENO, "\n", 1); in uevent_listener() 209 ret = write_nointr(fd, "add\n", sizeof("add\n") - 1); in trigger_uevent()
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 127 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 200 ret = write_nointr(setgroups_fd, "deny\n", STRLITERALLEN("deny\n")); in write_id_mapping() 218 ret = write_nointr(fd, buf, buf_size); in write_id_mapping() 368 ret = write_nointr(h->fd_event, "1", 1); in userns_fd_cb() 412 bytes = write_nointr(fd_socket[0], "1", 1); /* Inform the child we wrote a mapping. */ in create_userns_hierarchy() 414 bytes = write_nointr(fd_socket[0], "0", 1); /* Inform the child we didn't write a mapping. */ in create_userns_hierarchy()
|
| /linux/tools/testing/selftests/filesystems/binderfs/ |
| H A D | binderfs_test.c | 236 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 263 ret = write_nointr(setgroups_fd, "deny", sizeof("deny") - 1); in write_id_mapping() 287 ret = write_nointr(fd, buf, buf_size); in write_id_mapping() 308 ret = write_nointr(syncfds[0], "1", 1); in change_userns() 310 TH_LOG("write_nointr() failed"); in change_userns() 350 ret = write_nointr(syncfds[1], "1", 1); in change_idmaps() 352 TH_LOG("write_nointr() failed"); in change_idmaps()
|
| /linux/tools/testing/selftests/coredump/ |
| H A D | coredump_socket_protocol_test.c | 109 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 263 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 401 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 548 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in check_refused_ack() 732 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 881 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 1014 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { 1171 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { 1313 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in TEST_F() 1431 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in check_record_dump() [all …]
|
| H A D | coredump_socket_test.c | 106 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 239 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 399 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 468 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 658 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 805 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F()
|
| H A D | coredump_notify_signal_test.c | 198 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in TEST_F()
|
| H A D | coredump_signal_test.c | 168 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in run_coredump()
|
| H A D | coredump_worker_test.c | 215 if (write_nointr(fd_ipc, "1", 1) != 1) in worker_child()
|
| H A D | coredump_test_helpers.c | 100 ok = write_nointr(fd, buf, len) == len; in set_coredump_filter() 122 if (write_nointr(fd_addr, &p, sizeof(p)) != sizeof(p)) in crashing_child_memory() 1244 if (write_nointr(fd_core_file, buffer, ret) != ret) { in recv_coredump_bytes()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_info_test.c | 56 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 81 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 227 if (write_nointr(ipc_socket, &pid_thread, sizeof(pid_thread)) != sizeof(pid_thread)) in pidfd_info_pause_thread() 403 if (write_nointr(ipc_socket, &pid_thread, sizeof(pid_thread)) != sizeof(pid_thread)) in pidfd_info_thread_exec() 483 ASSERT_EQ(write_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread)); in TEST_F() 552 if (write_nointr(ipc_socket, &pid_thread, sizeof(pid_thread)) != sizeof(pid_thread)) in pidfd_info_thread_exec_sane() 631 ASSERT_EQ(write_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread)); in TEST_F()
|
| H A D | pidfd_file_handle_test.c | 59 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 81 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 103 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP()
|
| H A D | pidfd.h | 313 static inline ssize_t write_nointr(int fd, const void *buf, size_t count) 292 static inline ssize_t write_nointr(int fd, const void *buf, size_t count) write_nointr() function
|
| H A D | pidfd_setns_test.c | 197 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 251 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP()
|
| /linux/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 48 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 68 ret = write_nointr(fd, buf, count); in write_file()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | token.c | 223 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() 243 ret = write_nointr(fd, buf, count); in write_file() 217 static ssize_t write_nointr(int fd, const void *buf, size_t count) write_nointr() function
|
| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 150 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 170 ret = write_nointr(fd, buf, count); in write_file()
|
| /linux/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | set_layers_via_fds.c | 419 ASSERT_EQ(write_nointr(ipc_sockets[0], "1", 1), 1); in TEST_F()
|