[systemd-devel] [PATCH] missing: Correct and extend getrandom syscall defines

Cristian Rodríguez crrodriguez at opensuse.org
Wed Oct 29 20:31:43 PDT 2014


El 30/10/14 a las #4, Cristian Rodríguez escribió:
> El 29/10/14 a las #4, Lennart Poettering escribió:
>> On Wed, 29.10.14 14:29, Cristian Rodríguez (crrodriguez at opensuse.org)
>> wrote:
>>
>>> Add syscall numbers for 32 bit x86 and arm and Correct
>>> the system call number for x86_64 (it is 318 not 278)
>>
>> Hmm? I did my testing on x86_64 3.18rc2, 278 is what worked
>> here... Did you test 318? Where does that number come from?
>
> #include <stdio.h>
> #include <sys/syscall.h>
>
>
> int main(void)
> {
>      printf("%d", __NR_getrandom);
>      return 0;
> }
>
> that's with kernel headers from 3.17 in x86_64.

and the kernel sources confirm it is 318 in x86_64

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/x86/syscalls/syscall_64.tbl



More information about the systemd-devel mailing list