git: kernel - Add __realpath() and getrandom() system calls
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Feb 1 17:44:51 PST 2020
commit fa0a7960d979a9c4901c541fafba13cb7bbd28b8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sat Feb 1 17:30:28 2020 -0800
kernel - Add __realpath() and getrandom() system calls
* Add a kernel __realpath() system call. libc must still implement
the realpath() function to handle NULL buffers (malloc()d buffer
returned).
The libc implementation checks the osversion for backwards compatibility
before attempting to use the new system call.
* Add a kernel getrandom() system call.
* Bump __DragonFly_version to 500710.
Suggested-by: tuxillo, mjg
Summary of changes:
sys/kern/init_sysent.c | 2 ++
sys/kern/kern_nrandom.c | 46 ++++++++++++++++++++++++++++++++-
sys/kern/syscalls.c | 2 ++
sys/kern/syscalls.master | 2 ++
sys/kern/vfs_syscalls.c | 67 ++++++++++++++++++++++++++++++++++++++++++++++++
sys/sys/param.h | 3 ++-
sys/sys/random.h | 8 ++++++
sys/sys/syscall.h | 4 ++-
sys/sys/syscall.mk | 4 ++-
sys/sys/sysproto.h | 18 +++++++++++++
sys/sys/sysunion.h | 2 ++
11 files changed, 154 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fa0a7960d979a9c4901c541fafba13cb7bbd28b8
--
DragonFly BSD source repository
More information about the Commits
mailing list