Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (28 sloc) 0.588 kB
/**
* @file op_lockfile.h
* PID-based lockfile management
*
* @remark Copyright 2002 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon
* @author Philippe Elie
*/
#ifndef OP_LOCKFILE_H
#define OP_LOCKFILE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
/**
* op_write_lock_file - write a lock file
* \return errno on failure, or 0 on success
*
* Write the pid into the given lock file. Stale
* lock files are detected and reset.
*/
int op_write_lock_file(char const * file);
#ifdef __cplusplus
}
#endif
#endif /* OP_LOCKFILE_H */
Jump to Line
Something went wrong with that request. Please try again.