Defined in 3 files as a macro:
Defined in 1 files as a function:
Referenced in 210 files:
- bin/sh/redir.c, line 148
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_provider.c, 2 times
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c, line 499
- contrib/apr/include/apr_errno.h, 2 times
- contrib/binutils/libiberty/strerror.c, 2 times
- contrib/capsicum-test/procdesc.cc, 3 times
- contrib/gdb/gdb/charset.c, line 438
- contrib/gdb/gdb/remote-fileio.c, 2 times
- contrib/gdb/gdb/standalone.c, 5 times
- contrib/gdb/gdb/ui-file.c, line 136
- contrib/libevent/epoll.c, line 336
- contrib/libevent/kqueue.c, line 355
- contrib/libevent/test/regress.c, line 1163
- contrib/llvm-project/libcxx/include/errno.h, line 301
- contrib/llvm-project/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp, 3 times
- contrib/netbsd-tests/include/sys/t_socket.c, line 67
- contrib/netbsd-tests/include/t_errno.c, line 111
- contrib/netbsd-tests/kernel/kqueue/write/t_pipe.c, line 69
- contrib/netbsd-tests/lib/libc/gen/posix_spawn/h_fileactions.c, 2 times
- contrib/netbsd-tests/lib/libc/gen/t_closefrom.c, line 129
- contrib/netbsd-tests/lib/libc/gen/t_ttyname.c, 3 times
- contrib/netbsd-tests/lib/libc/stdio/t_fflush.c, 3 times
- contrib/netbsd-tests/lib/libc/stdio/t_fopen.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_chroot.c, line 249
- contrib/netbsd-tests/lib/libc/sys/t_dup.c, 10 times
- contrib/netbsd-tests/lib/libc/sys/t_fsync.c, line 63
- contrib/netbsd-tests/lib/libc/sys/t_kevent.c, line 144
- contrib/netbsd-tests/lib/libc/sys/t_listen.c, line 89
- contrib/netbsd-tests/lib/libc/sys/t_mmap.c, line 224
- contrib/netbsd-tests/lib/libc/sys/t_posix_fadvise.c, line 119
- contrib/netbsd-tests/lib/libc/sys/t_posix_fallocate.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, line 169
- contrib/netbsd-tests/lib/libc/sys/t_truncate.c, line 99
- contrib/netbsd-tests/lib/libc/sys/t_write.c, line 70
- contrib/netbsd-tests/lib/librumpclient/h_execthr.c, line 139
- contrib/netbsd-tests/lib/librumpclient/t_fd.c, 3 times
- contrib/netbsd-tests/rump/rumpkern/t_lwproc.c, 2 times
- contrib/netbsd-tests/rump/rumpvfs/t_basic.c, line 66
- contrib/ntp/include/timepps-SCO.h, 7 times
- contrib/ntp/include/timepps-Solaris.h, 6 times
- contrib/ntp/include/timepps-SunOS.h, 7 times
- contrib/ntp/lib/isc/unix/errno2result.c, line 45
- contrib/ntp/lib/isc/win32/errno2result.c, line 45
- contrib/ntp/ntpd/ntp_io.c, line 3756
- contrib/ntp/sntp/libevent/epoll.c, line 326
- contrib/ntp/sntp/libevent/kqueue.c, line 354
- contrib/ntp/sntp/libevent/test/regress.c, line 1060
- contrib/ofed/librdmacm/rsocket.c, 13 times
- contrib/openbsm/libbsm/bsm_errno.c, line 90
- contrib/openbsm/libbsm/bsm_wrappers.c, line 226
- contrib/openbsm/test/bsm/generate.c, line 1006
- contrib/pf/libevent/kqueue.c, line 250
- contrib/pjdfstest/pjdfstest.c, 2 times
- contrib/sendmail/libsm/fclose.c, 2 times
- contrib/sendmail/libsm/fflush.c, line 61
- contrib/sendmail/libsm/fopen.c, line 190
- contrib/sendmail/libsm/fpurge.c, line 41
- contrib/sendmail/libsm/fvwrite.c, line 76
- contrib/sendmail/libsm/put.c, line 53
- contrib/sendmail/libsm/refill.c, line 180
- contrib/sendmail/libsm/strio.c, 2 times
- contrib/sendmail/libsm/vfprintf.c, line 315
- contrib/sendmail/libsm/wbuf.c, line 59
- contrib/sendmail/libsm/wsetup.c, line 50
- contrib/sendmail/src/conf.c, 2 times
- contrib/sendmail/src/err.c, line 221
- contrib/sendmail/src/main.c, line 3988
- contrib/sendmail/src/map.c, line 3415
- contrib/sendmail/src/usersmtp.c, line 3156
- contrib/sendmail/src/util.c, 4 times
- contrib/sqlite3/shell.c, line 1337
- contrib/tcsh/sh.print.c, 2 times
- contrib/tnftp/src/util.c, line 1448
- contrib/wpa/src/radius/radius_client.c, line 345
- contrib/xz/src/common/tuklib_open_stdxxx.c, line 33
- crypto/heimdal/lib/roken/flock.c, line 94
- crypto/openssh/misc.c, line 1122
- crypto/openssh/sftp-server.c, line 193
- crypto/openssl/crypto/o_fopen.c, line 71
- lib/libc/gen/posix_spawn.c, 5 times
- lib/libc/gen/recvmmsg.c, line 59
- lib/libc/iconv/bsd_iconv.c, 4 times
- lib/libc/nls/msgcat.c, 2 times
- lib/libc/rpc/getnetconfig.c, line 72
- lib/libc/stdio/fclose.c, 3 times
- lib/libc/stdio/fpurge.c, line 59
- lib/libc/stdio/freopen.c, line 101
- lib/libc/stdio/refill.c, line 88
- lib/libc/stdio/vfprintf.c, line 463
- lib/libc/stdio/vfwprintf.c, line 538
- lib/libc/stdio/wbuf.c, line 66
- lib/libc/stdio/wsetup.c, line 63
- lib/libc/stdlib/ptsname.c, line 58
- lib/libc/sys/shm_open.c, line 98
- lib/libc/tests/stdio/getdelim_test.c, 2 times
- lib/libc/tests/sys/sendfile_test.c, 2 times
- lib/libcapsicum/capsicum_helpers.h, line 87
- lib/libcasper/libcasper/libcasper_impl.c, line 45
- lib/libfetch/ftp.c, 7 times
- lib/libnv/common_impl.h, line 45
- lib/libnv/tests/cnv_tests.cc, line 40
- lib/libnv/tests/nv_array_tests.cc, line 45
- lib/libnv/tests/nv_tests.cc, 4 times
- lib/libnv/tests/nvlist_get_test.c, line 49
- lib/libnv/tests/nvlist_send_recv_test.c, 3 times
- lib/libsysdecode/errno.c, line 53
- lib/libutil/quotafile.c, 3 times
- sbin/hastd/hastd.c, line 197
- sbin/quotacheck/quotacheck.c, 2 times
- stand/libsa/close.c, line 75
- stand/libsa/fstat.c, line 47
- stand/libsa/ioctl.c, line 77
- stand/libsa/lseek.c, line 75
- stand/libsa/netif.c, 2 times
- stand/libsa/pkgfs.c, 4 times
- stand/libsa/read.c, line 76
- stand/libsa/readdir.c, line 40
- stand/libsa/strerror.c, line 49
- stand/libsa/write.c, line 76
- stand/userboot/test/test.c, line 284
- sys/cam/scsi/scsi_ch.c, line 779
- sys/cam/scsi/scsi_enc.c, line 429
- sys/cam/scsi/scsi_sa.c, 3 times
- sys/compat/cloudabi/cloudabi_errno.c, line 47
- sys/compat/cloudabi/cloudabi_file.c, line 406
- sys/compat/freebsd32/freebsd32_capability.c, line 109
- sys/compat/freebsd32/freebsd32_ioctl.c, line 220
- sys/compat/linux/linux_ioctl.c, line 3597
- sys/contrib/libnv/bsd_nvpair.c, 2 times
- sys/contrib/openzfs/cmd/zed/zed_file.c, 4 times
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_file_os.c, 3 times
- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_onexit_os.c, 2 times
- sys/contrib/openzfs/module/os/linux/zfs/zfs_file_os.c, line 419
- sys/contrib/openzfs/module/unicode/u8_textprep.c, 5 times
- sys/contrib/openzfs/module/unicode/uconv.c, 8 times
- sys/contrib/openzfs/module/zfs/dmu_object.c, 2 times
- sys/contrib/openzfs/module/zfs/fm.c, line 584
- sys/contrib/openzfs/module/zfs/spa.c, 3 times
- sys/contrib/openzfs/module/zfs/vdev.c, 2 times
- sys/contrib/openzfs/module/zfs/zcp_global.c, line 39
- sys/contrib/openzfs/module/zfs/zfs_ioctl.c, 2 times
- sys/contrib/openzfs/module/zfs/zfs_onexit.c, 2 times
- sys/dev/acpi_support/acpi_hp.c, 5 times
- sys/dev/acpi_support/acpi_wmi.c, 5 times
- sys/dev/extres/clk/clk_link.c, 4 times
- sys/dev/ice/ice_strings.c, line 332
- sys/dev/md/md.c, line 1456
- sys/dev/mlx4/mlx4_core/mlx4_cmd.c, 3 times
- sys/dev/mlx5/mlx5_core/mlx5_fwdump.c, 6 times
- sys/dev/mmc/mmcsd.c, 2 times
- sys/dev/mthca/mthca_cmd.c, 3 times
- sys/dev/ofw/openfirmio.c, 2 times
- sys/dev/sound/clone.c, line 522
- sys/dev/sound/midi/midi.c, 2 times
- sys/dev/sound/pci/emu10kx.c, 2 times
- sys/dev/sound/pcm/dsp.c, 6 times
- sys/dev/sound/pcm/mixer.c, 10 times
- sys/dev/tdfx/tdfx_pci.c, line 406
- sys/dev/xen/blkback/blkback.c, line 2613
- sys/fs/cd9660/cd9660_vnops.c, line 264
- sys/fs/devfs/devfs_vnops.c, 2 times
- sys/fs/ext2fs/ext2_vnops.c, line 2165
- sys/fs/fuse/fuse_file.c, 2 times
- sys/fs/fuse/fuse_io.c, 2 times
- sys/fs/fuse/fuse_node.c, line 356
- sys/fs/fuse/fuse_vnops.c, 2 times
- sys/fs/nfsclient/nfs_clstate.c, 3 times
- sys/fs/nfsclient/nfs_clvfsops.c, line 1837
- sys/fs/nfsclient/nfs_clvnops.c, 5 times
- sys/fs/nfsserver/nfs_nfsdport.c, 2 times
- sys/fs/pseudofs/pseudofs_vnops.c, 3 times
- sys/fs/unionfs/union_vnops.c, 6 times
- sys/kern/kern_descrip.c, 41 times
- sys/kern/kern_event.c, 6 times
- sys/kern/kern_sendfile.c, line 611
- sys/kern/sys_capability.c, 6 times
- sys/kern/sys_generic.c, 10 times
- sys/kern/sys_procdesc.c, 2 times
- sys/kern/tty.c, line 2084
- sys/kern/uipc_mqueue.c, 3 times
- sys/kern/uipc_usrreq.c, 2 times
- sys/kern/vfs_default.c, 3 times
- sys/kern/vfs_lookup.c, line 381
- sys/kern/vfs_subr.c, line 446
- sys/kern/vfs_syscalls.c, 7 times
- sys/kern/vfs_vnops.c, line 2338
- sys/net/altq/altq_cbq.c, line 425
- sys/net/altq/altq_codel.c, line 165
- sys/net/altq/altq_fairq.c, line 238
- sys/net/altq/altq_hfsc.c, line 269
- sys/net/altq/altq_priq.c, line 184
- sys/netinet/sctp_peeloff.c, 2 times
- sys/netsmb/smb_subr.c, line 234
- sys/security/audit/bsm_errno.c, line 94
- sys/security/mac/mac_vfs.c, line 1038
- sys/ufs/ufs/ufs_vnops.c, line 2866
- sys/xen/error.h, line 44
- sys/xen/interface/errno.h, line 41
- tests/sys/aio/aio_test.c, line 1068
- tests/sys/file/closefrom_test.c, 3 times
- tests/sys/file/newfileops_on_fork_test.c, line 91
- tests/sys/kern/kern_descrip_test.c, line 85
- tests/sys/kern/ptrace_test.c, line 4070
- tools/regression/doat/doat.c, 18 times
- tools/regression/security/cap_test/cap_test_pdfork.c, line 82
- tools/regression/sockets/shutdown/shutdown.c, line 51
- tools/test/iconv/posix/posix.c, 2 times
- tools/tools/kttcp/sys/kttcp.c, 2 times
- usr.sbin/bhyveload/bhyveload.c, line 337
- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c, line 455