/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* bos72Q src/bos/kernel/sys/lock.h 1.8.1.1                               */
/*                                                                        */
/* Licensed Materials - Property of IBM                                   */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 1988,2019              */
/* All Rights Reserved                                                    */
/*                                                                        */
/* US Government Users Restricted Rights - Use, duplication or            */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.      */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/* @(#)89	1.8.1.1  src/bos/kernel/sys/lock.h, sysproc, bos72Q, q2019_13A4 2/6/19 00:42:42 */
/*
 *   COMPONENT_NAME: SYSPROC
 *
 *   FUNCTIONS: 
 *
 *   ORIGINS: 27
 *
 *
 *   (C) COPYRIGHT International Business Machines Corp. 1988,1993
 *   All Rights Reserved
 *   Licensed Materials - Property of IBM
 *   US Government Users Restricted Rights - Use, duplication or
 *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 */


#ifndef _H_LOCK
#define _H_LOCK

#ifdef __cplusplus
extern "C" {
#endif

/*
 * flags for locking procs and texts
 */
#define	UNLOCK	 0
#define	PROCLOCK 1
#define	TXTLOCK	 2
#define	DATLOCK	 4
/*
 * flags for locking memory through memory lock routines are defined 
 * in mman.h as :
 * #define MCL_CURRENT     0x00000100
 * #define MCL_FUTURE      0x00000200
 */


#ifdef _NO_PROTO
extern int plock();
#else
extern int plock(int);
#endif

#ifdef __cplusplus
}
#endif

#endif	/* _H_LOCK */