/freebsd/contrib/kyua/utils/cmdline/ |
H A D | ui_test.cpp | 75 const int fd = ::open("/dev/tty", O_WRONLY); in reopen_stdout() 165 const int fd = ::open("test.txt", O_WRONLY | O_CREAT | O_TRUNC, 0755); in ATF_TEST_CASE_BODY()
|
/freebsd/contrib/less/ |
H A D | less.h | 266 #if defined(O_WRONLY) && defined(O_APPEND) 267 #define OPEN_APPEND (O_APPEND|O_WRONLY)
|
/freebsd/tools/test/stress2/testcases/mkfifo/ |
H A D | mkfifo.c | 74 if ((fd = open(path, O_WRONLY)) < 0) { in writer()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | stride_dd.c | 140 ofd = open(ofile, O_WRONLY | O_CREAT, 0666); in main()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/ |
H A D | seekflood.c | 50 if ((fd = open(buf, wr ? (O_WRONLY | O_CREAT) : O_RDONLY, in _open_file()
|
/freebsd/sbin/ipf/ipftest/ |
H A D | ip_fil.c | 138 fd = open(fname, O_WRONLY|O_APPEND); 347 fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600); in init_ifp() 358 fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0600); in init_ifp()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_setdomainname.c | 64 fd = open(DOMAIN_BACKUP_FILE, O_WRONLY | O_CREAT | O_EXCL, 0644); in backup_domain()
|
/freebsd/tools/test/stress2/misc/ |
H A D | mkfifo6.sh | 126 if ((fd = open(path, O_WRONLY)) == -1)
|
H A D | ftruncate.sh | 123 if ((fd[i] = open(p->fts_path, O_WRONLY)) == -1)
|
H A D | mkfifo7.sh | 147 if ((fd = open(path, O_WRONLY)) == -1)
|
/freebsd/sbin/ggate/ggated/ |
H A D | ggated.c | 192 flags = O_WRONLY; in line_parse() 315 if (ex->e_flags == O_WRONLY) { in exports_check() 338 } else if (ex->e_flags == O_WRONLY) { in exports_check() 348 flags = O_WRONLY; in exports_check()
|
/freebsd/contrib/ntp/libntp/lib/isc/unix/ |
H A D | file.c | 489 flags = O_WRONLY | O_TRUNC; in isc_file_safecreate() 491 flags = O_WRONLY | O_CREAT | O_EXCL; in isc_file_safecreate()
|
/freebsd/bin/cp/ |
H A D | utils.c | 188 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0); in copy_file() 191 to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT, in copy_file()
|
/freebsd/sbin/nvmecontrol/ |
H A D | telemetry.c | 132 fdout = open(opt.outfn, O_WRONLY | O_CREAT, 0664); in telemetry_log()
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_ro.c | 114 ATF_REQUIRE_ERRNO(expected, rump_sys_open(AFILE, O_WRONLY) == -1); in fileio()
|
/freebsd/contrib/dma/ |
H A D | local.c | 153 mbox = open_locked(fn, O_WRONLY|O_APPEND); in deliver_local()
|
/freebsd/usr.sbin/fwcontrol/ |
H A D | fwmpegts.c | 165 fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660); in mpegtsrecv()
|
/freebsd/lib/libutil/ |
H A D | uucplock.c | 75 if ((tmpfd = open(lcktmpname, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC, in uu_lock()
|
/freebsd/sys/contrib/openzfs/etc/systemd/system-generators/ |
H A D | zfs-mount-generator.c | 310 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, "w", in line_worker() 619 O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, "w", 0644); in line_worker() 781 int kmfd = open("/dev/kmsg", O_WRONLY | O_CLOEXEC); in main()
|
/freebsd/contrib/sendmail/mail.local/ |
H A D | mail.local.c | 1171 mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY, 1245 mbfd = open(path, O_APPEND|O_WRONLY, 0); 1425 mbfd = open(path, O_WRONLY, 0); 1552 fd = open(LockName, O_WRONLY|O_EXCL|O_CREAT, LOCKFILE_PMODE);
|
/freebsd/contrib/libfido2/tools/ |
H A D | util.c | 76 if ((fd = open(file, O_WRONLY | O_CREAT, 0600)) < 0) in open_write() 599 if ((fd = open(path, O_WRONLY | O_CREAT, 0600)) < 0) { in write_file()
|
/freebsd/bin/pax/ |
H A D | file_subs.c | 87 if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, in file_creat() 105 if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC, in file_creat()
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_acl_platform_posix1e.c | 408 fd = open("f1", O_WRONLY | O_CREAT | O_EXCL, 0777); 494 fd = open("d/f1", O_WRONLY | O_CREAT | O_EXCL, 0777);
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | test-mem.c | 75 fd = open("/dev/stdout", O_WRONLY, 0600); in segv_handler()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mkfifo.c | 190 ATF_REQUIRE_ERRNO(ENXIO, open(path, O_WRONLY | O_NONBLOCK) == -1); in ATF_TC_BODY()
|