C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_locking Constants
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Constant:  _LK_LOCK, _LK_RLCK, _LK_NBLCK, _LK_NBRLCK, _LK_UNLCK
 
  Include:   <sys\locking.h>
 
  Context:   _locking
 
  Summary:   The <mode> argument in the call to the _locking
             function specifies the locking action to be performed.
 
     The <mode> argument must be one of the following manifest
     constants:
 
     Constant      Action
 
     _LK_LOCK      Locks the specified bytes. If the bytes cannot be
                   locked, the function tries again after one second.
                   If, after ten attempts, the bytes cannot be locked,
                   the function returns an error.
 
     _LK_RLCK      Same as _LK_LOCK.
 
     _LK_NBLCK     Locks the specified bytes. If bytes cannot be
                   locked, the function returns an error.
 
     _LK_NBRLCK    Same as _LK_NBLCK.
 
     _LK_UNLCK     Unlocks the specified bytes. (The bytes must have
                   been previously locked.)
                                    -♦-