projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a42cdff
)
missing.h: fix wrong __NR_getrandom syscall def
author
Dave Reisner
<dreisner@archlinux.org>
Thu, 30 Oct 2014 00:30:25 +0000
(20:30 -0400)
committer
Dave Reisner
<dreisner@archlinux.org>
Thu, 30 Oct 2014 00:41:46 +0000
(20:41 -0400)
278 is vmsplice on x86_64. 318 is what we want:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/x86/syscalls/syscall_64.tbl
src/shared/missing.h
patch
|
blob
|
history
diff --git
a/src/shared/missing.h
b/src/shared/missing.h
index
00e0287
..
85d3fec
100644
(file)
--- a/
src/shared/missing.h
+++ b/
src/shared/missing.h
@@
-136,7
+136,7
@@
static inline int memfd_create(const char *name, unsigned int flags) {
#ifndef __NR_getrandom
# if defined __x86_64__
-# define __NR_getrandom
27
8
+# define __NR_getrandom
31
8
# else
# warning "__NR_getrandom unknown for your architecture"
# define __NR_getrandom 0xffffffff