/*************************************************************************
* *
* lockfile.c - a lockfile manager *
* Author: Kord Campbell <kord@grub.org> *
* Copyright (C) 2001 Grub, Inc. *
* *
* 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, 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., 675 Mass Ave, Cambridge, MA 02139, USA. *
* *
**************************************************************************/
#ifndef LOCKFILE_H_INCLUDED
#define LOCKFILE_H_INCLUDED
#ifdef GRUB_UNIX
#include <sys/types.h>
#endif
#include <iostream.h>
#include <fstream.h>
#ifdef GRUB_UNIX
#include <unistd.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef GRUB_UNIX
#include <signal.h>
#endif
#include <errno.h>
/* proto type declaration of public functions */
int check_lock_file(char *filename);
int make_lock_file(char *filename);
#endif /* LOCKFILE_H_INCLUDED */