Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 126 – 150 of 399) sorted by relevance

12345678910>>...16

/freebsd/contrib/kyua/utils/cmdline/
H A Dui_test.cpp75 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 Dless.h266 #if defined(O_WRONLY) && defined(O_APPEND)
267 #define OPEN_APPEND (O_APPEND|O_WRONLY)
/freebsd/tools/test/stress2/testcases/mkfifo/
H A Dmkfifo.c74 if ((fd = open(path, O_WRONLY)) < 0) { in writer()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dstride_dd.c140 ofd = open(ofile, O_WRONLY | O_CREAT, 0666); in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/
H A Dseekflood.c50 if ((fd = open(buf, wr ? (O_WRONLY | O_CREAT) : O_RDONLY, in _open_file()
/freebsd/sbin/ipf/ipftest/
H A Dip_fil.c138 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 Dt_setdomainname.c64 fd = open(DOMAIN_BACKUP_FILE, O_WRONLY | O_CREAT | O_EXCL, 0644); in backup_domain()
/freebsd/tools/test/stress2/misc/
H A Dmkfifo6.sh126 if ((fd = open(path, O_WRONLY)) == -1)
H A Dftruncate.sh123 if ((fd[i] = open(p->fts_path, O_WRONLY)) == -1)
H A Dmkfifo7.sh147 if ((fd = open(path, O_WRONLY)) == -1)
/freebsd/sbin/ggate/ggated/
H A Dggated.c192 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 Dfile.c489 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 Dutils.c188 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 Dtelemetry.c132 fdout = open(opt.outfn, O_WRONLY | O_CREAT, 0664); in telemetry_log()
/freebsd/contrib/netbsd-tests/fs/vfs/
H A Dt_ro.c114 ATF_REQUIRE_ERRNO(expected, rump_sys_open(AFILE, O_WRONLY) == -1); in fileio()
/freebsd/contrib/dma/
H A Dlocal.c153 mbox = open_locked(fn, O_WRONLY|O_APPEND); in deliver_local()
/freebsd/usr.sbin/fwcontrol/
H A Dfwmpegts.c165 fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660); in mpegtsrecv()
/freebsd/lib/libutil/
H A Duucplock.c75 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 Dzfs-mount-generator.c310 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 Dmail.local.c1171 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 Dutil.c76 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 Dfile_subs.c87 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 Dtest_acl_platform_posix1e.c408 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 Dtest-mem.c75 fd = open("/dev/stdout", O_WRONLY, 0600); in segv_handler()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mkfifo.c190 ATF_REQUIRE_ERRNO(ENXIO, open(path, O_WRONLY | O_NONBLOCK) == -1); in ATF_TC_BODY()

12345678910>>...16