Home
last modified time | relevance | path

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

1234

/glibc-2.36/io/
Dtst-openat.c85 int fd = openat (dir_fd, "some-file", O_CREAT|O_RDWR|O_EXCL, 0666); in do_test()
101 int fd2 = openat (fd, "should-not-work", O_CREAT|O_RDWR, 0666); in do_test()
185 fd = openat (dir_fd, "some-file", O_CREAT|O_RDWR|O_EXCL, 0666); in do_test()
197 fd = openat (-1, "some-file", O_CREAT|O_RDWR|O_EXCL, 0666); in do_test()
Dfcntl.h41 (((oflag) & O_CREAT) != 0 || ((oflag) & __O_TMPFILE) == __O_TMPFILE)
43 # define __OPEN_NEEDS_MODE(oflag) (((oflag) & O_CREAT) != 0)
Dcreat.c28 return __open (file, O_WRONLY|O_CREAT|O_TRUNC, mode); in creat()
Dcreat64.c27 return __open64 (file, O_WRONLY|O_CREAT|O_TRUNC, mode); in creat64()
/glibc-2.36/sysdeps/pthread/
Dsem_open.c64 if ((oflag & O_CREAT) == 0 || (oflag & O_EXCL) == 0) in __sem_open()
68 (oflag & ~(O_CREAT|O_ACCMODE)) | O_NOFOLLOW | O_RDWR); in __sem_open()
73 if ((oflag & O_CREAT) != 0 && errno == ENOENT) in __sem_open()
135 fd = __open (tmpfname, O_RDWR | O_CREAT | O_EXCL, mode); in __sem_open()
Dtst-sem7.c40 s = sem_open ("/glibc-tst-sem7", O_CREAT, 0600, 1); in do_test()
64 s2 = sem_open ("/glibc-tst-sem7", O_CREAT, 0600, 1); in do_test()
Dtst-sem4.c47 s = sem_open ("/glibc-tst-sem4", O_CREAT, 0600, 1); in do_test()
69 s2 = sem_open ("/glibc-tst-sem4", O_CREAT | O_EXCL, 0600, 1); in do_test()
Dtst-cancel19.c212 open (fname, O_CREAT, 0400); in do_test()
228 open (fname, O_CREAT, 0400); in do_test()
Dtst-sem8.c43 s = sem_open ("/glibc-tst-sem8", O_CREAT, 0600, 1); in do_test()
Dtst-sem9.c43 s = sem_open ("/glibc-tst-sem9", O_CREAT, 0600, 1); in do_test()
/glibc-2.36/rt/
Dtst-mqueue4.c45 mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
62 mqd_t q2 = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
83 q2 = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
113 q2 = mq_open (name, O_CREAT | O_RDWR, 0600, &attr); in do_test()
Dtst-mqueue2.c48 mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
61 mqd_t q2 = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
77 q2 = mq_open (name2, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
93 q2 = mq_open (name2, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test()
Dtst-shm.c134 fd = shm_open (shm_escape_name, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600); in do_test()
143 fd = shm_open (shm_test_name, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600); in do_test()
Dmq_open.c41 if (oflag & O_CREAT) in stub_warning()
/glibc-2.36/support/
Dshell-container.c115 dfd = open (dname, O_WRONLY | O_TRUNC | O_CREAT, 0600); in copy_func()
214 new_stdin = open (argv[i + 1], O_WRONLY|O_CREAT|O_TRUNC, 0777); in run_command_array()
220 new_stdout = open (argv[i + 1], O_WRONLY|O_CREAT|O_TRUNC, 0777); in run_command_array()
226 new_stdout = open (argv[i + 1], O_WRONLY|O_CREAT|O_APPEND, 0777); in run_command_array()
232 new_stderr = open (argv[i + 1], O_WRONLY|O_CREAT|O_TRUNC, 0777); in run_command_array()
Dsupport_write_file_string.c27 int fd = xopen (path, O_CREAT | O_TRUNC | O_WRONLY, 0666); in support_write_file_string()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dmq_open.c41 if (oflag & O_CREAT) in __mq_open()
61 if (oflag & O_CREAT) in ___mq_open_2()
Dcreat.c33 return __open (file, O_WRONLY | O_CREAT | O_TRUNC, mode); in __creat()
Dcreat64.c31 return __open64 (file, O_WRONLY | O_CREAT | O_TRUNC, mode); in __creat64()
/glibc-2.36/sysdeps/mach/hurd/bits/
Dfcntl.h51 #define O_CREAT 0x0010 /* Create file if it doesn't exist. */ macro
144 # define FCREAT O_CREAT
/glibc-2.36/posix/
Dtst-spawn-chdir.c157 O_WRONLY | O_CREAT | O_EXCL, 0777), 0); in do_test()
163 O_WRONLY | O_CREAT | O_EXCL, 0777), 0); in do_test()
/glibc-2.36/sysdeps/unix/sysv/linux/bits/
Dfcntl-linux.h46 #ifndef O_CREAT
47 # define O_CREAT 0100 /* Not fcntl. */ macro
/glibc-2.36/sysdeps/unix/sysv/linux/microblaze/bits/
Dfcntl.h23 #define O_CREAT 00000100 /* not fcntl. */ macro
/glibc-2.36/debug/
Dpcprofile.c42 fd = open (outfile, O_RDWR | O_CREAT, 0666); in install()
/glibc-2.36/sysdeps/unix/sysv/linux/hppa/bits/
Dfcntl.h23 #define O_CREAT 00000400 /* not fcntl */ macro

1234