aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/syscall.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2019-09-03 04:16:30 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2019-09-03 04:16:30 +0000
commitd05b53e0baee7670da54424738bda9b11c0668e7 (patch)
tree1429a990e8caaa2a8fbe737f4d39f86abdcc3ab6 /sys/sys/syscall.h
parent209f2e983876efbc2e981b6380723d7e99986431 (diff)
downloadsrc-d05b53e0baee7670da54424738bda9b11c0668e7.tar.gz
src-d05b53e0baee7670da54424738bda9b11c0668e7.zip
Add sysctlbyname system call
Previously userspace would issue one syscall to resolve the sysctl and then another one to actually use it. Do it all in one trip. Fallback is provided in case newer libc happens to be running on an older kernel. Submitted by: Pawel Biernacki Reported by: kib, brooks Differential Revision: https://reviews.freebsd.org/D17282
Notes
Notes: svn path=/head/; revision=351729
Diffstat (limited to 'sys/sys/syscall.h')
-rw-r--r--sys/sys/syscall.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index a5783046a96c..b263285ace5e 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -505,4 +505,5 @@
#define SYS_fhreadlink 567
#define SYS_funlinkat 568
#define SYS_copy_file_range 569
-#define SYS_MAXSYSCALL 570
+#define SYS___sysctlbyname 570
+#define SYS_MAXSYSCALL 571