C++ compatibility for kernel space <sys/sysctl.h>

This commit is contained in:
Sebastian Huber 2019-07-18 10:21:21 +02:00
parent 7b1aea98a1
commit 05ec85c87c

View File

@ -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, size_t *oldlenp, const void *newp, size_t newlen, size_t *retval,
#endif /* __rtems__ */ #endif /* __rtems__ */
int flags); int flags);
#ifndef __rtems__
int userland_sysctl(struct thread *td, int *name, u_int namelen, void *old, 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 *oldlenp, int inkernel, const void *new, size_t newlen,
size_t *retval, int flags); size_t *retval, int flags);
#endif /* __rtems__ */
int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid, int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid,
int *nindx, struct sysctl_req *req); int *nindx, struct sysctl_req *req);
void sysctl_wlock(void); void sysctl_wlock(void);