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

123

/external/kernel-headers/original/uapi/asm-arm/asm/
H A Dfcntl.h7 #define O_DIRECT 0200000 /* direct disk access hint - currently ignored */ macro
/external/kernel-headers/original/uapi/asm-arm64/asm/
H A Dfcntl.h25 #define O_DIRECT 0200000 /* direct disk access hint - currently ignored */ macro
/external/ltp/testcases/kernel/io/disktest/
H A Dio.h39 /* for linux on power 2.4 O_DIRECT is only defined in asm/fcntl.h */
40 #ifndef O_DIRECT
41 #define O_DIRECT 0400000 macro
/external/ltp/testcases/kernel/fs/fsstress/
H A Dglobal.h62 #ifndef O_DIRECT
63 #define O_DIRECT 040000 macro
/external/ltp/testcases/kernel/io/direct_io/
H A Ddiotest1.c48 #ifdef O_DIRECT
121 /* Test for filesystem support of O_DIRECT */
122 int fd = open(infile, O_DIRECT | O_RDWR | O_CREAT, 0666);
125 tst_brkm(TCONF, cleanup, "O_DIRECT not supported by FS");
129 fd1 = SAFE_OPEN(cleanup, infile, O_DIRECT | O_RDWR | O_CREAT, 0666);
130 fd2 = SAFE_OPEN(cleanup, outfile, O_DIRECT | O_RDWR | O_CREAT, 0666);
168 #else /* O_DIRECT */
172 tst_brkm(TCONF, NULL, "O_DIRECT is not defined.");
174 #endif /* O_DIRECT */
H A Ddiotest4.c80 #ifdef O_DIRECT
221 if ((fd = open(filename, O_DIRECT | O_RDWR | O_CREAT, 0666)) < 0) {
241 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) {
344 if ((newfd = open("/dev/null", O_DIRECT | O_RDWR)) < 0) {
361 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) {
390 if ((fd = open(filename, O_DIRECT | O_WRONLY)) < 0) {
416 if ((fd = open(filename, O_DIRECT | O_RDONLY)) < 0) {
442 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) {
465 if ((fd = open(filename, O_DIRECT | O_RDWR)) < 0) {
510 if ((fd = open(filename, O_DIRECT | O_RDW
[all...]
H A Ddiotest2.c63 #ifdef O_DIRECT
185 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0)
187 "open(%s, O_DIRECT|O_RDONLY..) failed", filename);
201 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1)
203 "open(%s, O_DIRECT|O_WRONLY..) failed", filename);
220 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) == -1)
222 "open(%s, O_DIRECT|O_WRONLY|O_CREAT, ..) failed",
224 if ((fd_r = open(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) == -1)
226 "open(%s, O_DIRECT|O_RDONLY|O_CREAT, ..) failed",
259 /* Test for filesystem support of O_DIRECT */
[all...]
H A Ddiotest3.c63 #ifdef O_DIRECT
160 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) {
162 "open(%s, O_DIRECT|O_RDONLY, ..) failed",
177 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) {
198 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) {
203 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) {
352 /* Test for filesystem support of O_DIRECT */
353 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0)
354 tst_brkm(TCONF, cleanup, "open(%s, O_DIRECT, ..) failed",
367 #else /* O_DIRECT */
[all...]
H A Ddiotest5.c66 #ifdef O_DIRECT
221 if ((fd_r = open64(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) {
239 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) {
260 if ((fd_w = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) {
264 if ((fd_r = open64(filename, O_DIRECT | O_RDONLY | O_CREAT, 0666)) < 0) {
301 /* Test for filesystem support of O_DIRECT */
302 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) {
304 "O_DIRECT is not supported by this filesystem. %s",
318 #else /* O_DIRECT */
323 tst_resm(TCONF, "O_DIRECT i
[all...]
H A Ddiotest6.c54 #ifdef O_DIRECT
185 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) {
202 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) {
224 open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666)) < 0) {
229 if ((fd_r = open(filename, O_DIRECT | O_RDONLY, 0666)) < 0) {
379 /* Test for filesystem support of O_DIRECT */
380 if ((fd1 = open(filename, O_DIRECT, 0600)) < 0) {
382 "O_DIRECT is not supported by this filesystem. %s",
396 #else /* O_DIRECT */
400 tst_brkm(TCONF, NULL, "O_DIRECT i
[all...]
/external/autotest/client/tests/aio_dio_bugs/src/
H A Daio-dio-invalidate-failure.c28 #ifndef O_DIRECT
29 #define O_DIRECT 040000 /* direct disk access hint */ macro
105 fd = open(argv[1], O_DIRECT|O_CREAT|O_RDWR, 0644);
H A Daio-dio-extend-stat.c13 #ifndef O_DIRECT
14 #define O_DIRECT 040000 /* direct disk access hint */ macro
70 handle = open(argv[1], O_CREAT | O_TRUNC | O_DIRECT | O_RDWR, 0600);
H A Daio-dio-subblock-eof-read.c8 * read of the last block in a file opened with O_DIRECT returns the proper
50 fd = open(filename, O_CREAT|O_RDWR|O_DIRECT, 0600);
/external/kernel-headers/original/uapi/asm-mips/asm/
H A Dfcntl.h38 #define O_DIRECT 0x8000 /* direct disk access hint */ macro
/external/kernel-headers/original/uapi/asm-generic/
H A Dfcntl.h47 #ifndef O_DIRECT
48 #define O_DIRECT 00040000 /* direct disk access hint */ macro
/external/ltp/testcases/kernel/fs/doio/
H A Dopen_flags.c181 #ifdef O_DIRECT
182 {"O_DIRECT", O_DIRECT},
/external/ltp/testcases/kernel/io/ltp-aiodio/
H A Ddio_truncate.c80 while ((fd = open(filename, O_DIRECT | O_RDONLY)) < 0) {
112 fd = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666);
H A Ddio_append.c29 * dio_append - append zeroed data to a file using O_DIRECT while
85 fd = open(filename, O_DIRECT | O_WRONLY | O_CREAT, 0666);
/external/strace/xlat/
H A Dopen_mode_flags.h50 #if defined(O_DIRECT) || (defined(HAVE_DECL_O_DIRECT) && HAVE_DECL_O_DIRECT)
51 XLAT(O_DIRECT),
/external/ltp/utils/ffsb-6.0-rc2/
H A Dfh.c102 flags |= O_DIRECT;
112 flags |= O_DIRECT;
122 flags |= O_DIRECT;
132 flags |= O_DIRECT;
/external/ltp/testcases/kernel/io/aio/aio02/
H A Daio_tio.c201 O_TRUNC | O_DIRECT | O_WRONLY | O_CREAT | O_LARGEFILE,
208 status = io_tio("file1", O_RDONLY | O_DIRECT | O_LARGEFILE,
/external/ltp/testcases/kernel/syscalls/read/
H A Dread02.c34 * The file was opened with the O_DIRECT flag, and transfer sizes was not
39 * The file was opened with the O_DIRECT flag, and the alignment of the
80 tst_res(TCONF, "O_DIRECT not supported on %s filesystem",
89 "O_DIRECT unaligned reads fallbacks to buffered I/O");
124 fd4 = SAFE_OPEN("test_file", O_RDWR | O_DIRECT);
/external/strace/tests/
H A Dopenat.c86 { ARG_STR(O_DIRECT) },
/external/strace/tests-m32/
H A Dopenat.c86 { ARG_STR(O_DIRECT) },
/external/strace/tests-mx32/
H A Dopenat.c86 { ARG_STR(O_DIRECT) },

Completed in 1866 milliseconds

123