$RodHat_/search
errno reference

EAGAIN

Resource temporarily unavailable

Linux value
11
strerror(3)
Resource temporarily unavailable
On this site
10 syscalls

On Linux EAGAIN and EWOULDBLOCK are the same value, so compare against both only if you also build for systems where they differ.

Where you will see EAGAIN

  • futex(2)Linux · IPC

    FUTEX_WAIT: the word at uaddr didn't equal val when the call was made. Not a failure; re-check and retry.

  • getrandom(2)Linux · Security

    Requested entropy wasn't available and GRND_NONBLOCK was set.

  • jail(2)FreeBSD · Sandboxing

    No free jail ID could be found.

  • madvise(2)Linux · Memory

    A kernel resource was temporarily unavailable.

  • mlock(2)Linux · Memory

    Some or all of the specified range could not be locked.

  • openat2(2)Linux · Filesystem

    RESOLVE_CACHED needed I/O, or a '..' race could not be ruled out under BENEATH/IN_ROOT; retry.

  • preadv2 / pwritev2(2)Linux · Filesystem

    RWF_NOWAIT set and the operation would block.

  • splice(2)Linux · I/O

    SPLICE_F_NONBLOCK or O_NONBLOCK set and the operation would block.

  • tee(2)Linux · I/O

    SPLICE_F_NONBLOCK or O_NONBLOCK set and the operation would block.

  • vmsplice(2)Linux · IPC

    SPLICE_F_NONBLOCK was set and the pipe buffer is full.

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.