aboutsummaryrefslogtreecommitdiff
path: root/src/proto.h
blob: 129ed55ec17cb333196124a1cc91c45c089714d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* proto.h - The prototypes for the dbm routines. */

/* This file is part of GDBM, the GNU data base manager.
   Copyright (C) 1990, 1991, 1993, 2007  Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */

/* From bucket.c */
void _gdbm_new_bucket	(gdbm_file_info *, hash_bucket *, int);
void _gdbm_get_bucket	(gdbm_file_info *, int);
void _gdbm_split_bucket (gdbm_file_info *, int);
void _gdbm_write_bucket (gdbm_file_info *, cache_elem *);

/* From falloc.c */
off_t _gdbm_alloc       (gdbm_file_info *, int);
void _gdbm_free         (gdbm_file_info *, off_t, int);
int  _gdbm_put_av_elem  (avail_elem, avail_elem [], int *, int);

/* From findkey.c */
char *_gdbm_read_entry  (gdbm_file_info *, int);
int _gdbm_findkey       (gdbm_file_info *, datum, char **, int *);

/* From hash.c */
int _gdbm_hash (datum);

/* From update.c */
void _gdbm_end_update   (gdbm_file_info *);
void _gdbm_fatal	(gdbm_file_info *, const char *);

/* From gdbmopen.c */
int _gdbm_init_cache	(gdbm_file_info *, int);

/* From mmap.c */
int _gdbm_mapped_init	(gdbm_file_info *);
void _gdbm_mapped_unmap	(gdbm_file_info *);
ssize_t _gdbm_mapped_read	(gdbm_file_info *, void *, size_t);
ssize_t _gdbm_mapped_write	(gdbm_file_info *, void *, size_t);
off_t _gdbm_mapped_lseek	(gdbm_file_info *, off_t, int);
int _gdbm_mapped_sync	(gdbm_file_info *);

/* From lock.c */
int gdbm_locked		(gdbm_file_info *);
void _gdbm_unlock_file	(gdbm_file_info *);
int _gdbm_lock_file	(gdbm_file_info *);

/* The user callable routines.... */
void  gdbm_close	(gdbm_file_info *);
int   gdbm_delete	(gdbm_file_info *, datum);
datum gdbm_fetch	(gdbm_file_info *, datum);
gdbm_file_info *gdbm_open (char *, int, int, int, void (*) (const char *));
int   gdbm_reorganize	(gdbm_file_info *);
datum gdbm_firstkey     (gdbm_file_info *);
datum gdbm_nextkey      (gdbm_file_info *, datum);
int   gdbm_store        (gdbm_file_info *, datum, datum, int);
int   gdbm_exists	(gdbm_file_info *, datum);
void  gdbm_sync		(gdbm_file_info *);
int   gdbm_setopt	(gdbm_file_info *, int, int *, int);
int   gdbm_fdesc	(gdbm_file_info *);
int   gdbm_export	(gdbm_file_info *, const char *, int, int);
int   gdbm_import	(gdbm_file_info *, const char *, int);

Return to:

Send suggestions and report system problems to the System administrator.