| /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() 343 if (write_nointr(sv[i][1], "R", 1) != 1) in TEST() 366 write_nointr(sv[i][0], "X", 1); in TEST() 373 write_nointr(sv[i][0], "X", 1); in TEST() 485 if (write_nointr(sv[i][1], "R", 1) != 1) in TEST() 508 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() 350 ret = write_nointr(syncfds[1], "1", 1); in change_idmaps()
|
| /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 | 292 static inline ssize_t write_nointr(int fd, const void *buf, size_t count) in 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/coredump/ |
| H A D | coredump_socket_protocol_test.c | 109 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 265 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 405 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 545 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 666 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 786 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 908 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 1036 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 1169 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 1294 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { [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() 466 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F() 612 if (write_nointr(ipc_sockets[1], "1", 1) < 0) { in TEST_F()
|
| /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 | 217 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 237 ret = write_nointr(fd, buf, count); in write_file()
|
| /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()
|