Searched refs:O_CREAT (Results 1 - 25 of 540) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/pjdfstest/tests/open/
H A D02.t15 expect 0 open ${nx} O_CREAT 0620
18 expect ENAMETOOLONG open ${nxx} O_CREAT 0620
H A D03.t17 expect 0 open ${nx} O_CREAT 0642
20 expect ENAMETOOLONG open ${nxx} O_CREAT 0642
H A D09.t5 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 D04.t5 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 D08.t5 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 D00.t19 # 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 D01.t19 expect ENOTDIR open ${n0}/${n1}/test O_CREAT 0644
H A D22.t5 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 D15.t5 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 Dunix.h51 #define O_CREAT _O_CREAT macro
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/
H A Dfile.h32 #define FCREAT O_CREAT
/freebsd-13-stable/lib/libc/stdio/
H A Dflags.c69 o = O_CREAT | O_TRUNC;
75 o = O_CREAT | O_APPEND;
/freebsd-13-stable/contrib/netbsd-tests/kernel/kqueue/read/
H A Dt_file2.c59 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 Dopen.c75 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 Dtest1.c17 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 Dtest2.c17 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 Dcreat.c55 O_CREAT | O_TRUNC, mode));
/freebsd-13-stable/lib/libc/sys/
H A Dopen.c50 if ((flags & O_CREAT) != 0) {
H A Dopenat.c53 if ((flags & O_CREAT) != 0) {
/freebsd-13-stable/lib/libutil/tests/
H A Dflopen_test.c55 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 Daudit_bsm_klib.c70 { (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 Dufs_uprintf.c74 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 Dstdio.c75 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 Dt-fopen.c27 out = sm_io_fopen("foo", O_WRONLY|O_APPEND|O_CREAT, 0666);
/freebsd-13-stable/lib/libpam/pam.d/
H A Dconvert.pl71 sysopen(FILE, $service, O_RDWR|O_CREAT|O_TRUNC)

Completed in 150 milliseconds

1234567891011>>