49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
/*
|
|
* sys/locking.h Flags for locking() function
|
|
*
|
|
* =========================================================================
|
|
*
|
|
* Open Watcom Project
|
|
*
|
|
* Copyright (c) 2002-2010 Open Watcom Contributors. All Rights Reserved.
|
|
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
|
|
*
|
|
* This file is automatically generated. Do not edit directly.
|
|
*
|
|
* =========================================================================
|
|
*/
|
|
#ifndef __LOCKING_H_INCLUDED
|
|
#define __LOCKING_H_INCLUDED
|
|
|
|
#ifndef _ENABLE_AUTODEPEND
|
|
#pragma read_only_file;
|
|
#endif
|
|
|
|
#ifndef _COMDEF_H_INCLUDED
|
|
#include <_comdef.h>
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define _LK_UNLCK 0 /* unlock region of a file */
|
|
#define LK_UNLCK _LK_UNLCK
|
|
#define _LK_LOCK 1 /* lock a region of a file */
|
|
#define LK_LOCK _LK_LOCK
|
|
#define _LK_NBLCK 2 /* non-blocking lock */
|
|
#define LK_NBLCK _LK_NBLCK
|
|
#define _LK_RLCK 3 /* lock for writing */
|
|
#define LK_RLCK _LK_RLCK
|
|
#define _LK_NBRLCK 4 /* non-blocking lock for writing */
|
|
#define LK_NBRLCK _LK_NBRLCK
|
|
|
|
_WCRTLINK extern int locking(int __handle,int __mode,unsigned long __nbyte);
|
|
_WCRTLINK extern int _locking(int __handle,int __mode,unsigned long __nbyte);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|