home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / locking.h < prev    next >
Encoding:
Text File  |  1988-06-26  |  1.0 KB  |  33 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. /*    Copyright (c) 1987, 1988 Microsoft Corporation    */
  9. /*      All Rights Reserved    */
  10.  
  11. /*    This Module contains Proprietary Information of Microsoft  */
  12. /*    Corporation and should be treated as Confidential.       */
  13.  
  14. #ident    "@(#)head.sys:locking.h    1.2"
  15.  
  16. /*
  17.  * THIS FILE CONTAINS CODE WHICH IS DESIGNED TO BE
  18.  * PORTABLE BETWEEN DIFFERENT MACHINE ARCHITECTURES
  19.  * AND CONFIGURATIONS. IT SHOULD NOT REQUIRE ANY
  20.  * MODIFICATIONS WHEN ADAPTING XENIX TO NEW HARDWARE.
  21.  */
  22. /*
  23.  *   Flag values for XENIX locking() system call (os/xsys.c)
  24.  */
  25.  
  26.  
  27. #define LK_UNLCK  0    /* unlock request */
  28. #define LK_LOCK   1    /* lock request */
  29. #define LK_NBLCK  20    /* non-blocking lock request */
  30. #define LK_RLCK   3    /* read permitted only lock request */
  31. #define LK_NBRLCK 4    /* non-blocking read only lock request */
  32.  
  33.