Defined in 6 files as a macro:
Referenced in 329 files:
- bin/cat/cat.c, line 405
- bin/cp/utils.c, 3 times
- bin/dd/dd.c, line 201
- bin/mv/mv.c, line 295
- bin/pax/ar_io.c, line 68
- bin/pax/file_subs.c, 2 times
- bin/sh/redir.c, 4 times
- cddl/contrib/opensolaris/cmd/dtrace/dtrace.c, 2 times
- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c, line 81
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_options.c, 2 times
- cddl/contrib/opensolaris/tools/ctf/dump/dump.c, line 1013
- cddl/usr.sbin/zfsd/case_file.cc, line 863
- contrib/apr/file_io/unix/open.c, line 110
- contrib/atf/atf-c++/macros_test.cpp, line 55
- contrib/atf/atf-c/detail/fs_test.c, line 64
- contrib/atf/atf-c/detail/process.c, line 349
- contrib/atf/atf-c/detail/process_test.c, 5 times
- contrib/atf/atf-c/macros_test.c, line 59
- contrib/atf/atf-c/tc.c, line 215
- contrib/atf/atf-c/utils.c, 3 times
- contrib/atf/test-programs/c_helpers.c, line 61
- contrib/binutils/bfd/opncls.c, line 319
- contrib/binutils/bfd/sysdep.h, 2 times
- contrib/binutils/binutils/rename.c, line 61
- contrib/binutils/binutils/resrc.c, line 260
- contrib/bmake/filemon/filemon_ktrace.c, 6 times
- contrib/bzip2/bzip2.c, line 965
- contrib/capsicum-test/capability-fd.cc, 9 times
- contrib/dialog/util.c, line 374
- contrib/dma/local.c, line 152
- contrib/dma/spool.c, line 434
- contrib/elftoolchain/elfcopy/main.c, line 587
- contrib/file/src/apprentice.c, line 3240
- contrib/file/src/seccomp.c, 3 times
- contrib/gdb/gdb/auxv.c, line 61
- contrib/gdb/gdb/inflow.c, 2 times
- contrib/gdb/gdb/nto-procfs.c, 2 times
- contrib/gdb/gdb/proc-api.c, line 666
- contrib/gdb/gdb/procfs.c, line 596
- contrib/gdb/gdb/remote-fileio.c, 3 times
- contrib/gdb/gdb/remote-rdp.c, 4 times
- contrib/gdb/gdb/uw-thread.c, line 255
- contrib/ipfilter/ip_fil.c, 3 times
- contrib/ipfilter/tools/ipfs.c, 2 times
- contrib/ipfilter/tools/ipmon.c, line 1455
- contrib/ipfilter/tools/ipsyncs.c, 2 times
- contrib/kyua/utils/cmdline/parser_test.cpp, line 146
- contrib/kyua/utils/cmdline/ui_test.cpp, 2 times
- contrib/kyua/utils/process/child.cpp, line 120
- contrib/kyua/utils/process/child_test.cpp, line 288
- contrib/kyua/utils/process/systembuf_test.cpp, line 97
- contrib/less/less.h, 2 times
- contrib/lib9p/backend/fs.c, 2 times
- contrib/libarchive/libarchive/archive_write_disk_posix.c, 3 times
- contrib/libarchive/libarchive/archive_write_open_filename.c, line 143
- contrib/libarchive/libarchive/test/main.c, line 1704
- contrib/libarchive/libarchive/test/test_acl_platform_posix1e.c, 2 times
- contrib/libarchive/libarchive/test/test_read_data_large.c, 2 times
- contrib/libarchive/libarchive/test/test_read_large.c, 2 times
- contrib/libarchive/libarchive/test/test_sparse_basic.c, line 289
- contrib/libarchive/libarchive/test/test_write_disk_failures.c, line 44
- contrib/libarchive/test_utils/test_main.c, line 1954
- contrib/libucl/tests/test_basic.c, line 169
- contrib/libxo/libxo/xo_syslog.c, line 257
- contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp, line 472
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp, line 159
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_rtems.cpp, line 201
- contrib/llvm-project/libcxx/src/filesystem/operations.cpp, line 799
- contrib/llvm-project/lldb/source/Host/common/File.cpp, line 738
- contrib/llvm-project/lldb/source/Host/common/FileAction.cpp, line 43
- contrib/llvm-project/lldb/source/Host/common/FileSystem.cpp, line 377
- contrib/llvm-project/lldb/source/Host/posix/PipePosix.cpp, line 177
- contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp, 2 times
- contrib/mandoc/catman.c, line 133
- contrib/netbsd-tests/fs/ffs/t_fifos.c, 2 times
- contrib/netbsd-tests/fs/fifofs/t_fifo.c, 2 times
- contrib/netbsd-tests/fs/union/t_pr.c, 2 times
- contrib/netbsd-tests/fs/vfs/t_mtime_otrunc.c, line 54
- contrib/netbsd-tests/fs/vfs/t_renamerace.c, line 51
- contrib/netbsd-tests/fs/vfs/t_ro.c, line 114
- contrib/netbsd-tests/kernel/kqueue/read/t_file.c, line 66
- contrib/netbsd-tests/kernel/kqueue/t_vnode.c, line 63
- contrib/netbsd-tests/kernel/t_sysv.c, line 112
- contrib/netbsd-tests/lib/libc/db/h_db.c, line 133
- contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c, 5 times
- contrib/netbsd-tests/lib/libc/gen/t_setdomainname.c, line 64
- contrib/netbsd-tests/lib/libc/sys/t_dup.c, line 57
- contrib/netbsd-tests/lib/libc/sys/t_mkfifo.c, line 190
- contrib/netbsd-tests/lib/libc/sys/t_mmap.c, line 304
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, 3 times
- contrib/netbsd-tests/lib/libc/sys/t_write.c, line 174
- contrib/netbsd-tests/lib/libposix/t_rename.c, line 57
- contrib/ntp/lib/isc/unix/file.c, 2 times
- contrib/ntp/lib/isc/win32/file.c, 2 times
- contrib/ntp/ntpd/ntp_control.c, line 982
- contrib/ntp/ntpd/refclock_acts.c, line 498
- contrib/ntp/ntpd/refclock_true.c, line 241
- contrib/ntp/util/tg.c, line 325
- contrib/ntp/util/tg2.c, line 974
- contrib/ntp/util/tickadj.c, line 550
- contrib/nvi/common/exf.c, 2 times
- contrib/nvi/ex/ex_mkexrc.c, line 64
- contrib/ofed/libibnetdisc/ibnetdisc_cache.c, line 921
- contrib/ofed/opensm/opensm/main.c, line 521
- contrib/openbsm/bin/auditdistd/receiver.c, 2 times
- contrib/openbsm/compat/pidfile.h, 2 times
- contrib/openbsm/test/bsm/generate.c, line 73
- contrib/opie/libopie/lock.c, line 151
- contrib/opie/libopie/logwtmp.c, 2 times
- contrib/pjdfstest/pjdfstest.c, 2 times
- contrib/sendmail/include/sm/conf.h, line 2906
- contrib/sendmail/libsm/stdio.c, 5 times
- contrib/sendmail/libsm/t-fopen.c, line 27
- contrib/sendmail/libsmutil/safefile.c, 2 times
- contrib/sendmail/mail.local/mail.local.c, 4 times
- contrib/sendmail/src/conf.c, line 5756
- contrib/sendmail/src/deliver.c, line 5499
- contrib/sendmail/src/main.c, 2 times
- contrib/sendmail/src/queue.c, 5 times
- contrib/sendmail/src/savemail.c, line 418
- contrib/sendmail/src/util.c, line 591
- contrib/sendmail/test/t_exclopen.c, line 87
- contrib/subversion/subversion/libsvn_subr/cmdline.c, 2 times
- contrib/tcpdump/tcpdump.c, 2 times
- contrib/tcsh/dotlock.c, line 79
- contrib/tcsh/sh.c, line 280
- contrib/tcsh/sh.sem.c, 2 times
- contrib/tcsh/tc.os.h, line 357
- contrib/unbound/daemon/unbound.c, line 697
- contrib/wpa/src/utils/wpa_debug.c, 2 times
- contrib/xz/src/common/tuklib_open_stdxxx.c, line 39
- contrib/xz/src/xz/file_io.c, line 889
- crypto/heimdal/appl/ftp/ftpd/logwtmp.c, 2 times
- crypto/heimdal/appl/login/utmp_login.c, 2 times
- crypto/heimdal/appl/login/utmpx_login.c, line 59
- crypto/heimdal/appl/push/push.c, line 260
- crypto/heimdal/appl/rcp/rcp.c, line 564
- crypto/heimdal/appl/telnet/telnetd/sys_term.c, 4 times
- crypto/heimdal/kdc/process.c, line 276
- crypto/heimdal/lib/asn1/check-common.c, line 183
- crypto/heimdal/lib/krb5/fcache.c, 3 times
- crypto/heimdal/lib/krb5/log.c, line 316
- crypto/heimdal/lib/roken/dumpdata.c, line 47
- crypto/heimdal/lib/roken/simple_exec.c, 2 times
- crypto/heimdal/lib/roken/socket_wrapper.c, 2 times
- crypto/heimdal/lib/roken/test-mem.c, line 75
- crypto/openssh/authfile.c, line 60
- crypto/openssh/log.c, line 373
- crypto/openssh/loginrec.c, 3 times
- crypto/openssh/openbsd-compat/bsd-misc.c, line 125
- crypto/openssh/openbsd-compat/port-solaris.c, line 174
- crypto/openssh/scp.c, line 1436
- crypto/openssh/sftp-client.c, line 1233
- crypto/openssh/sftp-server.c, line 227
- crypto/openssh/ssh-keygen.c, 4 times
- crypto/openssh/ssh.c, line 1965
- crypto/openssh/sshkey-xmss.c, line 616
- crypto/openssh/sshpty.c, line 140
- crypto/openssl/apps/apps.c, line 2594
- crypto/openssl/crypto/rand/randfile.c, line 203
- lib/geom/eli/geom_eli.c, 2 times
- lib/geom/part/geom_part.c, 2 times
- lib/libc/compat-43/creat.c, line 54
- lib/libc/db/btree/bt_open.c, line 197
- lib/libc/db/hash/hash.c, line 108
- lib/libc/db/test/dbtest.c, line 117
- lib/libc/gen/pututxline.c, line 277
- lib/libc/gen/syslog.c, line 343
- lib/libc/gmon/gmon.c, 2 times
- lib/libc/stdio/flags.c, 2 times
- lib/libc/stdio/fmemopen.c, line 143
- lib/libc/tests/gen/dir2_test.c, 2 times
- lib/libc/tests/gen/dlopen_empty_test.c, line 70
- lib/libc/tests/stdio/fdopen_test.c, 5 times
- lib/libc/tests/stdio/fopen_test.c, 2 times
- lib/libc/tests/sys/sendfile_test.c, line 1064
- lib/libcasper/services/cap_sysctl/tests/sysctl_test.c, line 91
- lib/libdpv/dpv.c, line 590
- lib/libfetch/ftp.c, 2 times
- lib/libpmcstat/libpmcstat_logging.c, line 511
- lib/libsecureboot/openpgp/dearmor.c, line 125
- lib/libsysdecode/flags.c, line 436
- lib/libutil/pidfile.c, line 156
- lib/libutil/uucplock.c, line 78
- libexec/atrun/atrun.c, line 261
- libexec/ftpd/ftpd.c, 2 times
- libexec/phttpget/phttpget.c, line 600
- libexec/tftpd/tftpd.c, 3 times
- sbin/decryptcore/decryptcore.c, line 401
- sbin/dhclient/bpf.c, line 145
- sbin/dump/tape.c, 2 times
- sbin/gbde/gbde.c, line 419
- sbin/ggate/ggated/ggated.c, 4 times
- sbin/ggate/ggatel/ggatel.c, line 81
- sbin/growfs/growfs.c, line 1578
- sbin/hastd/hooks.c, line 119
- sbin/init/init.c, 2 times
- sbin/nvmecontrol/modules/wdc/wdc.c, 2 times
- sbin/reboot/reboot.c, line 141
- sbin/recoverdisk/recoverdisk.c, line 518
- sbin/restore/dirs.c, line 687
- sbin/restore/tape.c, line 710
- sbin/route/route.c, line 221
- sbin/savecore/savecore.c, 4 times
- sbin/shutdown/shutdown.c, line 557
- sbin/swapon/swapon.c, line 749
- sbin/veriexec/veriexec.c, line 71
- stand/ficl/loader.c, line 535
- stand/liblua/lstd.c, 2 times
- sys/compat/linux/linux_file.c, 4 times
- sys/compat/linux/linux_misc.c, 2 times
- sys/contrib/openzfs/cmd/zpool/zpool_vdev.c, line 842
- sys/contrib/openzfs/lib/libzfs/libzfs_util.c, line 893
- sys/contrib/openzfs/lib/libzpool/kernel.c, line 1077
- sys/contrib/openzfs/module/os/freebsd/zfs/vdev_file.c, line 81
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c, line 6204
- sys/contrib/openzfs/module/os/linux/zfs/vdev_file.c, line 81
- sys/contrib/openzfs/module/os/linux/zfs/zfs_file_os.c, line 48
- sys/contrib/openzfs/tests/zfs-tests/cmd/badsend/badsend.c, line 82
- sys/contrib/openzfs/tests/zfs-tests/cmd/stride_dd/stride_dd.c, line 140
- sys/contrib/openzfs/tests/zfs-tests/cmd/user_ns_exec/user_ns_exec.c, line 98
- sys/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/xattrtest.c, 2 times
- sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/cp_files.c, line 43
- sys/contrib/openzfs/tests/zfs-tests/tests/functional/ctime/ctime.c, 2 times
- sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/tmpfile_test.c, line 37
- sys/contrib/zlib/gzlib.c, line 235
- sys/contrib/zstd/zlibWrapper/gzlib.c, line 235
- sys/dev/sound/midi/sequencer.c, line 1239
- sys/fs/fuse/fuse_file.h, line 81
- sys/fs/unionfs/union_subr.c, line 913
- sys/kern/vfs_syscalls.c, 2 times
- sys/security/audit/audit_bsm_klib.c, 10 times
- tests/sys/aio/aio_test.c, line 401
- tests/sys/audit/administrative.c, line 330
- tests/sys/audit/open.c, 4 times
- tests/sys/cddl/zfs/bin/mkfile.c, line 49
- tests/sys/cddl/zfs/tests/ctime/ctime_001_pos.c, 2 times
- tests/sys/fifo/fifo_io.c, line 140
- tests/sys/fifo/fifo_kqueue.c, 6 times
- tests/sys/fifo/fifo_misc.c, line 90
- tests/sys/fifo/fifo_open.c, 2 times
- tests/sys/file/fcntlflags_test.c, line 106
- tests/sys/fs/fusefs/create.cc, line 400
- tests/sys/fs/fusefs/default_permissions.cc, 3 times
- tests/sys/fs/fusefs/flush.cc, 7 times
- tests/sys/fs/fusefs/fsync.cc, line 278
- tests/sys/fs/fusefs/interrupt.cc, line 516
- tests/sys/fs/fusefs/open.cc, 14 times
- tests/sys/fs/fusefs/release.cc, 4 times
- tests/sys/fs/fusefs/utils.cc, line 502
- tests/sys/fs/fusefs/write.cc, 13 times
- tests/sys/posixshm/posixshm_test.c, line 494
- tests/sys/vfs/lookup_cap_dotdot.c, line 50
- tools/regression/aio/aiop/aiop.c, line 174
- tools/regression/poll/pipepoll.c, 2 times
- tools/regression/poll/pipeselect.c, 2 times
- tools/regression/priv/priv_vfs_read_write.c, 12 times
- tools/regression/security/cap_test/cap_test_capabilities.c, 14 times
- tools/regression/security/open_to_operation/open_to_operation.c, 12 times
- tools/regression/sockets/zerosend/zerosend.c, line 226
- tools/tools/atsectl/atsectl.c, line 111
- tools/tools/cfi/cfi.c, 2 times
- tools/tools/intel-ucode-split/intel-ucode-split.c, line 188
- tools/tools/net80211/w00t/prga/prga.c, line 126
- tools/tools/net80211/wesside/wesside/wesside.c, 5 times
- tools/tools/syscall_timing/syscall_timing.c, line 1121
- usr.bin/at/at.c, 2 times
- usr.bin/bsdiff/bspatch/bspatch.c, line 154
- usr.bin/chkey/chkey.c, line 200
- usr.bin/dtc/dtc.cc, 2 times
- usr.bin/gencat/gencat.c, line 178
- usr.bin/gzip/gzip.c, 2 times
- usr.bin/ktrace/ktrace.c, 2 times
- usr.bin/lockf/lockf.c, line 88
- usr.bin/mail/main.c, line 143
- usr.bin/mail/quit.c, line 233
- usr.bin/mail/v7.local.c, line 76
- usr.bin/mkimg/mkimg.c, line 600
- usr.bin/mkuzip/mkuzip.c, line 304
- usr.bin/morse/morse.c, 2 times
- usr.bin/patch/inp.c, line 295
- usr.bin/patch/util.c, line 170
- usr.bin/script/script.c, line 171
- usr.bin/sed/compile.c, 2 times
- usr.bin/sed/process.c, 2 times
- usr.bin/tcopy/tcopy.c, line 131
- usr.bin/tee/tee.c, 2 times
- usr.bin/touch/touch.c, line 179
- usr.bin/truncate/truncate.c, 2 times
- usr.bin/usbhidaction/usbhidaction.c, line 170
- usr.bin/uudecode/uudecode.c, line 261
- usr.bin/wall/ttymsg.c, line 91
- usr.bin/write/write.c, line 303
- usr.sbin/acpi/acpidb/acpidb.c, line 429
- usr.sbin/acpi/acpidump/acpi.c, 2 times
- usr.sbin/bhyve/audio.c, line 102
- usr.sbin/bhyve/snapshot.c, line 1348
- usr.sbin/bluetooth/bcmfw/bcmfw.c, 2 times
- usr.sbin/boot0cfg/boot0cfg.c, line 384
- usr.sbin/bsdinstall/partedit/gpart_ops.c, line 715
- usr.sbin/btxld/btxld.c, line 257
- usr.sbin/cpucontrol/cpucontrol.c, line 303
- usr.sbin/cron/lib/misc.c, line 415
- usr.sbin/cxgbetool/cxgbetool.c, line 2062
- usr.sbin/daemon/daemon.c, line 593
- usr.sbin/extattrctl/extattrctl.c, line 99
- usr.sbin/fifolog/lib/fifolog_create.c, 2 times
- usr.sbin/fwcontrol/fwdv.c, line 113
- usr.sbin/fwcontrol/fwmpegts.c, line 170
- usr.sbin/ipfwpcap/ipfwpcap.c, line 99
- usr.sbin/jail/command.c, line 646
- usr.sbin/keyserv/keyserv.c, line 294
- usr.sbin/lpr/common_source/common.c, 2 times
- usr.sbin/lpr/common_source/ctlinfo.c, line 487
- usr.sbin/lpr/lpc/cmds.c, line 383
- usr.sbin/lpr/lpd/lpd.c, line 285
- usr.sbin/lpr/lpd/printjob.c, 7 times
- usr.sbin/lpr/lpd/recvjob.c, 3 times
- usr.sbin/lpr/lpr/lpr.c, line 644
- usr.sbin/lptcontrol/lptcontrol.c, line 101
- usr.sbin/pmc/cmd_pmc_filter.cc, line 355
- usr.sbin/ppp/ipcp.c, line 340
- usr.sbin/pw/pw_log.c, line 60
- usr.sbin/pwd_mkdb/pwd_mkdb.c, 2 times
- usr.sbin/rwhod/rwhod.c, line 412
- usr.sbin/syslogd/syslogd.c, 2 times
- usr.sbin/tzsetup/tzsetup.c, 2 times
- usr.sbin/uathload/uathload.c, line 183
- usr.sbin/usbdump/usbdump.c, 2 times