Included Files
- #include <mplib1/mplib1_config.h>
- #include <mplib1/dl_list.h>
- #include <mplib1/bpo_lock.h>
- #include <mplib1/bpo_list.h>
Preprocessor definitions
#define MPLIB1_BPO_INIT_INTERNAL
#define SODB_MAGIC 0x536d6567
#define SODB_VERSION_1 1
#define SODB_VERSION_2 2
#define SODB_CURRENT_VERSION SODB_VERSION_2
#define SODB_NAME_SIZE1 512
enum sodb_types
enum sodb_types
|
|
{
|
|
SODB_T_UNKNOWN;
|
|
SODB_T_MMAP;
|
|
SODB_T_IPC;
|
|
}
|
|
struct sodb_resource
struct sodb_resource
|
|
{
|
|
bpo_Node_t res_node;
|
|
off_t res_off;
|
|
}
|
|
struct sodb
struct sodb
|
|
{
|
|
int sodb_magic;
|
|
char sodb_use_name[512];
|
|
size_t sodb_size;
|
|
enum sodb_types sodb_type;
|
|
int sodb_version;
|
|
int sodb_flags;
|
|
struct stat mmap_stat;
|
|
int mmap_fd;
|
|
int mmap_prot;
|
|
int mmap_flags;
|
|
off_t mmap_off;
|
|
char mmap_name[512];
|
|
key_t ipc_key;
|
|
char ipc_path[512];
|
|
char ipc_tok_id;
|
|
int ipc_id;
|
|
struct bpo_pid_lock res_p_lock;
|
|
bpo_List_t sodb_resource_list;
|
|
struct sodb_resource sodb_resource;
|
|
char sodb_res_name[10];
|
|
off_t shalloc_offset;
|
|
size_t shalloc_size;
|
|
}
|
|
struct sodb_track
struct sodb_track
|
|
{
|
|
dl_Node_t st_Node;
|
|
struct sodb* sodbp;
|
|
int mmap_fd;
|
|
const char* upper;
|
|
mode_t access_mode;
|
|
char fname[1];
|
|
}
|
|
struct sodb_res_find
struct sodb_res_find
|
|
{
|
|
struct sodb* sodbp;
|
|
const char* name;
|
|
void* ptr;
|
|
void* obj;
|
|
int flags;
|
|
int ierrno;
|
|
off_t rv;
|
|
}
|
|