Back to index

glibc  2.9
sysctl.h File Reference

Go to the source code of this file.


int __sysctl (int *__name, int __nlen, void *__oldval, size_t *__oldlenp, void *__newval, size_t __newlen)

Function Documentation

int __sysctl ( int __name,
int  __nlen,
void *  __oldval,
size_t __oldlenp,
void *  __newval,
size_t  __newlen 

Definition at line 29 of file sysctl.c.

  /* GKM FIXME: force __sysctl_args decl to have unbounded pointers.  */
  struct __sysctl_args args =
    .name = name,
    .nlen = nlen,
    .oldval = oldval,
    .oldlenp = oldlenp,
    .newval = newval,
    .newlen = newlen
  (void) CHECK_N (name, nlen);
  (void) CHECK_N (oldval, *oldlenp);
  (void) CHECK_N (newval, newlen);

  return INLINE_SYSCALL (_sysctl, 1, __ptrvalue (&args));

Here is the caller graph for this function: