Back to index

glibc  2.9
Defines | Functions | Variables
tst-align3.c File Reference
#include <pthread.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <tst-stack-align.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static void once_test (void)
static int do_test (void)


static bool ok = true
static pthread_once_t once = PTHREAD_ONCE_INIT

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 56 of file tst-align3.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 39 of file tst-align3.c.

  puts ("in main");

    ok = false;

  if (pthread_once (&once, once_test))
      puts ("pthread once failed");
      return 1;

  return ok ? 0 : 1;

Here is the call graph for this function:

static void once_test ( void  ) [static]

Definition at line 30 of file tst-align3.c.

  puts ("in once_test");

    ok = false;

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

bool ok = true [static]

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

Definition at line 27 of file tst-align3.c.