Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 25 of 257) sorted by relevance

1234567891011

/external/libchrome/sandbox/linux/syscall_broker/
Dbroker_file_permission.cc159 if (!allow_create_ && (flags & O_CREAT)) { in CheckOpen()
164 if ((flags & O_CREAT) && !(flags & O_EXCL)) { in CheckOpen()
169 if (unlink_ && !(flags & O_CREAT)) { in CheckOpen()
182 const int known_flags = O_APPEND | O_ASYNC | O_CLOEXEC | O_CREAT | O_DIRECT | in CheckOpen()
Dbroker_file_permission_unittest.cc156 case O_CREAT: in CheckPerm()
164 ASSERT_TRUE(perm.CheckOpen(path, O_CREAT | O_EXCL | access_flags, in CheckPerm()
168 ASSERT_FALSE(perm.CheckOpen(path, O_CREAT | O_EXCL | access_flags, in CheckPerm()
219 ASSERT_FALSE(perm.CheckOpen(path, access_flags | O_CREAT, NULL, &unlink)); in CheckUnlink()
221 perm.CheckOpen(path, access_flags | O_CREAT | O_EXCL, NULL, &unlink)); in CheckUnlink()
/external/clang/test/Sema/
Denable_if.c4 #define O_CREAT 0x100 macro
10 int open(const char *pathname, int flags) __attribute__((enable_if(!(flags & O_CREAT), "must specif…
15 open("path", O_CREAT); // expected-error{{no matching function for call to 'open'}} in test1()
17 open("path", O_CREAT, 0660); in test1()
/external/kernel-headers/original/uapi/asm-generic/
Dfcntl.h22 #ifndef O_CREAT
23 #define O_CREAT 00000100 /* not fcntl */ macro
93 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/external/dnsmasq/contrib/dynamic-dnsmasq/
Ddynamic-dnsmasq.pl64 my $X = tie my %h, "DB_File", $accountdb, O_RDWR|O_CREAT, 0600, $DB_HASH;
143 my $X = tie my %h, "DB_File", $accountdb, O_RDWR|O_CREAT, 0600, $DB_HASH;
151 my $X = tie my %h, "DB_File", $accountdb, O_RDWR|O_CREAT, 0600, $DB_HASH;
163 my $X = tie my %h, "DB_File", $accountdb, O_RDWR|O_CREAT, 0600, $DB_HASH;
/external/toybox/toys/posix/
Dnohup.c27 if (-1 == open("nohup.out", O_CREAT|O_APPEND|O_WRONLY, in nohup_main()
33 xcreate(temp, O_CREAT|O_APPEND|O_WRONLY, 0600); in nohup_main()
/external/clang/test/Analysis/
Dunix-fns.c42 #ifndef O_CREAT
43 #define O_CREAT 0x0200 macro
55 …fd = open(path, O_CREAT); // expected-warning{{Call to 'open' requires a third argument when the '… in test_open()
/external/bison/lib/
Dopen.c59 if (flags & O_CREAT) in open()
107 if (flags & (O_CREAT | O_WRONLY | O_RDWR)) in open()
/external/valgrind/none/tests/linux/
Dpthread-stack.c75 fd = open(file_name, O_CREAT|O_WRONLY, in main()
86 fd = open(file_name, O_CREAT|O_RDWR, in main()
/external/valgrind/none/tests/solaris/
Dpthread-stack.c70 int fd = open(file_name, O_CREAT|O_WRONLY, in main()
80 fd = open(file_name, O_CREAT|O_RDWR, in main()
/external/opencv3/3rdparty/libtiff/
Dtif_open.c61 m = O_RDWR|O_CREAT; in _TIFFgetMode()
127 tif->tif_mode = m &~ (O_CREAT|O_TRUNC);
222 if (m&O_CREAT)
228 if ((m&O_CREAT))
264 if (m&O_CREAT)
Dtif_win32.c246 case O_RDWR|O_CREAT: dwMode = OPEN_ALWAYS; break; in TIFFOpen()
248 case O_RDWR|O_CREAT|O_TRUNC: dwMode = CREATE_ALWAYS; break; in TIFFOpen()
287 case O_RDWR|O_CREAT: dwMode = OPEN_ALWAYS; break; in TIFFOpenW()
289 case O_RDWR|O_CREAT|O_TRUNC: dwMode = CREATE_ALWAYS; break; in TIFFOpenW()
/external/pdfium/third_party/libtiff/
Dtif_open.c61 m = O_RDWR|O_CREAT; in _TIFFgetMode()
127 tif->tif_mode = m &~ (O_CREAT|O_TRUNC);
222 if (m&O_CREAT)
228 if ((m&O_CREAT))
264 if (m&O_CREAT)
/external/strace/xlat/
Dopen_mode_flags.h10 #if defined(O_CREAT) || (defined(HAVE_DECL_O_CREAT) && HAVE_DECL_O_CREAT)
11 XLAT(O_CREAT),
Dopenmodessol.in6 { 0x100, "O_CREAT" },
/external/protobuf/src/google/protobuf/testing/
Dgoogletest.cc159 O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0777); in CaptureTestStdout()
174 O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0777); in CaptureTestStderr()
/external/valgrind/none/tests/
Dfdleak_cmsg.c41 fd1 = DO( open(filea, O_RDWR | O_CREAT | O_TRUNC, 0750) ); in server()
42 fd2 = DO( open(fileb, O_RDWR | O_CREAT | O_TRUNC, 0750) ); in server()
/external/toybox/toys/pending/
Dbootchartd.c161 O_WRONLY | O_CREAT | O_TRUNC, 0644); in start_logging()
163 O_WRONLY | O_CREAT | O_TRUNC, 0644); in start_logging()
169 int kp_fd = xcreate("kernel_procs_acct", O_WRONLY | O_CREAT | O_TRUNC,0666); in start_logging()
/external/e2fsprogs/e2fsck/
Dlogfile.c251 fd = open(s0, O_WRONLY|O_CREAT|O_TRUNC, 0644); in save_output()
253 fd = open(s1, O_WRONLY|O_CREAT|O_TRUNC, 0644); in save_output()
255 fd = open(s2, O_WRONLY|O_CREAT|O_TRUNC, 0644); in save_output()
/external/strace/tests/
Dmq.c45 if (mq_open("/strace-mq.test", O_CREAT, S_IRWXU, 0) || in main()
Dmq.expected1 mq_open\("strace-mq.test", O_RDONLY\|O_CREAT, 0700, NULL\) += 0
/external/toybox/toys/other/
Dfallocate.c28 int fd = xcreate(*toys.optargs, O_RDWR | O_CREAT, 0644);
/external/bison/m4/
Dfcntl-o.m444 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
57 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
/external/bison/djgpp/
Dsubpipe.c151 from_in_fd = open(tmp_file_name[0], O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR); in create_subpipe()
182 …int to_in_fd = open(tmp_file_name[1], O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR); /* pipe from m4 to … in end_of_output_subpipe()
/external/zlib/src/examples/
Dgzlog.c354 while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) { in log_lock()
829 log->fd = open(log->path, O_RDWR | O_CREAT, 0644); in log_open()
953 fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in gzlog_compress()
963 fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in gzlog_compress()
1014 fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in gzlog_write()

1234567891011