home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / lock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  868 b   |  43 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _SYS_LOCK_H
  11. #define _SYS_LOCK_H
  12.  
  13. #ident    "@(#)/usr/include/sys/lock.h.sl 1.1 4.0 12/08/90 17179 AT&T-USL"
  14. /*
  15.  * flags for locking procs and texts
  16.  */
  17. #define    UNLOCK     0
  18. #define    PROCLOCK 1
  19. #define    TXTLOCK     2
  20. #define    DATLOCK     4
  21.  
  22. #ifdef _KERNEL
  23.  
  24. #define    MEMLOCK     8
  25.  
  26. #if defined(__STDC__)
  27. int punlock(void);
  28. #else
  29. int punlock();
  30. #endif    /* __STDC__ */
  31.  
  32. #else
  33.  
  34. #if defined(__STDC__)
  35. int plock(int);
  36. #else
  37. int plock();
  38. #endif    /* __STDC__ */
  39.  
  40. #endif    /* _KERNEL */
  41.  
  42. #endif    /* _SYS_LOCK_H */
  43.