Defined in 3 files as a macro:
Referenced in 355 files:
- bin/ksh/io.c, 2 times
- bin/sh/redir.c, 4 times
- crypto/external/bsd/heimdal/dist/lib/base/db.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/kadm5/log.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/roken/flock.c, line 96
- crypto/external/bsd/openssh/dist/misc.c, line 1452
- crypto/external/bsd/openssh/dist/sftp-server.c, line 227
- crypto/external/bsd/openssl.old/dist/crypto/o_fopen.c, line 71
- crypto/external/bsd/openssl/dist/crypto/o_fopen.c, line 71
- external/apache2/llvm/dist/libcxx/include/errno.h, line 271
- external/bsd/cron/dist/closeall.c, line 28
- external/bsd/fetch/dist/libfetch/common.c, 2 times
- external/bsd/fetch/dist/libfetch/ftp.c, 6 times
- external/bsd/libarchive/dist/cpio/cpio_windows.c, 3 times
- external/bsd/libarchive/dist/libarchive/archive_read_disk_windows.c, line 780
- external/bsd/libarchive/dist/libarchive/archive_windows.c, 12 times
- external/bsd/libarchive/dist/libarchive/archive_write_disk_windows.c, 2 times
- external/bsd/libarchive/dist/tar/bsdtar_windows.c, 3 times
- external/bsd/libbind/dist/isc/ev_connects.c, line 169
- external/bsd/libbind/dist/isc/ev_files.c, line 175
- external/bsd/libbind/dist/isc/eventlib.c, 2 times
- external/bsd/libbind/dist/isc/logging.c, line 646
- external/bsd/libevent/dist/epoll.c, line 339
- external/bsd/libevent/dist/kqueue.c, line 371
- external/bsd/libevent/dist/test/regress.c, line 1253
- external/bsd/libfido2/dist/fuzz/preload-fuzz.c, line 95
- external/bsd/libfido2/dist/fuzz/preload-snoop.c, 4 times
- external/bsd/nsd/dist/netio.c, line 201
- external/bsd/ntp/dist/include/timepps-SCO.h, 7 times
- external/bsd/ntp/dist/include/timepps-Solaris.h, 6 times
- external/bsd/ntp/dist/include/timepps-SunOS.h, 7 times
- external/bsd/ntp/dist/lib/isc/unix/errno2result.c, line 47
- external/bsd/ntp/dist/lib/isc/win32/errno2result.c, line 47
- external/bsd/ntp/dist/ntpd/ntp_io.c, line 3763
- external/bsd/ntp/dist/sntp/libevent/epoll.c, line 328
- external/bsd/ntp/dist/sntp/libevent/kqueue.c, line 356
- external/bsd/ntp/dist/sntp/libevent/test/regress.c, line 1062
- external/bsd/openldap/dist/libraries/liblutil/utils.c, line 452
- external/bsd/tmux/dist/file.c, 10 times
- external/bsd/wpa/dist/src/radius/radius_client.c, line 345
- external/cddl/osnet/dist/common/unicode/u8_textprep.c, 5 times
- external/cddl/osnet/dist/lib/libdtrace/common/dt_provider.c, 2 times
- external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c, line 505
- external/cddl/osnet/dist/uts/common/fs/zfs/dmu_object.c, 2 times
- external/cddl/osnet/dist/uts/common/fs/zfs/dmu_send.c, line 2901
- external/cddl/osnet/dist/uts/common/fs/zfs/spa.c, 3 times
- external/cddl/osnet/dist/uts/common/fs/zfs/vdev.c, 2 times
- external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ioctl.c, 4 times
- external/cddl/osnet/dist/uts/common/fs/zfs/zfs_onexit.c, 4 times
- external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/closeout.c, line 78
- external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/fwriteerror.c, line 74
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/closeout.c, line 78
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/fwriteerror.c, line 74
- external/gpl2/gettext/dist/gettext-tools/libgettextpo/fwriteerror.c, line 74
- external/gpl2/gettext/dist/gnulib-local/lib/closeout.c, line 78
- external/gpl2/gmake/dist/job.c, 2 times
- external/gpl2/gmake/dist/main.c, line 1683
- external/gpl2/gmake/dist/w32/compat/dirent.c, line 158
- external/gpl2/lvm2/dist/tools/lvmcmdline.c, 2 times
- external/gpl2/rcs/dist/src/rcsutil.c, 2 times
- external/gpl2/xcvs/dist/lib/closeout.c, line 94
- external/gpl3/binutils.old/dist/libiberty/strerror.c, 2 times
- external/gpl3/binutils/dist/gprofng/libcollector/iotrace.c, line 2602
- external/gpl3/binutils/dist/libiberty/strerror.c, 2 times
- external/gpl3/gcc.old/dist/libgfortran/io/unix.c, 4 times
- external/gpl3/gcc.old/dist/libiberty/strerror.c, 2 times
- external/gpl3/gcc.old/dist/libstdc++-v3/config/os/djgpp/error_constants.h, line 49
- external/gpl3/gcc.old/dist/libstdc++-v3/config/os/generic/error_constants.h, line 49
- external/gpl3/gcc.old/dist/libstdc++-v3/config/os/mingw32-w64/error_constants.h, line 51
- external/gpl3/gcc.old/dist/libstdc++-v3/config/os/mingw32/error_constants.h, line 51
- external/gpl3/gcc.old/dist/libstdc++-v3/src/c++11/system_error.cc, 2 times
- external/gpl3/gcc/dist/libgfortran/io/unix.c, 4 times
- external/gpl3/gcc/dist/libiberty/strerror.c, 2 times
- external/gpl3/gcc/dist/libstdc++-v3/config/os/djgpp/error_constants.h, line 49
- external/gpl3/gcc/dist/libstdc++-v3/config/os/generic/error_constants.h, line 49
- external/gpl3/gcc/dist/libstdc++-v3/config/os/mingw32-w64/error_constants.h, line 51
- external/gpl3/gcc/dist/libstdc++-v3/config/os/mingw32/error_constants.h, line 51
- external/gpl3/gcc/dist/libstdc++-v3/src/c++11/system_error.cc, 2 times
- external/gpl3/gdb.old/dist/gdb/gdb_bfd.c, line 227
- external/gpl3/gdb.old/dist/gdb/remote-fileio.c, line 652
- external/gpl3/gdb.old/dist/gdb/remote.c, line 12407
- external/gpl3/gdb.old/dist/gdb/target.c, 4 times
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/fileio.c, 2 times
- external/gpl3/gdb.old/dist/gdb/unittests/scoped_fd-selftests.c, 2 times
- external/gpl3/gdb.old/dist/gdb/windows-nat.c, line 2530
- external/gpl3/gdb.old/dist/gdbsupport/fileio.cc, line 40
- external/gpl3/gdb.old/dist/gnulib/import/at-func.c, line 118
- external/gpl3/gdb.old/dist/gnulib/import/cloexec.c, line 62
- external/gpl3/gdb.old/dist/gnulib/import/close.c, line 44
- external/gpl3/gdb.old/dist/gnulib/import/dup.c, line 44
- external/gpl3/gdb.old/dist/gnulib/import/dup2.c, 5 times
- external/gpl3/gdb.old/dist/gnulib/import/fchdir.c, line 197
- external/gpl3/gdb.old/dist/gnulib/import/fcntl.c, 4 times
- external/gpl3/gdb.old/dist/gnulib/import/fdopendir.c, line 161
- external/gpl3/gdb.old/dist/gnulib/import/fstat.c, line 87
- external/gpl3/gdb.old/dist/gnulib/import/openat.c, line 258
- external/gpl3/gdb.old/dist/libiberty/strerror.c, 2 times
- external/gpl3/gdb.old/dist/readline/readline/input.c, line 120
- external/gpl3/gdb.old/dist/sim/arm/armos.c, line 346
- external/gpl3/gdb.old/dist/sim/bfin/linux-targ-map.h, 2 times
- external/gpl3/gdb.old/dist/sim/common/callback.c, 3 times
- external/gpl3/gdb.old/dist/sim/cris/traps.c, 2 times
- external/gpl3/gdb.old/dist/sim/ppc/emul_netbsd.c, line 315
- external/gpl3/gdb.old/dist/sim/ppc/emul_unix.c, line 216
- external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/pipe4.c, 2 times
- external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/writev2.c, line 23
- external/gpl3/gdb/dist/gdb/gdb_bfd.c, line 227
- external/gpl3/gdb/dist/gdb/remote-fileio.c, line 652
- external/gpl3/gdb/dist/gdb/remote.c, line 12407
- external/gpl3/gdb/dist/gdb/target.c, 4 times
- external/gpl3/gdb/dist/gdb/testsuite/gdb.base/fileio.c, 2 times
- external/gpl3/gdb/dist/gdb/unittests/scoped_fd-selftests.c, 2 times
- external/gpl3/gdb/dist/gdb/windows-nat.c, line 2530
- external/gpl3/gdb/dist/gdbsupport/fileio.cc, line 40
- external/gpl3/gdb/dist/gnulib/import/at-func.c, line 118
- external/gpl3/gdb/dist/gnulib/import/cloexec.c, line 62
- external/gpl3/gdb/dist/gnulib/import/close.c, line 44
- external/gpl3/gdb/dist/gnulib/import/dup.c, line 44
- external/gpl3/gdb/dist/gnulib/import/dup2.c, 5 times
- external/gpl3/gdb/dist/gnulib/import/fchdir.c, line 197
- external/gpl3/gdb/dist/gnulib/import/fcntl.c, 4 times
- external/gpl3/gdb/dist/gnulib/import/fdopendir.c, line 161
- external/gpl3/gdb/dist/gnulib/import/fstat.c, line 87
- external/gpl3/gdb/dist/gnulib/import/openat.c, line 258
- external/gpl3/gdb/dist/libiberty/strerror.c, 2 times
- external/gpl3/gdb/dist/readline/readline/input.c, line 120
- external/gpl3/gdb/dist/sim/arm/armos.c, line 346
- external/gpl3/gdb/dist/sim/bfin/linux-targ-map.h, 2 times
- external/gpl3/gdb/dist/sim/common/callback.c, 3 times
- external/gpl3/gdb/dist/sim/cris/traps.c, 2 times
- external/gpl3/gdb/dist/sim/ppc/emul_netbsd.c, line 315
- external/gpl3/gdb/dist/sim/ppc/emul_unix.c, line 216
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/pipe4.c, 2 times
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/writev2.c, line 23
- external/ibm-public/postfix/dist/src/util/sys_compat.c, line 302
- external/mit/libuv/dist/include/uv.h, line 94
- external/mit/libuv/dist/include/uv/errno.h, 2 times
- external/mit/libuv/dist/src/unix/kqueue.c, line 316
- external/mit/libuv/dist/src/unix/tty.c, line 57
- external/mit/libuv/dist/src/win/fs.c, line 721
- external/mpl/bind/dist/contrib/dlz/modules/filesystem/dir.c, line 55
- external/mpl/bind/dist/lib/isc/tests/errno_test.c, line 40
- external/mpl/bind/dist/lib/isc/unix/errno2result.c, line 43
- external/mpl/bind/dist/lib/isc/win32/errno2result.c, line 42
- external/public-domain/sqlite/dist/shell.c, line 1249
- external/public-domain/xz/dist/src/common/tuklib_open_stdxxx.c, line 33
- lib/libc/gen/posix_spawn_fileactions.c, 4 times
- lib/libc/iconv/iconv.c, 3 times
- lib/libc/nls/catclose.c, line 54
- lib/libc/nls/catgets.c, line 58
- lib/libc/rpc/getnetconfig.c, line 85
- lib/libc/rpc/svc_run.c, 2 times
- lib/libc/stdio/fclose.c, line 59
- lib/libc/stdio/fflush.c, line 70
- lib/libc/stdio/fpurge.c, line 63
- lib/libc/stdio/fvwrite.c, line 82
- lib/libc/stdio/refill.c, line 89
- lib/libc/stdio/vfwprintf.c, line 834
- lib/libc/stdio/wbuf.c, line 73
- lib/libperfuse/ops.c, 2 times
- lib/librumpclient/rumpclient.c, line 146
- lib/librumphijack/hijack.c, line 1848
- lib/librumpuser/rumpuser_errtrans.c, 2 times
- lib/libutil/pidfile.c, line 81
- share/examples/refuse/fanoutfs/fanoutfs.c, 2 times
- share/examples/refuse/ian/ian/ian.c, 2 times
- share/examples/refuse/ian/libfetch/ftp.c, 7 times
- share/examples/refuse/icfs/icfs.c, 2 times
- sys/altq/altq_blue.c, 5 times
- sys/altq/altq_cbq.c, 10 times
- sys/altq/altq_cdnr.c, 11 times
- sys/altq/altq_fifoq.c, 5 times
- sys/altq/altq_hfsc.c, 9 times
- sys/altq/altq_jobs.c, 8 times
- sys/altq/altq_priq.c, 9 times
- sys/altq/altq_red.c, 5 times
- sys/altq/altq_rio.c, 5 times
- sys/altq/altq_wfq.c, 6 times
- sys/arch/acorn32/mainbus/fd.c, 4 times
- sys/arch/amiga/dev/fd.c, 5 times
- sys/arch/arc/jazz/fd.c, 2 times
- sys/arch/arm/xscale/pxa2x0_apm.c, 4 times
- sys/arch/atari/dev/fd.c, line 436
- sys/arch/atari/dev/hdfd.c, 4 times
- sys/arch/emips/ebus/ace_ebus.c, 4 times
- sys/arch/emips/ebus/flash_ebus.c, 4 times
- sys/arch/hp300/dev/rd.c, 3 times
- sys/arch/ia64/stand/common/readdir.c, line 50
- sys/arch/mac68k/obio/iwm_fd.c, 3 times
- sys/arch/macppc/dev/apm.c, 4 times
- sys/arch/mipsco/obio/i82072.c, line 140
- sys/arch/sparc/dev/fd.c, 4 times
- sys/arch/sparc/sparc/openprom.c, 6 times
- sys/arch/sparc/stand/common/netif_sun.c, line 112
- sys/arch/sparc/stand/ofwboot/netif_of.c, line 117
- sys/arch/sparc64/dev/fdc.c, 4 times
- sys/arch/sun3/dev/fd.c, 4 times
- sys/arch/sun3/dev/xd.c, 4 times
- sys/arch/sun3/dev/xy.c, 4 times
- sys/arch/sun68k/stand/libsa/netif_sun.c, 2 times
- sys/arch/vax/mba/hp.c, 3 times
- sys/arch/vax/vsa/hdc9224.c, 2 times
- sys/arch/x68k/dev/bmd.c, line 366
- sys/arch/x68k/dev/fd.c, 4 times
- sys/arch/x68k/dev/opmbell.c, 4 times
- sys/arch/xen/xen/privcmd.c, line 152
- sys/arch/xen/xenbus/xenbus_dev.c, 5 times
- sys/compat/common/vfs_syscalls_12.c, line 141
- sys/compat/common/vfs_syscalls_30.c, line 229
- sys/compat/common/vfs_syscalls_43.c, line 359
- sys/compat/linux/arch/i386/linux_machdep.c, line 803
- sys/compat/linux/common/linux_blkio.c, line 75
- sys/compat/linux/common/linux_cdrom.c, line 146
- sys/compat/linux/common/linux_fdio.c, line 81
- sys/compat/linux/common/linux_file.c, 2 times
- sys/compat/linux/common/linux_file64.c, line 420
- sys/compat/linux/common/linux_hdio.c, line 81
- sys/compat/linux/common/linux_ioctl.c, line 158
- sys/compat/linux/common/linux_misc.c, line 699
- sys/compat/linux/common/linux_mtio.c, line 86
- sys/compat/linux/common/linux_sg.c, line 83
- sys/compat/linux/common/linux_socket.c, 3 times
- sys/compat/linux/common/linux_termios.c, 2 times
- sys/compat/linux32/common/linux32_dirent.c, line 123
- sys/compat/linux32/common/linux32_ioctl.c, line 97
- sys/compat/linux32/common/linux32_socket.c, 3 times
- sys/compat/linux32/common/linux32_termios.c, 2 times
- sys/compat/netbsd32/netbsd32_compat_30.c, line 86
- sys/compat/netbsd32/netbsd32_fs.c, 9 times
- sys/compat/netbsd32/netbsd32_ioctl.c, 2 times
- sys/compat/ossaudio/ossaudio.c, 5 times
- sys/compat/sunos/sunos_ioctl.c, 2 times
- sys/compat/sunos/sunos_misc.c, line 382
- sys/compat/sunos32/sunos32_ioctl.c, line 450
- sys/compat/sunos32/sunos32_misc.c, line 571
- sys/compat/ultrix/ultrix_ioctl.c, 2 times
- sys/dev/apm/apm.c, 3 times
- sys/dev/ata/ata.c, line 2177
- sys/dev/ata/wd.c, 3 times
- sys/dev/audio/audio.c, line 2798
- sys/dev/gpib/rd.c, 3 times
- sys/dev/gpio/gpio.c, 4 times
- sys/dev/hpc/apm/apmdev.c, 2 times
- sys/dev/i2c/i2c.c, line 701
- sys/dev/isa/fd.c, 4 times
- sys/dev/isa/mcd.c, 2 times
- sys/dev/iscsi/iscsi_ioctl.c, line 346
- sys/dev/ld.c, line 426
- sys/dev/mca/ed_mca.c, 3 times
- sys/dev/mscp/mscp_disk.c, 2 times
- sys/dev/ofw/ofdisk.c, line 400
- sys/dev/ofw/openfirmio.c, 6 times
- sys/dev/pci/pci_usrreq.c, 2 times
- sys/dev/qbus/rl.c, 2 times
- sys/dev/scsipi/ch.c, line 370
- sys/dev/scsipi/scsiconf.c, line 1187
- sys/dev/scsipi/scsipi_ioctl.c, 2 times
- sys/dev/scsipi/sd.c, 2 times
- sys/dev/scsipi/ses.c, line 403
- sys/dev/usb/usb.c, 2 times
- sys/dev/vme/xd.c, 4 times
- sys/dev/vme/xy.c, 4 times
- sys/dev/vnd.c, line 1229
- sys/external/bsd/drm2/dist/drm/amd/amdkfd/kfd_chardev.c, line 1833
- sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_context.c, line 534
- sys/external/bsd/drm2/linux/linux_dma_buf.c, line 134
- sys/external/bsd/libnv/dist/common_impl.h, line 39
- sys/external/bsd/libnv/dist/msgio.c, line 82
- sys/external/bsd/libnv/dist/nvpair.c, 5 times
- sys/external/mit/xen-include-public/dist/xen/include/public/errno.h, line 70
- sys/fs/efs/efs_vnops.c, line 498
- sys/fs/hfs/hfs_vfsops.c, line 570
- sys/fs/hfs/hfs_vnops.c, line 761
- sys/fs/nfs/client/nfs_clbio.c, line 353
- sys/fs/nfs/client/nfs_clstate.c, 3 times
- sys/fs/nfs/client/nfs_clvfsops.c, line 1760
- sys/fs/nfs/client/nfs_clvnops.c, 3 times
- sys/fs/nfs/server/nfs_nfsdport.c, 2 times
- sys/fs/unionfs/unionfs_vnops.c, 5 times
- sys/kern/kern_descrip.c, 5 times
- sys/kern/kern_event.c, 4 times
- sys/kern/kern_ktrace.c, 2 times
- sys/kern/kern_veriexec.c, line 1062
- sys/kern/subr_disk.c, 4 times
- sys/kern/sys_aio.c, 7 times
- sys/kern/sys_descrip.c, 14 times
- sys/kern/sys_generic.c, 10 times
- sys/kern/sys_mqueue.c, 3 times
- sys/kern/sys_pipe.c, line 1157
- sys/kern/sys_select.c, line 422
- sys/kern/sys_timerfd.c, 2 times
- sys/kern/uipc_syscalls.c, line 181
- sys/kern/uipc_usrreq.c, line 1576
- sys/kern/vfs_syscalls.c, 9 times
- sys/kern/vfs_vnops.c, line 793
- sys/lib/libsa/close.c, line 77
- sys/lib/libsa/cread.c, 2 times
- sys/lib/libsa/fstat.c, line 43
- sys/lib/libsa/ioctl.c, line 74
- sys/lib/libsa/ls.c, line 143
- sys/lib/libsa/lseek.c, line 76
- sys/lib/libsa/netif.c, 2 times
- sys/lib/libsa/read.c, line 78
- sys/lib/libsa/write.c, line 75
- sys/miscfs/deadfs/dead_vnops.c, 2 times
- sys/miscfs/fdesc/fdesc_vnops.c, 3 times
- sys/miscfs/genfs/genfs_vnops.c, line 282
- sys/miscfs/procfs/procfs_fd.c, line 54
- sys/miscfs/procfs/procfs_vfsops.c, line 333
- sys/miscfs/procfs/procfs_vnops.c, 2 times
- sys/miscfs/specfs/spec_vnops.c, line 971
- sys/net/if_gre.c, line 1076
- sys/net/if_srt.c, 7 times
- sys/nfs/nfs_syscalls.c, line 323
- sys/rump/include/rump/rumperrno2host.h, 2 times
- sys/rump/kern/lib/libsys_cygwin/rump_cygwin_compat.c, line 201
- sys/rump/kern/lib/libsys_sunos/rump_sunos_compat.c, line 278
- sys/rump/librump/rumpvfs/rumpfs.c, line 1797
- sys/ufs/chfs/chfs_gc.c, 9 times
- sys/uvm/uvm_mmap.c, line 374
- tests/dev/audio/audiotest.c, 11 times
- tests/include/sys/t_socket.c, line 67
- tests/include/t_errno.c, line 110
- tests/kernel/kqueue/write/t_pipe.c, line 69
- tests/lib/libc/gen/posix_spawn/h_fileactions.c, 2 times
- tests/lib/libc/gen/posix_spawn/t_spawn.c, 2 times
- tests/lib/libc/gen/t_closefrom.c, line 129
- tests/lib/libc/gen/t_ttyname.c, 3 times
- tests/lib/libc/stdio/t_fflush.c, 3 times
- tests/lib/libc/stdio/t_fopen.c, 2 times
- tests/lib/libc/sys/t_chroot.c, line 248
- tests/lib/libc/sys/t_dup.c, 9 times
- tests/lib/libc/sys/t_eventfd.c, line 674
- tests/lib/libc/sys/t_fsync.c, line 63
- tests/lib/libc/sys/t_kevent.c, line 132
- tests/lib/libc/sys/t_listen.c, line 89
- tests/lib/libc/sys/t_mmap.c, line 226
- tests/lib/libc/sys/t_posix_fadvise.c, line 119
- tests/lib/libc/sys/t_posix_fallocate.c, 2 times
- tests/lib/libc/sys/t_stat.c, line 169
- tests/lib/libc/sys/t_timerfd.c, line 600
- tests/lib/libc/sys/t_truncate.c, line 99
- tests/lib/libc/sys/t_write.c, line 72
- tests/lib/librumpclient/h_execthr.c, line 139
- tests/lib/librumpclient/t_fd.c, 3 times
- tests/modules/t_kcov.c, line 68
- tests/modules/t_ufetchstore.c, line 138
- tests/modules/ufetchstore/t_ufetchstore.c, line 138
- tests/modules/ufetchstore/ufetchstore_tester.c, line 144
- tests/net/inpcb/inpcb_bind.c, line 113
- tests/rump/rumpkern/t_lwproc.c, 2 times
- tests/rump/rumpvfs/t_basic.c, line 66
- usr.bin/ftp/util.c, line 1463
- usr.bin/mail/lex.c, line 112
- usr.sbin/syslogd/syslogd.c, line 2488