1N/A** Copyright (c) 1999-2002, 2004, 2009 Sendmail, Inc. and its suppliers. 1N/A** All rights reserved. 1N/A** By using this file, you agree to the terms and conditions set 1N/A** forth in the LICENSE file which can be found at the top level of 1N/A** the sendmail distribution. 1N/A** SMDB_TYPE_TO_DB1_TYPE -- Translates smdb database type to db1 type. 1N/A** type -- The type to translate. 1N/A** The DB1 type that corresponsds to the passed in SMDB type. 1N/A** Returns -1 if there is no equivalent type. 1N/A /* Should never get here thanks to test in smdb_db_open() */ 1N/A** SMDB_PUT_FLAGS_TO_DB1_FLAGS -- Translates smdb put flags to db1 put flags. 1N/A** flags -- The flags to translate. 1N/A** The db1 flags that are equivalent to the smdb flags. 1N/A** Any invalid flags are ignored. 1N/A** SMDB_CURSOR_GET_FLAGS_TO_SMDB1 1N/A** flags -- The flags to translate. 1N/A** The db1 flags that are equivalent to the smdb flags. 1N/A** Returns -1 if we don't support the flag. 1N/A** The rest of these functions correspond to the interface laid out in smdb.h. 1N/A#
endif /* HASFCHOWN */ 1N/A** SMDB_DB_OPEN -- Opens a db1 database. 1N/A** database -- An unallocated database pointer to a pointer. 1N/A** db_name -- The name of the database without extension. 1N/A** mode -- File permisions on the database if created. 1N/A** mode_mask -- Mode bits that must match on an existing database. 1N/A** sff -- Flags for safefile. 1N/A** type -- The type of database to open 1N/A** See smdb_type_to_db1_type for valid types. 1N/A** user_info -- Information on the user to use for file 1N/A** An SMDB_DBPARAMS struct including params. These 1N/A** are processed according to the type of the 1N/A** database. Currently supported params (only for 1N/A** SMDBE_OK -- Success, otherwise errno. 1N/A /* Everything is ok. Setup driver */ 1N/A /* Error opening database */ 1N/A#
endif /* (DB_VERSION_MAJOR == 1) */