1*ce099b40Smartin /* $NetBSD: cread.h,v 1.3 2008/04/28 20:23:15 martin Exp $ */ 213a1055eSleo 313a1055eSleo /*- 413a1055eSleo * Copyright (c) 1998 The NetBSD Foundation, Inc. 513a1055eSleo * All rights reserved. 613a1055eSleo * 713a1055eSleo * This code is derived from software contributed to The NetBSD Foundation 813a1055eSleo * by Leo Weppelman. 913a1055eSleo * 1013a1055eSleo * Redistribution and use in source and binary forms, with or without 1113a1055eSleo * modification, are permitted provided that the following conditions 1213a1055eSleo * are met: 1313a1055eSleo * 1. Redistributions of source code must retain the above copyright 1413a1055eSleo * notice, this list of conditions and the following disclaimer. 1513a1055eSleo * 2. Redistributions in binary form must reproduce the above copyright 1613a1055eSleo * notice, this list of conditions and the following disclaimer in the 1713a1055eSleo * documentation and/or other materials provided with the distribution. 1813a1055eSleo * 1913a1055eSleo * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2013a1055eSleo * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2113a1055eSleo * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2213a1055eSleo * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2313a1055eSleo * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2413a1055eSleo * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2513a1055eSleo * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2613a1055eSleo * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2713a1055eSleo * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2813a1055eSleo * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2913a1055eSleo * POSSIBILITY OF SUCH DAMAGE. 3013a1055eSleo */ 3113a1055eSleo 3213a1055eSleo #ifndef _LIBTOS_CREAD_H 3313a1055eSleo #define _LIBTOS_CREAD_H 3413a1055eSleo 3513a1055eSleo #include <libtos.h> 3613a1055eSleo 3713a1055eSleo #ifdef COMPRESSED_READ 38fa1cc128Sleo #ifndef _CREAD_C 3913a1055eSleo #define close cclose 4013a1055eSleo #define lseek clseek 4113a1055eSleo #define open copen 4213a1055eSleo #define read cread 43fa1cc128Sleo #endif /* ! _CREAD_C */ 4413a1055eSleo 4513a1055eSleo EXTERN int cclose PROTO((int)); 4613a1055eSleo EXTERN off_t clseek PROTO((int, off_t, int)); 4713a1055eSleo EXTERN int copen PROTO((const char *, int)); 48fa1cc128Sleo EXTERN size_t cread PROTO((int, void *, size_t)); 4913a1055eSleo 5013a1055eSleo #endif /* COMPRESSED_READ */ 5113a1055eSleo 5213a1055eSleo #endif /* !_LIBTOS_CREAD_H */ 53