Home
last modified time | relevance | path

Searched refs:O_TRUNC (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/freebsd/contrib/pjdfstest/tests/open/
H A D07.t23 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
25 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC
27 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
30 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
32 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC
34 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
37 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
39 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC
41 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
H A D11.t32 expect EPERM open ${n0} O_RDONLY,O_TRUNC
34 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
36 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC
38 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
50 expect EPERM open ${n0} O_RDONLY,O_TRUNC
51 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC
52 expect EPERM open ${n0} O_WRONLY,O_APPEND,O_TRUNC
53 expect EPERM open ${n0} O_RDWR,O_APPEND,O_TRUNC
H A D10.t29 expect EPERM open ${n0} O_RDONLY,O_TRUNC
37 expect 0 open ${n0} O_RDONLY,O_TRUNC
47 expect EPERM open ${n0} O_RDONLY,O_TRUNC
55 expect 0 open ${n0} O_RDONLY,O_TRUNC
H A D13.t21 expect EISDIR open ${n0} O_RDONLY,O_TRUNC
22 expect EISDIR open ${n0} O_WRONLY,O_TRUNC
23 expect EISDIR open ${n0} O_RDWR,O_TRUNC
H A D14.t24 expect 0 open ${n0}/${n1} O_RDONLY,O_TRUNC
28 expect EROFS open ${n0}/${n1} O_RDONLY,O_TRUNC
/freebsd/sys/security/audit/
H A Daudit_bsm_klib.c68 { (O_RDONLY | O_CREAT | O_TRUNC), AUE_OPEN_RTC },
69 { (O_RDONLY | O_TRUNC), AUE_OPEN_RT },
72 { (O_RDWR | O_CREAT | O_TRUNC), AUE_OPEN_RWTC },
73 { (O_RDWR | O_TRUNC), AUE_OPEN_RWT },
76 { (O_WRONLY | O_CREAT | O_TRUNC), AUE_OPEN_WTC },
77 { (O_WRONLY | O_TRUNC), AUE_OPEN_WT },
83 { (O_RDONLY | O_CREAT | O_TRUNC), AUE_OPENAT_RTC },
84 { (O_RDONLY | O_TRUNC), AUE_OPENAT_RT },
87 { (O_RDWR | O_CREAT | O_TRUNC), AUE_OPENAT_RWTC },
88 { (O_RDWR | O_TRUNC), AUE_OPENAT_RWT },
[all …]
/freebsd/tests/sys/audit/
H A Dopen.c161 OPEN_AT_TC_DEFINE(read_trunc, "read,trunc", O_RDONLY | O_TRUNC, "fr")
163 | O_TRUNC, "fr")
166 OPEN_AT_TC_DEFINE(write_trunc, "write,trunc", O_WRONLY | O_TRUNC, "fw")
168 | O_TRUNC, "fw")
171 OPEN_AT_TC_DEFINE(read_write_trunc, "read,write,trunc", O_RDWR | O_TRUNC, "fr")
173 O_CREAT | O_TRUNC, "fw")
/freebsd/tools/test/stress2/misc/
H A Dbench.sh112 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
134 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
163 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
188 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
214 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
239 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC,
H A Dkevent5.sh145 if ((fd = open(file1, O_CREAT | O_TRUNC | O_RDWR, 0660)) ==
149 if ((fd = open(file2, O_CREAT | O_TRUNC | O_RDWR, 0660)) ==
H A Drename9.sh116 if ((fd = open(fromFile, O_RDWR | O_CREAT | O_TRUNC, 0644))
122 if ((fd = open(toFile, O_RDWR | O_CREAT | O_TRUNC, 0644))
H A Dtmpfs8.sh111 if ((fd = open(logfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1)
116 if ((fd = open(new, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1)
H A Dfragments.sh155 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0) {
179 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, 0600)) < 0) {
/freebsd/tools/regression/ufs/uprintf/
H A Dufs_uprintf.c72 fd = open(BLOCKS_FILENAME, O_CREAT | O_TRUNC | O_RDWR, 0600); in fill_blocks()
138 fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0600); in fill_inodes()
151 fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0600); in fill_inodes()
/freebsd/tools/test/stress2/tools/
H A Dbench.c75 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, in cr1()
106 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, in cr2()
135 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, in cr3()
168 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, in rn1()
200 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, in rw1()
240 if ((fd = open(file, O_RDWR | O_CREAT | O_TRUNC, in rw2()
/freebsd/tests/sys/file/
H A Dfspacectl_test.c197 O_CREAT | O_RDWR | O_TRUNC, 0600)) != -1); in ATF_TC_BODY()
222 O_CREAT | O_RDWR | O_TRUNC, 0600)) != -1); in ATF_TC_BODY()
246 O_CREAT | O_RDWR | O_TRUNC, 0600)) != -1); in ATF_TC_BODY()
270 O_CREAT | O_RDWR | O_TRUNC, 0600)) != -1); in ATF_TC_BODY()
295 O_CREAT | O_RDWR | O_TRUNC, 0600)) != -1); in ATF_TC_BODY()
320 O_CREAT | O_RDWR | O_TRUNC, 0600)) != -1); in ATF_TC_BODY()
/freebsd/contrib/openbsm/compat/
H A Dflopen.h61 trunc = (flags & O_TRUNC); in flopen()
62 flags &= ~O_TRUNC; in flopen()
H A Dpidfile.h130 O_WRONLY | O_CREAT | O_TRUNC | O_NONBLOCK | O_CLOEXEC, mode); in pidfile_open()
132 O_WRONLY | O_CREAT | O_TRUNC | O_NONBLOCK, mode); in pidfile_open()
/freebsd/lib/libutil/
H A Dflopen.c68 trunc = (flags & O_TRUNC); in vflopenat()
69 flags &= ~O_TRUNC; in vflopenat()
/freebsd/contrib/sendmail/libsm/
H A Dstdio.c75 oflags = O_RDWR | O_CREAT | O_TRUNC;
81 oflags = O_WRONLY | O_CREAT | O_TRUNC;
421 oflags = O_WRONLY | O_CREAT | O_TRUNC;
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c239 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDONLY); in try_file_ops()
240 CHECK_RESULT(openat(O_TRUNC | O_RDONLY), in try_file_ops()
243 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_WRONLY); in try_file_ops()
244 CHECK_RESULT(openat(O_TRUNC | O_WRONLY), in try_file_ops()
247 ret = openat(dfd_cap, "cap_ftruncate", O_TRUNC | O_RDWR); in try_file_ops()
248 CHECK_RESULT(openat(O_TRUNC | O_RDWR), in try_file_ops()
/freebsd/contrib/atf/atf-c/
H A Dutils.c180 const int output = open(destination, O_WRONLY | O_CREAT | O_TRUNC, 0777); in atf_utils_copy_file()
219 const int fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644); in atf_utils_create_file()
407 const int new_fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644); in atf_utils_redirect()
/freebsd/contrib/libfido2/fuzz/
H A Dlibfuzzer.c49 if ((fd = open(path, O_CREAT|O_TRUNC|O_WRONLY, 0644)) == -1) { in save_seed()
107 if ((fd = open(path, O_CREAT|O_TRUNC|O_WRONLY, 0644)) == -1) { in save_corpus()
/freebsd/lib/libc/sys/
H A Dcreat.c47 O_WRONLY | O_CREAT | O_TRUNC, mode)); in __creat()
/freebsd/contrib/libpcap/testprogs/
H A Dunix.h52 #define O_TRUNC _O_TRUNC macro
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_lockf.c133 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); in ATF_TC_BODY()
228 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); in ATF_TC_BODY()

12345678910>>...13