12345678910111213141516171819202122232425262728293031323334353637 |
- /* vi: set sw=4 ts=4: */
- /*
- * _sysctl() for uClibc
- *
- * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
- *
- * GNU Library General Public License (LGPL) version 2 or later.
- */
- #include "syscalls.h"
- struct __sysctl_args {
- int *name;
- int nlen;
- void *oldval;
- size_t *oldlenp;
- void *newval;
- size_t newlen;
- unsigned long __unused[4];
- };
- static inline
- _syscall1(int, _sysctl, struct __sysctl_args *, args);
- int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp,
- void *newval, size_t newlen)
- {
- struct __sysctl_args args = {
- name:name,
- nlen:nlen,
- oldval:oldval,
- oldlenp:oldlenp,
- newval:newval,
- newlen:newlen
- };
- return _sysctl(&args);
- }
|