/* lock.h -- Lock file handling routines (UUCP style)
    Copyright 1998 - 2005 SCS GmbH & Co. KG, Hanau, Germany
    written by Peter Mack (peter.mack@scs-ptc.com)
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/*
 * some usefull macros
 */
#ifndef max
	#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
	#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif


/*
 * defaults for UUCP style lock files
 */
#define LF_PATH             "/var/lock"
#define LF_PREFIX           "LCK.."


/*
 * function prototypes
 */
int lock_device (char *);
int unlock_device (char *);
