home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / armlinux / alpha / PARTITIONS / USR_GZ / usr / include / sys / sem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-14  |  632 b   |  28 lines

  1. #ifndef _SYS_SEM_H
  2. #define _SYS_SEM_H
  3.  
  4. #include <features.h>
  5.  
  6. #include <sys/ipc.h>
  7. #include <linux/sem.h>
  8. #include <asm/bitops.h>
  9.  
  10. /*
  11.  * <asm/bitops.h>:
  12.  * set_bit, clear_bit, test_bit
  13.  * all return the value of the bit prior to alteration.
  14.  * It seems they are more useful than sysv sems if you 
  15.  * dont have a need for semaphore arrays.
  16.  */
  17.  
  18. __BEGIN_DECLS
  19.  
  20. extern int semget __P((key_t __key, int __nsems, int __semflg));
  21. extern int semop __P((int __semid, struct sembuf *__sops, unsigned __nsops));
  22. extern int semctl __P((int __semid, int __semnum, int __cmd, 
  23.                union semun __arg));
  24.  
  25. __END_DECLS
  26.  
  27. #endif /* _SYS_SEM_H */
  28.