ENOSYS (errno 38)

errno 38

LINUX

Invalid system call number

Linux terminal running strace with the failing system call and errno highlighted
Linux errno: trace the exact failing system call before changing anything.

What it means

ENOSYS is a Linux error code reported by Linux and other POSIX systems. Its official message is: “Invalid system call number”

How to fix ENOSYS (errno 38)

  1. Reproduce with 'strace -f -e trace=<syscall> <cmd>' to see the exact failing call
  2. Confirm the errno with 'perror <code>' and correlate with 'dmesg' kernel messages
  3. Isolate the version — re-test on a clean shell or minimal container

Related errors

Source: Linux kernel errno.h

Last updated: