Go to the source code of this file.
◆ dbClose()
Definition at line 319 of file sing_dbm.cc.
#define omFreeSize(addr, size)
#define SI_LINK_SET_CLOSE_P(l)
◆ dbOpen()
Definition at line 282 of file sing_dbm.cc.
284 const char *mode =
"r";
286 int dbm_flags = O_RDONLY | O_CREAT;
289 && ((
l->mode[0]==
'w')||(
l->mode[1]==
'w')))
291 dbm_flags = O_RDWR | O_CREAT;
310 l->data=(
void *)(db);
DBM * dbm_open(char *file, int flags, int mode)
#define SI_LINK_SET_R_OPEN_P(l)
#define SI_LINK_SET_RW_OPEN_P(l)
◆ dbRead1()
Definition at line 378 of file sing_dbm.cc.
LINKAGE leftv dbRead2(si_link l, leftv key)
◆ dbRead2()
Definition at line 332 of file sing_dbm.cc.
343 d_key.dsize = strlen(d_key.dptr)+1;
352 WerrorS(
"read(`DBM link`,`string`) expected");
Class used for (list of) interpreter objects.
const Variable & v
< [in] a sqrfree bivariate poly
void WerrorS(const char *s)
EXTERN_VAR omBin sleftv_bin
datum dbm_fetch(DBM *db, datum key)
datum dbm_nextkey(DBM *db)
datum dbm_firstkey(DBM *db)
◆ dbWrite()
Definition at line 383 of file sing_dbm.cc.
398 d_key.
dptr = (
char *)key->Data();
409 Werror(
"DBM link I/O error. Is '%s' readonly?",
l->name);
419 d_key.
dptr = (
char *)key->Data();
427 WerrorS(
"write(`DBM link`,`key string` [,`data string`]) expected");
int dbm_store(DBM *db, datum key, datum dat, int replace)
int dbm_delete(DBM *db, datum key)
void Werror(const char *fmt,...)