Lines Matching refs:flags
40 static inline int sys_eventfd2(unsigned int count, int flags) in sys_eventfd2() argument
42 return syscall(__NR_eventfd2, count, flags); in sys_eventfd2()
47 int fd, flags; in TEST() local
52 flags = fcntl(fd, F_GETFL); in TEST()
54 EXPECT_EQ(flags, O_RDWR); in TEST()
61 int fd, flags; in TEST() local
66 flags = fcntl(fd, F_GETFD); in TEST()
67 ASSERT_GT(flags, -1); in TEST()
68 EXPECT_EQ(flags, FD_CLOEXEC); in TEST()
75 int fd, flags; in TEST() local
80 flags = fcntl(fd, F_GETFL); in TEST()
81 ASSERT_GT(flags, -1); in TEST()
82 EXPECT_EQ(flags & EFD_NONBLOCK, EFD_NONBLOCK); in TEST()
83 EXPECT_EQ(flags & O_RDWR, O_RDWR); in TEST()
90 int fd, flags; in TEST() local
95 flags = fcntl(fd, F_GETFL); in TEST()
96 ASSERT_GT(flags, -1); in TEST()
97 EXPECT_EQ(flags & EFD_NONBLOCK, EFD_NONBLOCK); in TEST()
98 EXPECT_EQ(flags & O_RDWR, O_RDWR); in TEST()
100 flags = fcntl(fd, F_GETFD); in TEST()
101 ASSERT_GT(flags, -1); in TEST()
102 EXPECT_EQ(flags, FD_CLOEXEC); in TEST()