Back to index

glibc  2.9
Defines | Functions
tst-sysconf.c File Reference
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 47 of file tst-sysconf.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 26 of file tst-sysconf.c.

  puts ("We expect no limits");
  /* We have no fixed limit on the number of threads.  Make sure the
     headers tell the right story.  */
  printf ("Header report maximum number of threads = %lu\n",
         (unsigned long int) PTHREAD_THREADS_MAX);
  return 1;
  long int r = sysconf (_SC_THREAD_THREADS_MAX);
  if (r != -1)
      printf ("sysconf(_SC_THREAD_THREADS_MAX) return %ld\n", r);
      return 1;

  return 0;

Here is the call graph for this function: