Back to index

glibc  2.9
Defines | Functions
time.h File Reference
#include <bits/types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CLOCKS_PER_SEC   1000000l
#define CLK_TCK   ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */

Functions

long int __sysconf (int)

Define Documentation

#define CLK_TCK   ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */

Definition at line 41 of file time.h.

#define CLOCKS_PER_SEC   1000000l

Definition at line 34 of file time.h.


Function Documentation

long int __sysconf ( int  )

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);
}