Logo Search packages:      
Sourcecode: leafnode version File versions

lockfile.c File Reference

Detailed Description

library module to safely create a lock file.
Matthias Andree
2001 - 2002
Copyright (C) 2001 - 2002 Matthias Andree <matthias.andree@web.de>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library 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 Lesser General Public License for more details.

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

Definition in file lockfile.c.

#include "leafnode.h"
#include "ln_log.h"
#include "critmem.h"
#include "validatefqdn.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>

Go to the source code of this file.


static nlink_t fd_st_nlink (const int fd)
int handover_lock (pid_t pid)
static int lock_is_stale (const char *const name, const int quiet)
int safe_mkstemp (char *templ)
int try_lock (unsigned long timeout)

Generated by  Doxygen 1.6.0   Back to index