/freebsd/contrib/pjdfstest/tests/open/ |
H A D | 07.t | 23 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 D | 11.t | 32 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 D | 10.t | 29 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 D | 13.t | 21 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 D | 14.t | 24 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 D | audit_bsm_klib.c | 68 { (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 D | open.c | 161 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 D | bench.sh | 112 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 D | kevent5.sh | 145 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 D | rename9.sh | 116 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 D | tmpfs8.sh | 111 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 D | fragments.sh | 155 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/tests/sys/file/ |
H A D | fspacectl_test.c | 197 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/tools/test/stress2/tools/ |
H A D | bench.c | 75 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/tools/regression/ufs/uprintf/ |
H A D | ufs_uprintf.c | 72 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/contrib/openbsm/compat/ |
H A D | flopen.h | 61 trunc = (flags & O_TRUNC); in flopen() 62 flags &= ~O_TRUNC; in flopen()
|
H A D | pidfile.h | 130 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 D | flopen.c | 68 trunc = (flags & O_TRUNC); in vflopenat() 69 flags &= ~O_TRUNC; in vflopenat()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | stdio.c | 75 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 D | cap_test_capabilities.c | 239 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 D | utils.c | 180 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 D | libfuzzer.c | 49 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/contrib/netbsd-tests/kernel/ |
H A D | t_lockf.c | 133 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()
|
/freebsd/usr.bin/dtc/ |
H A D | dtc.cc | 185 outfile = open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666); in main() 216 depfile = fdopen(open(optarg, O_CREAT | O_TRUNC | O_WRONLY, 0666), "w"); in main()
|
/freebsd/tools/test/stress2/lib/ |
H A D | resources.c | 167 O_CREAT | O_TRUNC | O_WRONLY | in getdf() 187 O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) { in getdf()
|