| Coda Distributed File System
    | 
#include <stdio.h>#include <sys/stat.h>#include <sys/types.h>#include <sys/param.h>#include <unistd.h>#include <stdlib.h>#include "coda_string.h"#include <netinet/in.h>#include <fcntl.h>#include <errno.h>#include <limits.h>#include <coda_assert.h>#include "rwcdb.h"#include "pdb.h"#include <vice_file.h>
| Classes | |
| struct | PDB_HANDLE_S | 
| Macros | |
| #define | PDB_MAIN vice_config_path("db/prot_users.cdb") | 
| #define | H2DB_ID(x) (htonl((uint32_t)x)) | 
| #define | DB2H_ID(x) ((int32_t)ntohl(x)) | 
| #define | R_FIRST 0 | 
| #define | R_NEXT 1 | 
| Functions | |
| PDB_HANDLE | PDB_db_open (int mode) | 
| void | PDB_db_reopen (PDB_HANDLE h) | 
| int | PDB_db_nextkey (PDB_HANDLE h, int *id) | 
| void | PDB_db_close (PDB_HANDLE h) | 
| void | PDB_db_release (void) | 
| void | PDB_db_maxids (PDB_HANDLE h, int32_t *uid, int32_t *gid) | 
| void | PDB_db_update_maxids (PDB_HANDLE h, int32_t uid, int32_t gid, int mode) | 
| void | PDB_db_write (PDB_HANDLE h, int32_t id, char *name, void *data, size_t size) | 
| void | PDB_db_read (PDB_HANDLE h, int32_t id, const char *name, void **data, size_t *size) | 
| void | PDB_db_delete (PDB_HANDLE h, int32_t id, char *name) | 
| void | PDB_db_delete_xfer (PDB_HANDLE h, char *name) | 
| int | PDB_db_exists (void) | 
| void | PDB_db_compact (PDB_HANDLE h) | 
| int | PDB_setupdb (void) | 
| #define PDB_MAIN vice_config_path("db/prot_users.cdb") | 
| #define R_FIRST 0 | 
| #define R_NEXT 1 | 
| void PDB_db_close | ( | PDB_HANDLE | h | ) | 
| void PDB_db_compact | ( | PDB_HANDLE | h | ) | 
| void PDB_db_delete | ( | PDB_HANDLE | h, | 
| int32_t | id, | ||
| char * | name | ||
| ) | 
| void PDB_db_delete_xfer | ( | PDB_HANDLE | h, | 
| char * | name | ||
| ) | 
| int PDB_db_exists | ( | void | ) | 
| void PDB_db_maxids | ( | PDB_HANDLE | h, | 
| int32_t * | uid, | ||
| int32_t * | gid | ||
| ) | 
| int PDB_db_nextkey | ( | PDB_HANDLE | h, | 
| int * | id | ||
| ) | 
| PDB_HANDLE PDB_db_open | ( | int | mode | ) | 
| void PDB_db_read | ( | PDB_HANDLE | h, | 
| int32_t | id, | ||
| const char * | name, | ||
| void ** | data, | ||
| size_t * | size | ||
| ) | 
| void PDB_db_release | ( | void | ) | 
| void PDB_db_reopen | ( | PDB_HANDLE | h | ) | 
| void PDB_db_update_maxids | ( | PDB_HANDLE | h, | 
| int32_t | uid, | ||
| int32_t | gid, | ||
| int | mode | ||
| ) | 
| void PDB_db_write | ( | PDB_HANDLE | h, | 
| int32_t | id, | ||
| char * | name, | ||
| void * | data, | ||
| size_t | size | ||
| ) | 
| int PDB_setupdb | ( | void | ) |