1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
/*
** $Id: lock.h,v 1.3 1997/02/26 13:10:41 michael Exp $
**
** Copyright (C) 1996, 1997 Michael 'Ghandi' Herold
*/
#ifndef _VBOX_LOCK_H
#define _VBOX_LOCK_H 1
/** Defines **************************************************************/
#define LOCK_MAX_LOCKNAME 256
#define LCK_MODEM 1
#define LCK_PID 2
/** Structures ***********************************************************/
struct locks
{
int type;
int *fd;
char *file;
char *desc;
};
/** Prototypes ***********************************************************/
extern int lock_type_lock(int);
extern int lock_type_unlock(int);
#endif /* _VBOX_LOCK_H */
|