Home
last modified time | relevance | path

Searched refs:O_DIRECT (Results 1 - 25 of 107) sorted by relevance

12345

/third_party/ltp/testcases/kernel/io/direct_io/
H A Ddiotest4.c79 #ifdef O_DIRECT
220 if ((fd = open(filename, O_DIRECT | O_RDWR | O_CREAT, 0666)) < 0) { in main()
240 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
344 if ((newfd = open("/dev/null", O_DIRECT | O_RDWR)) < 0) { in main()
357 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
386 if ((fd = open(filename, O_DIRECT | O_WRONLY)) < 0) { in main()
412 if ((fd = open(filename, O_DIRECT | O_RDONLY)) < 0) { in main()
438 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
462 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) { in main()
507 if ((fd = open(filename, O_DIRECT | O_RDW in main()
[all...]
H A Ddiotest3.c63 #ifdef O_DIRECT
160 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) { in child_function()
162 "open(%s, O_DIRECT|O_RDONLY, ..) failed", in child_function()
177 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in child_function()
198 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in child_function()
203 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) { in child_function()
354 /* Test for filesystem support of O_DIRECT */ in setup()
355 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) in setup()
356 tst_brkm(TCONF, cleanup, "open(%s, O_DIRECT, ..) failed", in setup()
369 #else /* O_DIRECT */
[all...]
H A Ddiotest2.c63 #ifdef O_DIRECT
185 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) in main()
187 "open(%s, O_DIRECT|O_RDONLY..) failed", filename); in main()
201 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main()
203 "open(%s, O_DIRECT|O_WRONLY..) failed", filename); in main()
220 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1) in main()
222 "open(%s, O_DIRECT|O_WRONLY|O_CREAT, ..) failed", in main()
224 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) == -1) in main()
226 "open(%s, O_DIRECT|O_RDONLY|O_CREAT, ..) failed", in main()
259 /* Test for filesystem support of O_DIRECT */ in setup()
[all...]
H A Ddiotest5.c66 #ifdef O_DIRECT
221 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) { in main()
239 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main()
260 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in main()
264 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) { in main()
301 /* Test for filesystem support of O_DIRECT */ in setup()
302 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) { in setup()
304 "O_DIRECT is not supported by this filesystem. %s", in setup()
318 #else /* O_DIRECT */
323 tst_resm(TCONF, "O_DIRECT i in main()
[all...]
H A Ddiotest1.c48 #ifdef O_DIRECT
121 /* Test for filesystem support of O_DIRECT */ in main()
122 int fd = open(infile, O_DIRECT | O_RDWR | O_CREAT, 0666); in main()
125 tst_brkm(TCONF, cleanup, "O_DIRECT not supported by FS"); in main()
129 fd1 = SAFE_OPEN(cleanup, infile, O_DIRECT | O_RDWR | O_CREAT, 0666); in main()
130 fd2 = SAFE_OPEN(cleanup, outfile, O_DIRECT | O_RDWR | O_CREAT, 0666); in main()
168 #else /* O_DIRECT */
172 tst_brkm(TCONF, NULL, "O_DIRECT is not defined."); in main()
174 #endif /* O_DIRECT */
H A Ddiotest6.c54 #ifdef O_DIRECT
185 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) { in child_function()
202 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in child_function()
224 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) { in child_function()
229 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) { in child_function()
381 /* Test for filesystem support of O_DIRECT */ in setup()
382 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) { in setup()
384 "O_DIRECT is not supported by this filesystem. %s", in setup()
398 #else /* O_DIRECT */
402 tst_brkm(TCONF, NULL, "O_DIRECT i in main()
[all...]
/third_party/ltp/testcases/kernel/io/aio/
H A Daio02.c32 DESC_FLAGS_OPR(IO_CMD_PWRITE, O_WRONLY | O_TRUNC | O_DIRECT | O_LARGEFILE | O_CREAT),
35 DESC_FLAGS_OPR(IO_CMD_PREAD, O_RDONLY | O_DIRECT | O_LARGEFILE),
211 if ((tst_fs_type(".") == TST_TMPFS_MAGIC) && (tc->flags & O_DIRECT)) { in test_io()
212 tst_res(TINFO, "Drop O_DIRECT flag for tmpfs"); in test_io()
213 new_flags &= ~O_DIRECT; in test_io()
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
H A Daiocp.c114 if (dstflags & O_DIRECT) in async_write_done()
224 tst_brk(TCONF, "O_DIRECT not supported on tmpfs"); in setup()
226 srcflags |= O_DIRECT; in setup()
227 dstflags |= O_DIRECT; in setup()
236 if (dstflags & O_DIRECT && aio_blksize % alignment) in setup()
252 srcfd = SAFE_OPEN(srcname, (srcflags & ~O_DIRECT) | O_RDWR | O_CREAT, 0666); in setup()
H A Ddio_truncate.c56 while ((fd = open(filename, O_RDONLY | O_DIRECT, 0666)) < 0) in dio_read()
126 int wflags = O_DIRECT | O_WRONLY | O_CREAT; in run()
/third_party/ltp/testcases/kernel/fs/doio/
H A Dopen_flags.c181 #ifdef O_DIRECT
182 {"O_DIRECT", O_DIRECT},
/third_party/musl/porting/liteos_m/kernel/include/bits/
H A Dfcntl.h15 #define O_DIRECT 0200000 macro
/third_party/musl/porting/liteos_a/kernel/include/bits/
H A Dfcntl.h15 #define O_DIRECT 0200000 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/
H A Dfcntl.h15 #define O_DIRECT 0200000 macro
/third_party/musl/porting/liteos_m/user/include/bits/
H A Dfcntl.h15 #define O_DIRECT 0200000 macro
/third_party/musl/porting/uniproton/kernel/include/bits/
H A Dfcntl.h15 #define O_DIRECT 0200000 macro
/third_party/musl/arch/aarch64/bits/
H A Dfcntl.h15 #define O_DIRECT 0200000 macro
/third_party/musl/arch/generic/bits/
H A Dfcntl.h15 #define O_DIRECT 040000 macro
/third_party/musl/arch/m68k/bits/
H A Dfcntl.h15 #define O_DIRECT 0200000 macro
/third_party/musl/arch/mipsn32/bits/
H A Dfcntl.h15 #define O_DIRECT 0100000 macro
/third_party/musl/arch/arm/bits/
H A Dfcntl.h15 #define O_DIRECT 0200000 macro
/third_party/musl/arch/mips/bits/
H A Dfcntl.h15 #define O_DIRECT 0100000 macro
/third_party/musl/arch/mips64/bits/
H A Dfcntl.h15 #define O_DIRECT 0100000 macro
/third_party/musl/arch/powerpc/bits/
H A Dfcntl.h15 #define O_DIRECT 0400000 macro
/third_party/musl/arch/powerpc64/bits/
H A Dfcntl.h15 #define O_DIRECT 0400000 macro
/third_party/musl/arch/s390x/bits/
H A Dfcntl.h15 #define O_DIRECT 040000 macro

Completed in 8 milliseconds

12345