dbm.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* dbm.h - The include file for dbm users. */
  2. /* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson.
  3. Copyright (C) 1990, 1991, 1993 Free Software Foundation, Inc.
  4. GDBM is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. GDBM is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GDBM; see the file COPYING. If not, write to
  14. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15. You may contact the author by:
  16. e-mail: phil@cs.wwu.edu
  17. us-mail: Philip A. Nelson
  18. Computer Science Department
  19. Western Washington University
  20. Bellingham, WA 98226
  21. *************************************************************************/
  22. /* The data and key structure. This structure is defined for compatibility. */
  23. typedef struct {
  24. char *dptr;
  25. int dsize;
  26. } datum;
  27. /* These are the routines in dbm. */
  28. extern int dbminit ();
  29. extern datum fetch ();
  30. extern int store ();
  31. extern int delete ();
  32. extern int delete ();
  33. extern datum firstkey ();
  34. extern datum nextkey ();
  35. extern int dbmclose ();