Go to the source code of this file.
◆ dbClose()
Definition at line 320 of file sing_dbm.cc.
#define omFreeSize(addr, size)
#define SI_LINK_SET_CLOSE_P(l)
◆ dbOpen()
Definition at line 283 of file sing_dbm.cc.
285 const char *mode =
"r";
287 int dbm_flags = O_RDONLY | O_CREAT;
290 && ((
l->mode[0]==
'w')||(
l->mode[1]==
'w')))
292 dbm_flags = O_RDWR | O_CREAT;
311 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 379 of file sing_dbm.cc.
LINKAGE leftv dbRead2(si_link l, leftv key)
◆ dbRead2()
Definition at line 333 of file sing_dbm.cc.
344 d_key.dsize = strlen(d_key.dptr)+1;
353 WerrorS(
"read(`DBM link`,`string`) expected");
Class used for (list of) interpreter objects.
void WerrorS(const char *s)
datum dbm_fetch(DBM *db, datum key)
datum dbm_nextkey(DBM *db)
const Variable & v
< [in] a sqrfree bivariate poly
datum dbm_firstkey(DBM *db)
◆ dbWrite()
Definition at line 384 of file sing_dbm.cc.
399 d_key.
dptr = (
char *)key->Data();
410 Werror(
"DBM link I/O error. Is '%s' readonly?",
l->name);
420 d_key.
dptr = (
char *)key->Data();
428 WerrorS(
"write(`DBM link`,`key string` [,`data string`]) expected");
void WerrorS(const char *s)
int dbm_delete(DBM *db, datum key)
int dbm_store(DBM *db, datum key, datum dat, int replace)
void Werror(const char *fmt,...)