$RodHat_/search
errno reference

EMFILE

Too many open files

Linux value
24
strerror(3)
Too many open files
On this site
12 syscalls

You hit the per-process descriptor limit (RLIMIT_NOFILE). The system-wide limit is ENFILE.

Where you will see EMFILE

  • close_range(2)Linux · File descriptors

    With CLOSE_RANGE_UNSHARE: open fds exceed /proc/sys/fs/nr_open when building the new table.

  • eventfd(2)Linux · Events

    Per-process open file descriptor limit reached.

  • fanotify_init(2)Linux · Events

    Per-user fanotify group limit exceeded, or the per-process fd limit was hit.

  • fsopen(2)Linux · Filesystem

    The calling process has too many open files to create another fd.

  • memfd_create(2)Linux · Memory

    Per-process open file descriptor limit reached.

  • memfd_secret(2)Linux · Memory

    Per-process open file descriptor limit reached.

  • perf_event_open(2)Linux · Tracing

    Too many open file descriptors; each event costs one fd.

  • pidfd_getfd(2)Linux · File descriptors

    Per-process open file descriptor limit reached.

  • pidfd_open(2)Linux · Processes

    Per-process open file descriptor limit reached.

  • signalfd(2)Linux · Events

    Per-process open file descriptor limit reached.

  • timerfd_create(2)Linux · Events

    Per-process open file descriptor limit reached.

  • userfaultfd(2)Linux · Memory

    Per-process open file descriptor limit reached.

Sources

  1. errno(3), Linux man-pages
  2. The meaning for each syscall is taken from that syscall's own card and the man page it cites.

Values are the Linux numbers on x86 and arm64; other architectures and the BSDs number some errors differently. BSD cards list the names the BSD man page uses. Spot one that's wrong? Tell Rod.