I am studying pthread_mutex_lock
, and find out pthread_mutex_lock
will finally calls a macro lll_futex_timed_wait()
in glibc(version 2.27), I download glibc source but it is shown that lll_futex_timed_wait()
was defined as -ENOSYS
, what is that mean and how to get it's real definition(it should be a system call, I also have gotten the source of linux kernel)?
//glibc-2.27/sysdeps/nptl/lowlevellock-futex.h
/* Wait until a lll_futex_wake call on FUTEXP, or TIMEOUT elapses. */
#define lll_futex_timed_wait(futexp, val, timeout, private)
-ENOSYS
question from:https://stackoverflow.com/questions/65840531/why-is-the-meaning-of-macro-enosys-in-glibc