199282790SJohn Baldwin /* LINTLIBRARY */ 299282790SJohn Baldwin /*- 399282790SJohn Baldwin * Copyright 1996-1998 John D. Polstra. 499282790SJohn Baldwin * Copyright 2014 Andrew Turner. 599282790SJohn Baldwin * Copyright 2014-2015 The FreeBSD Foundation. 699282790SJohn Baldwin * All rights reserved. 799282790SJohn Baldwin * 899282790SJohn Baldwin * Portions of this software were developed by Andrew Turner 999282790SJohn Baldwin * under sponsorship from the FreeBSD Foundation. 1099282790SJohn Baldwin * 1199282790SJohn Baldwin * Redistribution and use in source and binary forms, with or without 1299282790SJohn Baldwin * modification, are permitted provided that the following conditions 1399282790SJohn Baldwin * are met: 1499282790SJohn Baldwin * 1. Redistributions of source code must retain the above copyright 1599282790SJohn Baldwin * notice, this list of conditions and the following disclaimer. 1699282790SJohn Baldwin * 2. Redistributions in binary form must reproduce the above copyright 1799282790SJohn Baldwin * notice, this list of conditions and the following disclaimer in the 1899282790SJohn Baldwin * documentation and/or other materials provided with the distribution. 1999282790SJohn Baldwin * 2099282790SJohn Baldwin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2199282790SJohn Baldwin * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2299282790SJohn Baldwin * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2399282790SJohn Baldwin * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2499282790SJohn Baldwin * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2599282790SJohn Baldwin * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2699282790SJohn Baldwin * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2799282790SJohn Baldwin * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2899282790SJohn Baldwin * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2999282790SJohn Baldwin * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3099282790SJohn Baldwin */ 3199282790SJohn Baldwin 3299282790SJohn Baldwin #include <sys/cdefs.h> 33*51015e6dSKonstantin Belousov #include "csu_common.h" 34