614  

#include "sem.h"

int

main ()
{

semaphore_t *semap;

semap = semaphore_open ("/tmp/semaphore")

if (semap == NULL)
exit (1) ;

semaphore_wait (semap) ;

semaphore_close (semap);

return (0) ;

}

 

.

 

pthread_cond_destroy(),pthread_create(), pthread_mutex_destroy(),
pthread_mutexattr_destroy (),  Base Definitions  IEEE Std 1003.1-
2001,<pthread.h>.

  

     Issue 5.   
  POSIX Threads Extension.

Issue 6

 pthread_mutexattr_destroy ()  pthread_mutexattr_init () -
    Threads.

 ""      IEEE
PASC Interpretation 1003.1 #27.