/freebsd-13-stable/contrib/pjdfstest/tests/open/ |
H A D | 02.t | 15 expect 0 open ${nx} O_CREAT 0620 18 expect ENAMETOOLONG open ${nxx} O_CREAT 0620
|
H A D | 03.t | 17 expect 0 open ${nx} O_CREAT 0642 20 expect ENAMETOOLONG open ${nxx} O_CREAT 0642
|
H A D | 09.t | 5 desc="O_CREAT is specified, the file does not exist, and the directory in which it is to be created has its immutable flag set" 28 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 32 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644 34 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 38 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 43 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 50 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644 52 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 61 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
|
H A D | 04.t | 5 desc="open returns ENOENT if a component of the path name that must exist does not exist or O_CREAT is not set and the named file does not exist" 16 expect ENOENT open ${n0}/${n1}/test O_CREAT 0644
|
H A D | 08.t | 5 desc="open returns EACCES when O_CREAT is specified, the file does not exist, and the directory in which it is to be created does not permit writing" 18 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_CREAT 0644
|
H A D | 00.t | 19 # POSIX: (If O_CREAT is specified and the file doesn't exist) [...] the access 25 expect 0 open ${n0} O_CREAT,O_WRONLY 0755 28 expect 0 open ${n0} O_CREAT,O_WRONLY 0151 31 expect 0 -U 077 open ${n0} O_CREAT,O_WRONLY 0151 34 expect 0 -U 070 open ${n0} O_CREAT,O_WRONLY 0345 37 expect 0 -U 0501 open ${n0} O_CREAT,O_WRONLY 0345 41 # POSIX: (If O_CREAT is specified and the file doesn't exist) [...] the user ID 46 expect 0 -u 65535 -g 65535 open ${n0} O_CREAT,O_WRONLY 0644 49 expect 0 -u 65535 -g 65534 open ${n0} O_CREAT,O_WRONLY 0644 53 expect 0 -u 65534 -g 65533 open ${n0} O_CREAT,O_WRONL [all...] |
H A D | 01.t | 19 expect ENOTDIR open ${n0}/${n1}/test O_CREAT 0644
|
H A D | 22.t | 5 desc="open returns EEXIST when O_CREAT and O_EXCL were specified and the file exists" 16 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
|
H A D | 15.t | 5 desc="open returns EROFS when O_CREAT is specified and the named file would reside on a read-only file system" 21 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644 24 expect EROFS open ${n0}/${n1} O_RDONLY,O_CREAT 0644
|
/freebsd-13-stable/contrib/libpcap/testprogs/ |
H A D | unix.h | 51 #define O_CREAT _O_CREAT macro
|
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
H A D | file.h | 32 #define FCREAT O_CREAT
|
/freebsd-13-stable/lib/libc/stdio/ |
H A D | flags.c | 69 o = O_CREAT | O_TRUNC; 75 o = O_CREAT | O_APPEND;
|
/freebsd-13-stable/contrib/netbsd-tests/kernel/kqueue/read/ |
H A D | t_file2.c | 59 RL(fd1 = open("afile", O_RDONLY|O_CREAT, 0644)); 60 RL(fd2 = open("bfile", O_RDONLY|O_CREAT, 0644));
|
/freebsd-13-stable/tests/sys/audit/ |
H A D | open.c | 75 ATF_REQUIRE((filedesc = open(path, O_CREAT, o_mode)) != -1); \ 115 ATF_REQUIRE((filedesc = open(path, O_CREAT, o_mode)) != -1); \ 162 OPEN_AT_TC_DEFINE(read_creat, "read,creat", O_RDONLY | O_CREAT, "fr") 164 OPEN_AT_TC_DEFINE(read_creat_trunc, "read,creat,trunc", O_RDONLY | O_CREAT 167 OPEN_AT_TC_DEFINE(write_creat, "write,creat", O_WRONLY | O_CREAT, "fw") 169 OPEN_AT_TC_DEFINE(write_creat_trunc, "write,creat,trunc", O_WRONLY | O_CREAT 172 OPEN_AT_TC_DEFINE(read_write_creat, "read,write,creat", O_RDWR | O_CREAT, "fw") 175 O_CREAT | O_TRUNC, "fw")
|
/freebsd-13-stable/tools/regression/nfsmmap/test1/ |
H A D | test1.c | 17 fd = open("test1.data", O_RDWR|O_CREAT, 0666); 40 fd2 = open("test1.scratch", O_RDWR|O_CREAT, 0666);
|
/freebsd-13-stable/tools/regression/nfsmmap/test2/ |
H A D | test2.c | 17 fd = open("test2.data", O_RDWR|O_CREAT, 0666); 38 fd2 = open("test2.scratch", O_RDWR|O_CREAT, 0666);
|
/freebsd-13-stable/lib/libc/compat-43/ |
H A D | creat.c | 55 O_CREAT | O_TRUNC, mode));
|
/freebsd-13-stable/lib/libc/sys/ |
H A D | open.c | 50 if ((flags & O_CREAT) != 0) {
|
H A D | openat.c | 53 if ((flags & O_CREAT) != 0) {
|
/freebsd-13-stable/lib/libutil/tests/ |
H A D | flopen_test.c | 55 fd = flopen(fn, O_RDWR|O_CREAT, 0640); 75 fd = open(fn, O_RDWR|O_CREAT, 0640); 102 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); 128 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); 160 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640);
|
/freebsd-13-stable/sys/security/audit/ |
H A D | audit_bsm_klib.c | 70 { (O_RDONLY | O_CREAT), AUE_OPEN_RC }, 71 { (O_RDONLY | O_CREAT | O_TRUNC), AUE_OPEN_RTC }, 74 { (O_RDWR | O_CREAT), AUE_OPEN_RWC }, 75 { (O_RDWR | O_CREAT | O_TRUNC), AUE_OPEN_RWTC }, 78 { (O_WRONLY | O_CREAT), AUE_OPEN_WC }, 79 { (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPEN_WTC }, 85 { (O_RDONLY | O_CREAT), AUE_OPENAT_RC }, 86 { (O_RDONLY | O_CREAT | O_TRUNC), AUE_OPENAT_RTC }, 89 { (O_RDWR | O_CREAT), AUE_OPENAT_RWC }, 90 { (O_RDWR | O_CREAT | O_TRUN [all...] |
/freebsd-13-stable/tools/regression/ufs/uprintf/ |
H A D | ufs_uprintf.c | 74 fd = open(BLOCKS_FILENAME, O_CREAT | O_TRUNC | O_RDWR, 0600); 140 fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0600); 153 fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0600);
|
/freebsd-13-stable/contrib/sendmail/libsm/ |
H A D | stdio.c | 75 oflags = O_RDWR | O_CREAT | O_TRUNC; 81 oflags = O_WRONLY | O_CREAT | O_TRUNC; 84 oflags = O_APPEND | O_WRONLY | O_CREAT; 87 oflags = O_APPEND | O_RDWR | O_CREAT; 415 oflags = O_RDWR | O_CREAT; 421 oflags = O_WRONLY | O_CREAT | O_TRUNC; 424 oflags = O_APPEND | O_WRONLY | O_CREAT; 427 oflags = O_APPEND | O_RDWR | O_CREAT; 484 if (flags & O_CREAT)
|
H A D | t-fopen.c | 27 out = sm_io_fopen("foo", O_WRONLY|O_APPEND|O_CREAT, 0666);
|
/freebsd-13-stable/lib/libpam/pam.d/ |
H A D | convert.pl | 71 sysopen(FILE, $service, O_RDWR|O_CREAT|O_TRUNC)
|