/*
 *   locking.h -- extra-ANSI 
 *
 *   Constants needed by the file-locking function to determine
 *   locking, unlocking, and locking with retries.
 *
 *           Copyright (c) 1990, MetaWare Incorporated
 */

#ifndef _LOCKING_H
#define _LOCKING_H

#ifdef __CPLUSPLUS__
extern "C" {
#endif

#define _LK_UNLCK   0
#define _LK_LOCK    1
#define _LK_NBLCK   2
#define _LK_RLCK    3
#define _LK_NBRLCK  4

#if __HIGHC__

#define LK_UNLCK   _LK_UNLCK 
#define LK_LOCK    _LK_LOCK 
#define LK_NBLCK   _LK_NBLCK 
#define LK_RLCK    _LK_RLCK 
#define LK_NBRLCK  _LK_NBRLCK 

#endif
#ifdef __CPLUSPLUS__
}
#endif
#endif /* _LOCKING_H */
