| /system/utest/fs/ |
| A D | test-fcntl.cpp | 36 int flags = fcntl(fd, F_GETFL); in TestFcntlAppend() 42 ASSERT_EQ(fcntl(fd, F_SETFL, flags & ~O_APPEND), 0, "Fcntl failed"); in TestFcntlAppend() 45 flags = fcntl(fd, F_GETFL); in TestFcntlAppend() 78 int flags = fcntl(fd, F_GETFL); in TestFcntlAccessBits() 86 ASSERT_EQ(fcntl(fd, F_SETFL, O_APPEND), 0, "Fcntl failed"); in TestFcntlAccessBits()
|
| A D | test-append.cpp | 112 ASSERT_EQ(fcntl(fd.get(), F_GETFL), O_APPEND | O_RDWR); in TestAppendOnClone() 118 ASSERT_EQ(fcntl(fd.get(), F_GETFL), O_RDWR); in TestAppendOnClone() 132 ASSERT_EQ(fcntl(fd.get(), F_SETFL, 0), 0); in TestAppendOnClone() 134 ASSERT_EQ(fcntl(fd.get(), F_SETFL, O_APPEND), 0); in TestAppendOnClone()
|
| A D | test-access.cpp | 180 int flags = fcntl(fd, F_GETFL); in TestAccessOpath() 186 ASSERT_EQ(fcntl(fd, F_SETFL, flags | O_APPEND), 0); in TestAccessOpath() 187 flags = fcntl(fd, F_GETFL); in TestAccessOpath()
|
| A D | rules.mk | 28 $(LOCAL_DIR)/test-fcntl.cpp \
|
| /system/utest/fdio/ |
| A D | fdio_handle_fd.c | 65 status = fcntl(fds[0], F_GETFL); in pipe_test() 69 status = fcntl(fds[0], F_SETFL, status); in pipe_test() 72 status = fcntl(fds[0], F_GETFL); in pipe_test() 171 status = fcntl(fds[0], F_SETFL, status); in transfer_fd_test() 250 int flags = fcntl(fd, F_GETFL); in create_fd_from_connected_socket() 253 int ret = fcntl(fd, F_SETFL, flags); in create_fd_from_connected_socket()
|
| A D | fdio_socket.c | 32 int flags = fcntl(fd, F_GETFL); in set_nonblocking_io() 34 EXPECT_NE(-1, fcntl(fd, F_SETFL, flags | O_NONBLOCK), "Set NONBLOCK failed"); in set_nonblocking_io()
|
| A D | fdio_socketpair.c | 71 ASSERT_EQ(fcntl(fds[0], F_SETFL, O_NONBLOCK), 0, ""); in socketpair_shutdown_setup() 72 ASSERT_EQ(fcntl(fds[1], F_SETFL, O_NONBLOCK), 0, ""); in socketpair_shutdown_setup() 454 ASSERT_EQ(fcntl(fds[0], F_SETFL, O_NONBLOCK), 0, ""); in socketpair_recvmsg_nonblock_boundary_test() 455 ASSERT_EQ(fcntl(fds[1], F_SETFL, O_NONBLOCK), 0, ""); in socketpair_recvmsg_nonblock_boundary_test() 513 ASSERT_EQ(fcntl(fds[0], F_SETFL, O_NONBLOCK), 0, ""); in socketpair_sendmsg_nonblock_boundary_test() 514 ASSERT_EQ(fcntl(fds[1], F_SETFL, O_NONBLOCK), 0, ""); in socketpair_sendmsg_nonblock_boundary_test()
|
| /system/host/netprotocol/ |
| A D | netcp.c | 135 int flags = fcntl(transport_info->socket, F_GETFL, 0); in transport_recv() 144 if (fcntl(transport_info->socket, F_SETFL, flags)) { in transport_recv()
|
| /system/host/bootserver/ |
| A D | tftp.c | 134 int flags = fcntl(state->socket, F_GETFL, 0); in transport_recv() 144 if ((new_flags != flags) && (fcntl(state->socket, F_SETFL, new_flags) != 0)) { in transport_recv()
|
| A D | bootserver.c | 224 if (fcntl(fd, F_SETFL, O_NONBLOCK) == 0) { in drain() 227 fcntl(fd, F_SETFL, 0); in drain()
|
| /system/ulib/tftp/ |
| A D | tftp-example.c | 72 int fl = fcntl(connection->socket, F_GETFL, 0); in connection_receive() 84 int ret = fcntl(connection->socket, F_SETFL, fl); in connection_receive()
|
| /system/uapp/kstress/ |
| A D | main.cpp | 160 fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK); in main()
|
| /system/uapp/psutils/ |
| A D | kstats.c | 246 fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK); in main()
|
| A D | top.c | 310 fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK); in main()
|
| /system/host/xdc-server/ |
| A D | xdc-server.cpp | 364 int flags = fcntl(client_fd, F_GETFL, 0); in ClientConnect() 370 int res = fcntl(client_fd, F_SETFL, flags | O_NONBLOCK); in ClientConnect()
|
| /system/ulib/fdio/ |
| A D | unistd.c | 1245 int fcntl(int fd, int cmd, ...) { in fcntl() function
|