Back to index

glibc  2.9
Defines | Functions
sysconf.c File Reference
#include <unistd.h>
#include <errno.h>
#include <sys/sysinfo.h>
#include <sysdeps/posix/sysconf.c>

Go to the source code of this file.


#define __sysconf   __default_sysconf


int __getsysinfo (unsigned int op, void *buffer, size_t nbytes, int *start, void *arg)
long int __default_sysconf (int name)
long int __sysconf (int name)

Define Documentation

Definition at line 59 of file sysconf.c.

Function Documentation

long int __default_sysconf ( int  name)

Here is the caller graph for this function:

int __getsysinfo ( unsigned int  op,
void *  buffer,
size_t  nbytes,
int start,
void *  arg 

Here is the caller graph for this function:

long int __sysconf ( int  name)

Definition at line 35 of file sysconf.c.

  if (name == _SC_CHILD_MAX)
      int save = errno;
      int start = 0;
      int ret;

      /* getsysinfo returns the number of values it put into the
        buffer, or 0 if not available, or -1 on error.  */
      if (__getsysinfo (GSI_MAX_UPROCS, &ret, sizeof (ret), &start,
                     (void *) 0) > 0)
         __set_errno (save);
         return ret;

      __set_errno (save);

  return __default_sysconf (name);

Here is the call graph for this function: