#ifdef __cplusplus
extern "C" {
#endif
/*
 *		IX/370
 *		5667-126
 *	LICENSED MATERIALS - PROPERTY OF IBM
*	(c) Copyright 1985, 1986, 1989 IBM Corp.
*	(c) Copyright 1983, 1984, 1985, 1986, 1989 Locus Computing Corporation
 *	All Rights Reserved
 */

#ifndef H_SCCSID
#include <sccs.h>
#endif  /* ~H_SCCSID */
H_SCCSID(@(#)lock.h	16.3	LCC)	/* Modified: 18:04:53 9/16/89 */
#ifndef _h_LOCK
#define _h_LOCK

/*
 * flags for locking procs and texts
 */
#define	UNLOCK	 0
#define	PROCLOCK 1
#define	TXTLOCK	 2
#define	DATLOCK	 4
/*
 * The following values are kept in u_lock, and are inherited,
 * These should be moved to another variable, when practical.
 */
#define	DIR_REAL	0x8		/* directory modes: should be moved */
#define	DIR_SYS5LOOK	0x10		/* directory modes: should be moved */
#ifdef  RESSUP
/*
**	following are used in calls to pgfix()
*/
#define	PGFIX	1
#define	PGFREE	0
#endif  /* RESSUP */
#ifdef __cplusplus
/* (MRL) I don't know if these function are available */
	int plock(int);
	int punlock(void);
#endif

#endif /* ~_h_LOCK */
#ifdef __cplusplus
}
#endif
