Back to index

openldap  2.4.31
Classes | Defines | Typedefs | Functions | Variables
alock.h File Reference
#include "portable.h"
#include <ac/time.h>
#include <ac/unistd.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  alock_info
struct  alock_slot

Defines

#define ALOCK_CLEAN   (0)
#define ALOCK_RECOVER   (1)
#define ALOCK_BUSY   (2)
#define ALOCK_UNSTABLE   (3)
#define ALOCK_UNLOCKED   (0)
#define ALOCK_LOCKED   (1)
#define ALOCK_UNIQUE   (2)
#define ALOCK_DIRTY   (3)
#define ALOCK_SMASK   3
#define ALOCK_NOSAVE   4
#define ALOCK_SLOT_SIZE   (1024)
#define ALOCK_SLOT_IATTRS   (4)
#define ALOCK_MAX_APPNAME   (ALOCK_SLOT_SIZE - 8 * ALOCK_SLOT_IATTRS)
#define ALOCK_MAGIC   (0x12345678)

Typedefs

typedef LDAP_BEGIN_DECL struct
alock_info 
alock_info_t
typedef struct alock_slot alock_slot_t

Functions

 LDAP_SLAPD_F (int) alock_open LDAP_P((alock_info_t *info

Variables

const char * appname
const char const char * envdir
const char const char int locktype
int nosave

Class Documentation

struct alock_info

Definition at line 54 of file alock.h.

Class Members
int al_fd
int al_slot
struct alock_slot

Definition at line 59 of file alock.h.

Class Members
char * al_appname
unsigned int al_lock
pid_t al_pid
time_t al_stamp

Define Documentation

#define ALOCK_BUSY   (2)

Definition at line 32 of file alock.h.

#define ALOCK_CLEAN   (0)

Definition at line 30 of file alock.h.

#define ALOCK_DIRTY   (3)

Definition at line 39 of file alock.h.

#define ALOCK_LOCKED   (1)

Definition at line 37 of file alock.h.

#define ALOCK_MAGIC   (0x12345678)

Definition at line 50 of file alock.h.

Definition at line 49 of file alock.h.

#define ALOCK_NOSAVE   4

Definition at line 44 of file alock.h.

#define ALOCK_RECOVER   (1)

Definition at line 31 of file alock.h.

#define ALOCK_SLOT_IATTRS   (4)

Definition at line 48 of file alock.h.

#define ALOCK_SLOT_SIZE   (1024)

Definition at line 47 of file alock.h.

#define ALOCK_SMASK   3

Definition at line 41 of file alock.h.

#define ALOCK_UNIQUE   (2)

Definition at line 38 of file alock.h.

#define ALOCK_UNLOCKED   (0)

Definition at line 36 of file alock.h.

#define ALOCK_UNSTABLE   (3)

Definition at line 33 of file alock.h.


Typedef Documentation

typedef struct alock_slot alock_slot_t

Function Documentation

LDAP_SLAPD_F ( int  ) [read]

Variable Documentation

const char* appname

Definition at line 66 of file alock.h.

const char const char* envdir

Definition at line 66 of file alock.h.

const char const char int locktype

Definition at line 66 of file alock.h.

Definition at line 69 of file alock.h.