1 // RUN: %clangxx -O0 %s -o %t && %run %t
3 // Android does not implement these calls.
4 // UNSUPPORTED: android
14 sprintf(name
, "/sem_open_test_%zu", (size_t)getpid());
16 sem_t
*s
= sem_open(name
, O_CREAT
, 0644, 123);
17 assert(s
!= SEM_FAILED
);
18 assert(sem_close(s
) == 0);
19 assert(sem_unlink(name
) == 0);