summaryrefslogtreecommitdiff
path: root/lib/libc/hidden/db.h
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-05 11:28:36 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-05 11:28:36 +0000
commitfa3d47eb688c9209a93a5bb958aab7b6e027a6f8 (patch)
treea78fb27fce231618357b9582c0a56fca63dab49a /lib/libc/hidden/db.h
parent06c89ea3c3bae55b3208d9227f38cf29eae76b5f (diff)
Use new framework for wrapping dbopen()
Move internal declarations from <db.h> to libc's hidden/db.h ok kettenis@
Diffstat (limited to 'lib/libc/hidden/db.h')
-rw-r--r--lib/libc/hidden/db.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/libc/hidden/db.h b/lib/libc/hidden/db.h
new file mode 100644
index 00000000000..ba3d1e72d54
--- /dev/null
+++ b/lib/libc/hidden/db.h
@@ -0,0 +1,33 @@
+/* $OpenBSD: db.h,v 1.1 2015/09/05 11:28:35 guenther Exp $ */
+/*
+ * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LIBC_DB_H_
+#define _LIBC_DB_H_
+
+#include_next <db.h>
+#include "namespace.h"
+
+__BEGIN_HIDDEN_DECLS
+DB *__bt_open(const char *, int, int, const BTREEINFO *, int);
+DB *__hash_open(const char *, int, int, const HASHINFO *, int);
+DB *__rec_open(const char *, int, int, const RECNOINFO *, int);
+void __dbpanic(DB *dbp);
+__END_HIDDEN_DECLS
+
+PROTO_NORMAL(dbopen);
+
+#endif /* !_LIBC_DB_H_ */