1*c0746c1eSchristos /*- 2*c0746c1eSchristos * Copyright (c) 2012 The NetBSD Foundation, Inc. 3*c0746c1eSchristos * All rights reserved. 4*c0746c1eSchristos * 5*c0746c1eSchristos * This code is derived from software contributed to The NetBSD Foundation 6*c0746c1eSchristos * by Charles Zhang <charles@NetBSD.org> and 7*c0746c1eSchristos * Martin Husemann <martin@NetBSD.org>. 8*c0746c1eSchristos * 9*c0746c1eSchristos * Redistribution and use in source and binary forms, with or without 10*c0746c1eSchristos * modification, are permitted provided that the following conditions 11*c0746c1eSchristos * are met: 12*c0746c1eSchristos * 1. Redistributions of source code must retain the above copyright 13*c0746c1eSchristos * notice, this list of conditions and the following disclaimer. 14*c0746c1eSchristos * 2. Redistributions in binary form must reproduce the above copyright 15*c0746c1eSchristos * notice, this list of conditions and the following disclaimer in the 16*c0746c1eSchristos * documentation and/or other materials provided with the distribution. 17*c0746c1eSchristos * 18*c0746c1eSchristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19*c0746c1eSchristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20*c0746c1eSchristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21*c0746c1eSchristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22*c0746c1eSchristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23*c0746c1eSchristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24*c0746c1eSchristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25*c0746c1eSchristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26*c0746c1eSchristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27*c0746c1eSchristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28*c0746c1eSchristos * POSSIBILITY OF SUCH DAMAGE. 29*c0746c1eSchristos */ 30*c0746c1eSchristos off_t filesize(const char * restrict); 31*c0746c1eSchristos void empty_outfile(const char * restrict); 32