Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch add getrandom(2) syscall entry



details:   https://anonhg.NetBSD.org/src/rev/7aa4034d7785
branches:  trunk
changeset: 1026426:7aa4034d7785
user:      ryo <ryo%NetBSD.org@localhost>
date:      Wed Nov 24 18:52:13 2021 +0000

description:
add getrandom(2) syscall entry

diffstat:

 sys/compat/linux/arch/aarch64/syscalls.master |  5 +++--
 sys/compat/linux/arch/arm/syscalls.master     |  5 +++--
 sys/compat/linux/arch/m68k/syscalls.master    |  5 +++--
 sys/compat/linux/arch/mips/syscalls.master    |  5 +++--
 sys/compat/linux/arch/powerpc/syscalls.master |  5 +++--
 5 files changed, 15 insertions(+), 10 deletions(-)

diffs (95 lines):

diff -r e7d2dc6c6756 -r 7aa4034d7785 sys/compat/linux/arch/aarch64/syscalls.master
--- a/sys/compat/linux/arch/aarch64/syscalls.master     Wed Nov 24 18:50:28 2021 +0000
+++ b/sys/compat/linux/arch/aarch64/syscalls.master     Wed Nov 24 18:52:13 2021 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.1 2021/09/23 06:56:27 ryo Exp $
+       $NetBSD: syscalls.master,v 1.2 2021/11/24 18:52:13 ryo Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -509,7 +509,8 @@
 275    UNIMPL          sched_getattr
 276    UNIMPL          renameat2
 277    UNIMPL          seccomp
-278    UNIMPL          getrandom
+278    NOARGS          { ssize_t|sys||getrandom(void *buf, size_t buflen, \
+                           unsigned int flags); }
 279    UNIMPL          memfd_create
 280    UNIMPL          bpf
 281    UNIMPL          execveat
diff -r e7d2dc6c6756 -r 7aa4034d7785 sys/compat/linux/arch/arm/syscalls.master
--- a/sys/compat/linux/arch/arm/syscalls.master Wed Nov 24 18:50:28 2021 +0000
+++ b/sys/compat/linux/arch/arm/syscalls.master Wed Nov 24 18:52:13 2021 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.73 2021/09/20 02:20:02 thorpej Exp $
+       $NetBSD: syscalls.master,v 1.74 2021/11/24 18:52:13 ryo Exp $
 
 ; Derived from sys/compat/linux/arch/*/syscalls.master
 ; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -613,7 +613,8 @@
 382    UNIMPL          renameat2
 383    UNIMPL          seccomp
 ; XXX FIX-me?
-; 384  UNIMPL          getrandom
+; 384  NOARGS          { ssize_t|sys||getrandom(void *buf, size_t buflen, \
+                           unsigned int flags); }
 ; 385  UNIMPL          memfd_create
 
 ; ARMLinux actually has two ranges of syscalls.  Normal syscalls use
diff -r e7d2dc6c6756 -r 7aa4034d7785 sys/compat/linux/arch/m68k/syscalls.master
--- a/sys/compat/linux/arch/m68k/syscalls.master        Wed Nov 24 18:50:28 2021 +0000
+++ b/sys/compat/linux/arch/m68k/syscalls.master        Wed Nov 24 18:52:13 2021 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.99 2021/09/20 02:20:02 thorpej Exp $
+       $NetBSD: syscalls.master,v 1.100 2021/11/24 18:52:13 ryo Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -591,7 +591,8 @@
 349    UNIMPL          sched_setattr
 350    UNIMPL          sched_getattr
 351    UNIMPL          renameat2
-352    UNIMPL          getrandom
+352    NOARGS          { ssize_t|sys||getrandom(void *buf, size_t buflen, \
+                           unsigned int flags); }
 353    UNIMPL          memfd_create
 354    UNIMPL          bpf
 355    UNIMPL          execveat
diff -r e7d2dc6c6756 -r 7aa4034d7785 sys/compat/linux/arch/mips/syscalls.master
--- a/sys/compat/linux/arch/mips/syscalls.master        Wed Nov 24 18:50:28 2021 +0000
+++ b/sys/compat/linux/arch/mips/syscalls.master        Wed Nov 24 18:52:13 2021 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.72 2021/09/20 02:20:02 thorpej Exp $  
+       $NetBSD: syscalls.master,v 1.73 2021/11/24 18:52:13 ryo Exp $  
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -587,7 +587,8 @@
 351    UNIMPL          sched_getattr
 352    UNIMPL          renameat2
 353    UNIMPL          seccomp
-354    UNIMPL          getrandom
+354    NOARGS          { ssize_t|sys||getrandom(void *buf, size_t buflen, \
+                           unsigned int flags); }
 355    UNIMPL          memfd_create
 356    UNIMPL          bpf
 357    UNIMPL          execveat
diff -r e7d2dc6c6756 -r 7aa4034d7785 sys/compat/linux/arch/powerpc/syscalls.master
--- a/sys/compat/linux/arch/powerpc/syscalls.master     Wed Nov 24 18:50:28 2021 +0000
+++ b/sys/compat/linux/arch/powerpc/syscalls.master     Wed Nov 24 18:52:13 2021 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.78 2021/09/20 02:20:02 thorpej Exp $  
+       $NetBSD: syscalls.master,v 1.79 2021/11/24 18:52:13 ryo Exp $  
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -602,7 +602,8 @@
 356    UNIMPL          sched_getattr
 357    UNIMPL          renameat2
 358    UNIMPL          seccomp
-359    UNIMPL          getrandom
+359    NOARGS          { ssize_t|sys||getrandom(void *buf, size_t buflen, \
+                           unsigned int flags); }
 360    UNIMPL          memfd_create
 361    UNIMPL          bpf
 362    UNIMPL          execveat



Home | Main Index | Thread Index | Old Index