savemgr.h File Reference

#include <stddef.h>
#include <sys/types.h>
#include <dirent.h>
Include dependency graph for savemgr.h:
This graph shows which files directly or indirectly include this file:

Defines

#define LOCK_FILE_EXISTS   -2
#define ALREADY_LOCKED   -1

Functions

int rmdir_with_content (char *name)
int create_lock (char *path)
 Creates a lock file.
int free_lock (int fd, char *path)
 Frees a lock file.

Define Documentation

#define ALREADY_LOCKED   -1
#define LOCK_FILE_EXISTS   -2

Function Documentation

int create_lock ( char *  path  ) 

Creates a lock file.

Parameters:
path - Path to directory where lock will be created
Returns:
0 on success, -1 othewise
int free_lock ( int  fd,
char *  path 
)

Frees a lock file.

Parameters:
fd - Descriptor of lock
path - Path to directory where lock is created
Returns:
0 on success, -1 othewise
int rmdir_with_content ( char *  name  ) 

Here is the call graph for this function:

Generated on Mon Nov 15 10:27:15 2010 for Tales of Paraverse by  doxygen 1.6.3