1190498Sdelphij/*- 2190498Sdelphij * Copyright (c) 2009 Xin LI <delphij@FreeBSD.org> 3190498Sdelphij * All rights reserved. 4190498Sdelphij * 5190498Sdelphij * Redistribution and use in source and binary forms, with or without 6190498Sdelphij * modification, are permitted provided that the following conditions 7190498Sdelphij * are met: 8190498Sdelphij * 1. Redistributions of source code must retain the above copyright 9190498Sdelphij * notice, this list of conditions and the following disclaimer. 10190498Sdelphij * 2. Redistributions in binary form must reproduce the above copyright 11190498Sdelphij * notice, this list of conditions and the following disclaimer in the 12190498Sdelphij * documentation and/or other materials provided with the distribution. 13190498Sdelphij * 14190498Sdelphij * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15190498Sdelphij * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16190498Sdelphij * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17190498Sdelphij * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18190498Sdelphij * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19190498Sdelphij * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20190498Sdelphij * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21190498Sdelphij * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22190498Sdelphij * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23190498Sdelphij * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24190498Sdelphij * SUCH DAMAGE. 25190498Sdelphij * 26190498Sdelphij */ 27190498Sdelphij 28190498Sdelphij#include <sys/cdefs.h> 29190498Sdelphij__FBSDID("$FreeBSD: releng/10.3/lib/libc/db/mpool/mpool-compat.c 190498 2009-03-28 07:31:02Z delphij $"); 30190498Sdelphij 31190498Sdelphij#include <db.h> 32190498Sdelphij#include <mpool.h> 33190498Sdelphij 34190498Sdelphijvoid *__mpool_new__44bsd(MPOOL *, pgno_t *); 35190498Sdelphij 36190498Sdelphijvoid * 37190498Sdelphij__mpool_new__44bsd(MPOOL *mp, pgno_t *pgnoaddr) 38190498Sdelphij{ 39190498Sdelphij 40190498Sdelphij return (mpool_new(mp, pgnoaddr, MPOOL_PAGE_NEXT)); 41190498Sdelphij} 42190498Sdelphij 43190498Sdelphij__sym_compat(mpool_new, __mpool_new_44bsd, FBSD_1.0); 44