Defined in 2 files as a macro:
Referenced in 314 files:
- bin/ksh/io.c, 2 times
- bin/sh/redir.c, line 245
- 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 1188
- crypto/external/bsd/openssh/dist/sftp-server.c, line 192
- crypto/external/bsd/openssl/dist/crypto/o_fopen.c, line 71
- 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/libc++/dist/libcxx/test/diagnostics/errno/cerrno.pass.cpp, 2 times
- external/bsd/libc++/dist/libcxx/test/diagnostics/syserr/errc.pass.cpp, line 25
- external/bsd/libc++/dist/libcxx/test/std/diagnostics/errno/cerrno.pass.cpp, 2 times
- external/bsd/libc++/dist/libcxx/test/std/diagnostics/syserr/errc.pass.cpp, line 25
- external/bsd/libevent/dist/epoll.c, line 339
- external/bsd/libevent/dist/kqueue.c, line 358
- external/bsd/libevent/dist/test/regress.c, line 1166
- external/bsd/llvm/dist/llvm/unittests/Support/Path.cpp, 2 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 3736
- external/bsd/ntp/dist/ports/winnt/libntp/termios.c, line 259
- external/bsd/ntp/dist/ports/winnt/ntpd/nt_ppsimpl.c, 7 times
- external/bsd/ntp/dist/ports/winnt/ntpd/ntp_iocompletionport.c, 2 times
- external/bsd/ntp/dist/ports/winnt/ppsapi/loopback/monolithic-serialpps-timepps.h, 6 times
- external/bsd/ntp/dist/ports/winnt/ppsapi/loopback/src/timepps.h, 13 times
- 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/libldap/tls_m.c, line 313
- external/bsd/openldap/dist/libraries/liblutil/utils.c, line 367
- external/bsd/tmux/dist/client.c, 6 times
- external/bsd/tmux/dist/file.c, 2 times
- external/bsd/wpa/dist/src/radius/radius_client.c, line 340
- 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 500
- 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/dist/libiberty/strerror.c, 2 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/dist/gdb/common/fileio.c, line 40
- external/gpl3/gdb/dist/gdb/gdb_bfd.c, line 238
- external/gpl3/gdb/dist/gdb/gnulib/import/at-func.c, line 118
- external/gpl3/gdb/dist/gdb/gnulib/import/cloexec.c, line 62
- external/gpl3/gdb/dist/gdb/gnulib/import/close.c, line 42
- external/gpl3/gdb/dist/gdb/gnulib/import/dup.c, line 42
- external/gpl3/gdb/dist/gdb/gnulib/import/dup2.c, 5 times
- external/gpl3/gdb/dist/gdb/gnulib/import/fchdir.c, line 196
- external/gpl3/gdb/dist/gdb/gnulib/import/fcntl.c, 4 times
- external/gpl3/gdb/dist/gdb/gnulib/import/fdopendir.c, line 161
- external/gpl3/gdb/dist/gdb/gnulib/import/fstat.c, line 66
- external/gpl3/gdb/dist/gdb/gnulib/import/openat.c, line 232
- external/gpl3/gdb/dist/gdb/remote-fileio.c, line 650
- external/gpl3/gdb/dist/gdb/remote.c, line 12334
- 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 2374
- external/gpl3/gdb/dist/libiberty/strerror.c, 2 times
- external/gpl3/gdb/dist/readline/input.c, line 107
- 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 273
- external/mpl/bind/dist/contrib/dlz/modules/filesystem/dir.c, line 60
- external/mpl/bind/dist/lib/isc/tests/errno_test.c, line 42
- external/mpl/bind/dist/lib/isc/unix/errno2result.c, line 46
- external/mpl/bind/dist/lib/isc/win32/errno2result.c, line 45
- 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, 3 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 837
- lib/libc/stdio/wbuf.c, line 73
- lib/libperfuse/ops.c, 2 times
- lib/librumpclient/rumpclient.c, line 146
- lib/librumphijack/hijack.c, line 1780
- 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 143
- 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 226
- sys/compat/common/vfs_syscalls_43.c, line 409
- sys/compat/linux/arch/i386/linux_machdep.c, line 802
- 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 278
- sys/compat/linux/common/linux_hdio.c, line 81
- sys/compat/linux/common/linux_ioctl.c, line 163
- sys/compat/linux/common/linux_misc.c, line 696
- 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_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 378
- sys/compat/sunos32/sunos32_ioctl.c, line 450
- sys/compat/sunos32/sunos32_misc.c, line 624
- sys/compat/ultrix/ultrix_ioctl.c, 2 times
- sys/dev/apm/apm.c, 3 times
- sys/dev/ata/ata.c, line 2163
- sys/dev/ata/wd.c, 3 times
- sys/dev/audio/audio.c, line 2668
- sys/dev/filemon/filemon.c, 3 times
- 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 784
- sys/dev/isa/fd.c, 4 times
- sys/dev/isa/mcd.c, 2 times
- sys/dev/iscsi/iscsi_ioctl.c, line 350
- sys/dev/ld.c, line 416
- 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 1114
- 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 1216
- sys/external/bsd/drm2/linux/linux_dma_buf.c, line 135
- 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 777
- 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 1057
- 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 1477
- sys/kern/sys_select.c, line 396
- sys/kern/uipc_syscalls.c, line 181
- sys/kern/uipc_usrreq.c, line 1566
- sys/kern/vfs_syscalls.c, 9 times
- sys/kern/vfs_vnops.c, line 705
- 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 245
- sys/miscfs/procfs/procfs_fd.c, line 54
- sys/miscfs/procfs/procfs_vfsops.c, line 334
- sys/miscfs/procfs/procfs_vnops.c, 2 times
- sys/miscfs/specfs/spec_vnops.c, 3 times
- sys/net/if_gre.c, line 1094
- sys/net/if_srt.c, 7 times
- sys/netsmb/smb_dev.c, 4 times
- sys/netsmb/smb_subr.c, line 220
- 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 1776
- sys/ufs/chfs/chfs_gc.c, 9 times
- sys/uvm/uvm_mmap.c, line 357
- tests/include/sys/t_socket.c, line 67
- tests/include/t_errno.c, line 111
- tests/kernel/kqueue/write/t_pipe.c, line 69
- tests/lib/libc/gen/posix_spawn/h_fileactions.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_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 224
- 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_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/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 2469