Lines Matching refs:open

5  * Basic tests for open(2) and make sure open(2) works and handles error
70 /* Test open(2) regular file */
71 { /* open regular file O_RDONLY */
78 { /* open regular file O_WRONLY */
85 { /* open regular file O_RDWR */
92 { /* open regular file O_RDWR | O_SYNC*/
99 { /* open regular file O_RDWR | O_TRUNC */
106 /* Test open(2) directory */
107 { /* open dir O_RDONLY */
114 { /* open dir O_RDWR */
121 { /* open regular file O_DIRECTORY */
128 /* Test open(2) hard link */
129 { /* open hard link file O_RDONLY */
136 { /* open hard link file O_WRONLY */
143 { /* open hard link file O_RDWR */
150 /* Test open(2) sym link */
151 { /* open sym link file O_RDONLY */
158 { /* open sym link file O_WRONLY */
165 { /* open sym link file O_RDWR */
172 { /* open sym link dir O_RDONLY */
179 { /* open sym link dir O_WRONLY */
186 { /* open sym link dir O_RDWR */
193 /* * Test open(2) device special */
194 { /* open device special file O_RDONLY */
201 { /* open device special file O_WRONLY */
208 { /* open device special file O_RDWR */
215 /* * Test open(2) non-existing file */
216 { /* open non-existing regular file in existing dir */
223 /* test open(2) with O_CREAT */
224 { /* open hard link file O_RDONLY | O_CREAT */
231 { /* open sym link file O_RDONLY | O_CREAT */
238 { /* open regular file O_RDONLY | O_CREAT */
245 { /* open symlink dir O_RDONLY | O_CREAT */
252 { /* open dir O_RDONLY | O_CREAT */
259 /* Other random open(2) tests */
260 { /* open regular file O_RDONLY | O_TRUNC */
268 { /* open regular(non-empty) file O_RDONLY | O_TRUNC */
281 TST_EXP_FAIL2(open(tc[n].path, tc[n].flags, tc[n].mode),
284 TST_EXP_FD(open(tc[n].path, tc[n].flags, tc[n].mode),
287 TEST(open(tc[n].path, tc[n].flags, tc[n].mode));