File: locking.h

package info (click to toggle)
sortmail 1%3A2.4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, jessie, jessie-kfreebsd, lenny, sarge, squeeze, wheezy
  • size: 352 kB
  • ctags: 587
  • sloc: ansic: 5,445; makefile: 97
file content (15 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	@(#)locking.h 1.2 02/03/11 falk	*/
/*	$Id: locking.h,v 1.1.1.1 2002/03/12 05:38:52 efalk Exp $	*/

typedef	struct {
	  char	*dotname ;
	  int	fd ;
	} LockInfo ;

#ifdef	__STDC__
extern	int	lockFile(char *, int flags, mode_t, bool wait, LockInfo *lock);
extern	void	unLockFile(LockInfo *lock) ;
#else
extern	int	lockFile() ;
extern	void	unLockFile() ;
#endif