File: lock.h

package info (click to toggle)
isdnutils 1%3A3.25%2Bdfsg1-3.5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 18,188 kB
  • ctags: 12,236
  • sloc: ansic: 98,041; sh: 19,044; perl: 4,948; makefile: 3,145; cpp: 2,708; tcl: 22
file content (32 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (12)
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 */