IDZEBRA  2.2.7
Typedefs | Functions
flock.h File Reference
#include <yaz/yconfig.h>

Go to the source code of this file.

Typedefs

typedef struct zebra_lock_handleZebraLockHandle
 

Functions

ZebraLockHandle zebra_lock_create (const char *dir, const char *file)
 
void zebra_lock_destroy (ZebraLockHandle h)
 
int zebra_unlock (ZebraLockHandle h)
 
char * zebra_mk_fname (const char *dir, const char *name)
 
int zebra_lock_w (ZebraLockHandle h)
 
int zebra_lock_r (ZebraLockHandle h)
 
void zebra_flock_init (void)
 

Typedef Documentation

◆ ZebraLockHandle

Definition at line 27 of file flock.h.

Function Documentation

◆ zebra_flock_init()

void zebra_flock_init ( void  )

◆ zebra_lock_create()

ZebraLockHandle zebra_lock_create ( const char *  dir,
const char *  file 
)

◆ zebra_lock_destroy()

void zebra_lock_destroy ( ZebraLockHandle  h)

◆ zebra_lock_r()

int zebra_lock_r ( ZebraLockHandle  h)

◆ zebra_lock_w()

int zebra_lock_w ( ZebraLockHandle  h)

◆ zebra_mk_fname()

char* zebra_mk_fname ( const char *  dir,
const char *  name 
)

Definition at line 84 of file flock.c.

References zebra_lock_info::fname.

Referenced by zebra_get_state(), zebra_lock_create(), and zebra_set_state().

◆ zebra_unlock()

int zebra_unlock ( ZebraLockHandle  h)