Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/linux/linux_sysctl.c
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | if (la->newval != 0) { | ||||
LIN_SDT_PROBE1(sysctl, handle_string, return, ENOTDIR); | LIN_SDT_PROBE1(sysctl, handle_string, return, ENOTDIR); | ||||
return (ENOTDIR); | return (ENOTDIR); | ||||
} | } | ||||
LIN_SDT_PROBE1(sysctl, handle_string, return, 0); | LIN_SDT_PROBE1(sysctl, handle_string, return, 0); | ||||
return (0); | return (0); | ||||
} | } | ||||
#ifdef LINUX_LEGACY_SYSCALLS | |||||
int | int | ||||
linux_sysctl(struct thread *td, struct linux_sysctl_args *args) | linux_sysctl(struct thread *td, struct linux_sysctl_args *args) | ||||
{ | { | ||||
struct l___sysctl_args la; | struct l___sysctl_args la; | ||||
struct sbuf *sb; | struct sbuf *sb; | ||||
l_int *mib; | l_int *mib; | ||||
char *sysctl_string; | char *sysctl_string; | ||||
int error, i; | int error, i; | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | if (sb == NULL) { | ||||
sbuf_delete(sb); | sbuf_delete(sb); | ||||
} | } | ||||
free(mib, M_LINUX); | free(mib, M_LINUX); | ||||
LIN_SDT_PROBE1(sysctl, linux_sysctl, return, ENOTDIR); | LIN_SDT_PROBE1(sysctl, linux_sysctl, return, ENOTDIR); | ||||
return (ENOTDIR); | return (ENOTDIR); | ||||
} | } | ||||
#endif |