Back to index

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

Go to the source code of this file.

Defines

#define TEST_FUNCTION   do_test ()
#define TIMEOUT   3

Functions

static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 28 of file tst-tls13.c.

#define TIMEOUT   3

Definition at line 29 of file tst-tls13.c.


Function Documentation

static int do_test ( void  ) [static]

Definition at line 9 of file tst-tls13.c.

{
  for (int i = 0; i < 1000;)
    {
      printf ("round %d\n",++i);

      void *h = dlopen ("$ORIGIN/tst-tlsmod13a.so", RTLD_LAZY);
      if (h == NULL)
       {
         printf ("cannot load: %s\n", dlerror ());
         exit (1);
       }

      dlclose (h);
    }

  return 0;
}

Here is the call graph for this function: