diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-08-27 04:37:10 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-08-27 04:37:10 +0000 |
commit | 3f43515896b874f5a14e9f9ecb0f5a81ee36c1ac (patch) | |
tree | 61b4a7fdb78f64f4fc86d6c9a0522e0bc711f9d2 /lib/libc/db | |
parent | beb50e1c8dd60e053bc56c0c260ee76dffa3d996 (diff) |
Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internal
symbols that are not longer exported. (This improves the generated code.)
ok deraadt@
Diffstat (limited to 'lib/libc/db')
-rw-r--r-- | lib/libc/db/btree/extern.h | 6 | ||||
-rw-r--r-- | lib/libc/db/hash/extern.h | 4 | ||||
-rw-r--r-- | lib/libc/db/recno/extern.h | 4 |
3 files changed, 9 insertions, 5 deletions
diff --git a/lib/libc/db/btree/extern.h b/lib/libc/db/btree/extern.h index 7b5f32bcedc..9a6896565b1 100644 --- a/lib/libc/db/btree/extern.h +++ b/lib/libc/db/btree/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.7 2003/06/02 20:18:33 millert Exp $ */ +/* $OpenBSD: extern.h,v 1.8 2015/08/27 04:37:09 guenther Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -31,9 +31,9 @@ * @(#)extern.h 8.10 (Berkeley) 7/20/94 */ +__BEGIN_HIDDEN_DECLS int __bt_close(DB *); int __bt_cmp(BTREE *, const DBT *, EPG *); -int __bt_crsrdel(BTREE *, EPGNO *); int __bt_defcmp(const DBT *, const DBT *); size_t __bt_defpfx(const DBT *, const DBT *); int __bt_delete(const DB *, const DBT *, u_int); @@ -44,7 +44,6 @@ int __bt_get(const DB *, const DBT *, DBT *, u_int); PAGE *__bt_new(BTREE *, pgno_t *); void __bt_pgin(void *, pgno_t, void *); void __bt_pgout(void *, pgno_t, void *); -int __bt_push(BTREE *, pgno_t, int); int __bt_put(const DB *dbp, DBT *, const DBT *, u_int); int __bt_ret(BTREE *, EPG *, DBT *, DBT *, DBT *, DBT *, int); EPG *__bt_search(BTREE *, const DBT *, int *); @@ -66,3 +65,4 @@ void __bt_dump(DB *); #ifdef STATISTICS void __bt_stat(DB *); #endif +__END_HIDDEN_DECLS diff --git a/lib/libc/db/hash/extern.h b/lib/libc/db/hash/extern.h index 7f837ffacbc..3d496169e13 100644 --- a/lib/libc/db/hash/extern.h +++ b/lib/libc/db/hash/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.7 2003/06/02 20:18:33 millert Exp $ */ +/* $OpenBSD: extern.h,v 1.8 2015/08/27 04:37:09 guenther Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -31,6 +31,7 @@ * @(#)extern.h 8.4 (Berkeley) 6/16/94 */ +__BEGIN_HIDDEN_DECLS BUFHEAD *__add_ovflpage(HTAB *, BUFHEAD *); int __addel(HTAB *, BUFHEAD *, const DBT *, const DBT *); int __big_delete(HTAB *, BUFHEAD *); @@ -61,3 +62,4 @@ extern u_int32_t (*__default_hash)(const void *, size_t); #ifdef HASH_STATISTICS extern int hash_accesses, hash_collisions, hash_expansions, hash_overflows; #endif +__END_HIDDEN_DECLS diff --git a/lib/libc/db/recno/extern.h b/lib/libc/db/recno/extern.h index 85017d29cb5..634bab3e0a7 100644 --- a/lib/libc/db/recno/extern.h +++ b/lib/libc/db/recno/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.6 2003/06/02 20:18:34 millert Exp $ */ +/* $OpenBSD: extern.h,v 1.7 2015/08/27 04:37:09 guenther Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -33,6 +33,7 @@ #include "../btree/extern.h" +__BEGIN_HIDDEN_DECLS int __rec_close(DB *); int __rec_delete(const DB *, const DBT *, u_int); int __rec_dleaf(BTREE *, PAGE *, u_int32_t); @@ -50,3 +51,4 @@ int __rec_sync(const DB *, u_int); int __rec_vmap(BTREE *, recno_t); int __rec_vout(BTREE *); int __rec_vpipe(BTREE *, recno_t); +__END_HIDDEN_DECLS |