Lines Matching refs:fd

35     int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE);
36 EXPECT_TRUE("faccessat_0100", fd >= 0);
37 int isExist = faccessat(fd, ptr, F_OK, 0);
39 close(fd);
52 int fd = -1;
53 int isExist = faccessat(fd, ptr, F_OK, 0);
55 close(fd);
68 int fd = open(ptr, O_RDWR | O_CREAT, 00040);
69 EXPECT_TRUE("faccessat_0300", fd >= 0);
70 int isRead = faccessat(fd, ptr, R_OK, 0);
72 close(fd);
85 int fd = open(ptr, O_RDWR | O_CREAT, 00020);
86 EXPECT_TRUE("faccessat_0400", fd >= 0);
87 int isWrite = faccessat(fd, ptr, W_OK, 0);
89 close(fd);
102 int fd = open(ptr, O_RDWR | O_CREAT, 00010);
106 EXPECT_TRUE("faccessat_0500", fd >= 0);
107 int isExecute = faccessat(fd, ptr, X_OK, 0);
109 close(fd);
122 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE);
123 EXPECT_TRUE("faccessat_0600", fd >= 0);
124 int isExecute = faccessat(fd, ptr, X_OK, 0);
126 close(fd);
139 int fd = open(ptr, O_RDWR | O_CREAT, 00070);
140 EXPECT_TRUE("faccessat_0700", fd >= 0);
141 int isExecute = faccessat(fd, ptr, R_OK | W_OK | X_OK, 0);
143 close(fd);
156 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE);
157 EXPECT_TRUE("faccessat_0800", fd >= 0);
158 int isExecute = faccessat(fd, ptr, R_OK | W_OK | X_OK, 0);
160 close(fd);
173 int fd = open(ptr, O_RDWR | O_CREAT, 00070);
174 EXPECT_TRUE("faccessat_0900", fd >= 0);
175 int ret = faccessat(fd, ptr, R_OK, 0);
178 close(fd);
184 * @tc.desc : The test file has read, write and executable permissions, fd is AT_FDCWD,
192 int fd = open(ptr, O_RDWR | O_CREAT, 00070);
193 EXPECT_TRUE("faccessat_1000", fd >= 0);
196 close(fd);
202 * @tc.desc : The test file does not have read, write and execute permissions, fd is AT_FDCWD,
210 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE);
211 EXPECT_TRUE("faccessat_1100", fd >= 0);
214 close(fd);