[LTP] [PATCH 4/5] API: Add tst_clone
Cyril Hrubis
chrubis@suse.cz
Thu Feb 11 16:30:29 CET 2021
Hi!
> I don't know where you are getting EINVAL from?
>
> Try the following
>
> #include <errno.h>
> #include <unistd.h>
> #include <sys/syscall.h>
>
> int main(int argc, const char* argv[])
> {
> syscall(~0ULL);
>
> return errno;
> }
>
> It returns ENOSYS and strace shows this is not due to any sanity
> checking by glibc.
>
> I guess it would actually be a bug if it returned EINVAL although I am
> not sure this is specified anywhere.
And I guess that I got confused again. You get EINVAL when you pass
unsupported flags to a syscall, not unsupported syscall number.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list