HOPS
HOPS class reference
Functions
create_lockfile.c File Reference
#include <sys/types.h>
#include <unistd.h>
#include <sys/time.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "write_lock_mechanism.h"
#include "msg.h"

Functions

int check_stale (lockfile_data_struct *other)
 
void clear_global_lockfile_data ()
 
int create_lockfile (char *rootname, char *lockfile_name, int max_seq_no)
 
void init_lockfile_data (lockfile_data_struct *data)
 
int lock_has_priority (lockfile_data_struct *other)
 
int parse_lockfile_name (char *lockfile_name_base, lockfile_data_struct *result)
 
void remove_lockfile ()
 

Function Documentation

◆ check_stale()

int check_stale ( lockfile_data_struct other)

◆ clear_global_lockfile_data()

void clear_global_lockfile_data ( )

◆ create_lockfile()

int create_lockfile ( char *  rootname,
char *  lockfile_name,
int  max_seq_no 
)

◆ init_lockfile_data()

void init_lockfile_data ( lockfile_data_struct data)

◆ lock_has_priority()

int lock_has_priority ( lockfile_data_struct other)

◆ parse_lockfile_name()

int parse_lockfile_name ( char *  lockfile_name_base,
lockfile_data_struct result 
)

◆ remove_lockfile()

void remove_lockfile ( )