Back to index

glibc  2.9
Defines
tst-sem12.c File Reference
#include <time.h>
#include <sys/time.h>
#include "tst-sem11.c"

Go to the source code of this file.

Defines

#define PREPARE
#define SEM_WAIT(s)   sem_timedwait (s, &ts)

Define Documentation

#define PREPARE
Value:
struct timespec ts; \
  struct timeval tv; \
  gettimeofday (&tv, NULL); \
  TIMEVAL_TO_TIMESPEC (&tv, &ts); \
  ts.tv_sec += 60;

Definition at line 5 of file tst-sem12.c.

#define SEM_WAIT (   s)    sem_timedwait (s, &ts)

Definition at line 12 of file tst-sem12.c.