~ubuntu-branches/ubuntu/precise/eglibc/precise-201308281639

« back to all changes in this revision

Viewing changes to nptl/tst-mutexpi6.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-08 01:58:09 UTC
  • mfrom: (1.5.3) (288.1.12 precise)
  • Revision ID: package-import@ubuntu.com-20120208015809-ulscst7uteq3e22z
Tags: 2.15~pre6-0ubuntu10
Merge from Debian (r5151, 2.13-26).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include <stdlib.h>
4
4
 
5
5
 
6
 
static pthread_mutexattr_t a;
 
6
pthread_mutexattr_t a;
 
7
pthread_mutexattr_t *attr;
7
8
 
8
9
static void
9
10
prepare (void)
10
11
{
 
12
  attr = &a;
11
13
  if (pthread_mutexattr_init (&a) != 0)
12
14
    {
13
15
      puts ("mutexattr_init failed");
23
25
#define PREPARE(argc, argv) prepare ()
24
26
 
25
27
 
26
 
#define ATTR &a
 
28
#define ATTR attr
27
29
#include "tst-mutex6.c"