1 /********************************************************************** 2 * perditiondb_gdbm.h December 1999 3 * Horms horms@verge.net.au 4 * 5 * Access a gdbm(3) database 6 * 7 * perdition 8 * Mail retrieval proxy server 9 * Copyright (C) 1999-2005 Horms 10 * 11 * This program is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License as 13 * published by the Free Software Foundation; either version 2 of the 14 * License, or (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, but 17 * WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 * General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with this program; if not, write to the Free Software Foundation, 23 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 24 * 25 **********************************************************************/ 26 27 #include <string.h> 28 #include <unistd.h> 29 #include <stdlib.h> 30 #include <ctype.h> 31 #include <gdbm.h> 32 33 #ifndef PERDITIONDB_GDBM_SYSCONFDIR 34 #define PERDITIONDB_GDBM_SYSCONFDIR "/usr/local/etc/perdition" 35 #endif 36 37 #define PERDITIONDB_GDBM_DEFAULT_MAPNAME \ 38 PERDITIONDB_GDBM_SYSCONFDIR "/popmap.gdbm.db" 39 40 int dbserver_get( 41 const char *key_str, 42 const char *options_str, 43 char **str_return, 44 int *len_return 45 ); 46