/* * pidfile.h: * functions for creating and removing PID files * * Copyright (c) 2001 Mark Longair. All rights reserved. * * $Id: pidfile.h,v 1.2 2001/04/19 18:06:18 mark Exp $ * */ #ifndef PIDFILE__H_ /* include guard */ #define PIDFILE__H_ #include #include typedef enum pid_file_result { pid_file_success, pid_file_existence, pid_file_error } pid_file_result; pid_file_result write_pid_file (const char * filename); pid_file_result read_pid_file(const char * filename, pid_t * pid); pid_file_result remove_pid_file(const char * filename); #endif