| 2341 | }; |
| 2342 | #endif |
| 2343 | int |
| 2344 | sys___sysctlbyname(struct thread *td, struct __sysctlbyname_args *uap) |
| 2345 | { |
| 2346 | size_t rv; |
| 2347 | int error; |
| 2348 | |
| 2349 | error = kern___sysctlbyname(td, uap->name, uap->namelen, uap->old, |
| 2350 | uap->oldlenp, uap->new, uap->newlen, &rv, 0, 0); |
| 2351 | if (error != 0) |
| 2352 | return (error); |
| 2353 | if (uap->oldlenp != NULL) |
| 2354 | error = copyout(&rv, uap->oldlenp, sizeof(rv)); |
| 2355 | |
| 2356 | return (error); |
| 2357 | } |
| 2358 | |
| 2359 | /* |
| 2360 | * This is used from various compatibility syscalls too. That's why name |
nothing calls this directly
no test coverage detected