security/nss/lib/dbm/include/extern.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/dbm/include/extern.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,63 @@
     1.4 +/*-
     1.5 + * Copyright (c) 1991, 1993, 1994
     1.6 + *	The Regents of the University of California.  All rights reserved.
     1.7 + *
     1.8 + * Redistribution and use in source and binary forms, with or without
     1.9 + * modification, are permitted provided that the following conditions
    1.10 + * are met:
    1.11 + * 1. Redistributions of source code must retain the above copyright
    1.12 + *    notice, this list of conditions and the following disclaimer.
    1.13 + * 2. Redistributions in binary form must reproduce the above copyright
    1.14 + *    notice, this list of conditions and the following disclaimer in the
    1.15 + *    documentation and/or other materials provided with the distribution.
    1.16 + * 3. ***REMOVED*** - see 
    1.17 + *    ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
    1.18 + * 4. Neither the name of the University nor the names of its contributors
    1.19 + *    may be used to endorse or promote products derived from this software
    1.20 + *    without specific prior written permission.
    1.21 + *
    1.22 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    1.23 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.24 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.25 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    1.26 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.27 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.28 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.29 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.30 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.31 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.32 + * SUCH DAMAGE.
    1.33 + *
    1.34 + *	@(#)extern.h	8.4 (Berkeley) 6/16/94
    1.35 + */
    1.36 +
    1.37 +BUFHEAD	*__add_ovflpage (HTAB *, BUFHEAD *);
    1.38 +int	 __addel (HTAB *, BUFHEAD *, const DBT *, const DBT *);
    1.39 +int	 __big_delete (HTAB *, BUFHEAD *);
    1.40 +int	 __big_insert (HTAB *, BUFHEAD *, const DBT *, const DBT *);
    1.41 +int	 __big_keydata (HTAB *, BUFHEAD *, DBT *, DBT *, int);
    1.42 +int	 __big_return (HTAB *, BUFHEAD *, int, DBT *, int);
    1.43 +int	 __big_split (HTAB *, BUFHEAD *, BUFHEAD *, BUFHEAD *,
    1.44 +		uint32, uint32, SPLIT_RETURN *);
    1.45 +int	 __buf_free (HTAB *, int, int);
    1.46 +void	 __buf_init (HTAB *, int);
    1.47 +uint32	 __call_hash (HTAB *, char *, size_t);
    1.48 +int	 __delpair (HTAB *, BUFHEAD *, int);
    1.49 +int	 __expand_table (HTAB *);
    1.50 +int	 __find_bigpair (HTAB *, BUFHEAD *, int, char *, int);
    1.51 +uint16	 __find_last_page (HTAB *, BUFHEAD **);
    1.52 +void	 __free_ovflpage (HTAB *, BUFHEAD *);
    1.53 +BUFHEAD	*__get_buf (HTAB *, uint32, BUFHEAD *, int);
    1.54 +int	 __get_page (HTAB *, char *, uint32, int, int, int);
    1.55 +int	 __ibitmap (HTAB *, int, int, int);
    1.56 +uint32	 __log2 (uint32);
    1.57 +int	 __put_page (HTAB *, char *, uint32, int, int);
    1.58 +void	 __reclaim_buf (HTAB *, BUFHEAD *);
    1.59 +int	 __split_page (HTAB *, uint32, uint32);
    1.60 +
    1.61 +/* Default hash routine. */
    1.62 +extern uint32 (*__default_hash) (const void *, size_t);
    1.63 +
    1.64 +#ifdef HASH_STATISTICS
    1.65 +extern int hash_accesses, hash_collisions, hash_expansions, hash_overflows;
    1.66 +#endif

mercurial