diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-07-18 10:21:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-09-23 10:55:42 +0200 |
commit | 05ec85c87ccef809d24f14bef0b9b56a6a46a574 (patch) | |
tree | f601b15bbb05aae25ea5a8dffdc93fb2869974e0 /freebsd/sys | |
parent | Add wrapper for strndup() (diff) | |
download | rtems-libbsd-05ec85c87ccef809d24f14bef0b9b56a6a46a574.tar.bz2 |
C++ compatibility for kernel space <sys/sysctl.h>
Diffstat (limited to 'freebsd/sys')
-rw-r--r-- | freebsd/sys/sys/sysctl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/sys/sys/sysctl.h b/freebsd/sys/sys/sysctl.h index cf5a5581..a8562b8d 100644 --- a/freebsd/sys/sys/sysctl.h +++ b/freebsd/sys/sys/sysctl.h @@ -1130,9 +1130,11 @@ int kernel_sysctlbyname(struct thread *td, char *name, void *old, size_t *oldlenp, const void *newp, size_t newlen, size_t *retval, #endif /* __rtems__ */ int flags); +#ifndef __rtems__ int userland_sysctl(struct thread *td, int *name, u_int namelen, void *old, size_t *oldlenp, int inkernel, const void *new, size_t newlen, size_t *retval, int flags); +#endif /* __rtems__ */ int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid, int *nindx, struct sysctl_req *req); void sysctl_wlock(void); |