Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: ndbm.h
/* ndbm.h - The include file for ndbm users. */
[0] Fix | Delete
[1] Fix | Delete
/* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson.
[2] Fix | Delete
Copyright (C) 1990-2011, 2017-2018 Free Software Foundation, Inc.
[3] Fix | Delete
[4] Fix | Delete
GDBM is free software; you can redistribute it and/or modify
[5] Fix | Delete
it under the terms of the GNU General Public License as published by
[6] Fix | Delete
the Free Software Foundation; either version 2, or (at your option)
[7] Fix | Delete
any later version.
[8] Fix | Delete
[9] Fix | Delete
GDBM is distributed in the hope that it will be useful,
[10] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[11] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[12] Fix | Delete
GNU General Public License for more details.
[13] Fix | Delete
[14] Fix | Delete
You should have received a copy of the GNU General Public License
[15] Fix | Delete
along with GDBM. If not, see <http://www.gnu.org/licenses/>.
[16] Fix | Delete
[17] Fix | Delete
You may contact the author by:
[18] Fix | Delete
e-mail: phil@cs.wwu.edu
[19] Fix | Delete
us-mail: Philip A. Nelson
[20] Fix | Delete
Computer Science Department
[21] Fix | Delete
Western Washington University
[22] Fix | Delete
Bellingham, WA 98226
[23] Fix | Delete
[24] Fix | Delete
*************************************************************************/
[25] Fix | Delete
[26] Fix | Delete
#include <gdbm.h>
[27] Fix | Delete
[28] Fix | Delete
/* Parameters to dbm_store for simple insertion or replacement. */
[29] Fix | Delete
#define DBM_INSERT GDBM_INSERT
[30] Fix | Delete
#define DBM_REPLACE GDBM_REPLACE
[31] Fix | Delete
[32] Fix | Delete
/* The file information header. */
[33] Fix | Delete
typedef struct
[34] Fix | Delete
{
[35] Fix | Delete
GDBM_FILE file; /* Actual gdbm file (held in the .pag file */
[36] Fix | Delete
int dirfd; /* Descriptor of the .dir file */
[37] Fix | Delete
datum _dbm_memory; /* Keeps the last returned key */
[38] Fix | Delete
char *_dbm_fetch_val; /* Keeps the dptr of the last fetched datum */
[39] Fix | Delete
gdbm_error _dbm_errno; /* Error code from the last failed call */
[40] Fix | Delete
} DBM;
[41] Fix | Delete
[42] Fix | Delete
/* Used internally by the library */
[43] Fix | Delete
#define __gdbm_error_to_ndbm(dbm) \
[44] Fix | Delete
do \
[45] Fix | Delete
{ \
[46] Fix | Delete
if (gdbm_errno && gdbm_errno != GDBM_ITEM_NOT_FOUND) \
[47] Fix | Delete
(dbm)->_dbm_errno = gdbm_errno; \
[48] Fix | Delete
} \
[49] Fix | Delete
while (0)
[50] Fix | Delete
[51] Fix | Delete
/* These are the routines */
[52] Fix | Delete
[53] Fix | Delete
extern DBM *dbm_open (char *file, int flags, int mode);
[54] Fix | Delete
extern void dbm_close (DBM *dbf);
[55] Fix | Delete
extern datum dbm_fetch (DBM *dbf, datum key);
[56] Fix | Delete
extern int dbm_store (DBM *dbf, datum key, datum content, int flags);
[57] Fix | Delete
extern int dbm_delete (DBM *dbf, datum key);
[58] Fix | Delete
extern datum dbm_firstkey (DBM *dbf);
[59] Fix | Delete
extern datum dbm_nextkey (DBM *dbf);
[60] Fix | Delete
extern int dbm_error (DBM *dbf);
[61] Fix | Delete
extern void dbm_clearerr (DBM *dbf);
[62] Fix | Delete
extern int dbm_dirfno (DBM *dbf);
[63] Fix | Delete
extern int dbm_pagfno (DBM *dbf);
[64] Fix | Delete
extern int dbm_rdonly (DBM *dbf);
[65] Fix | Delete
[66] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function