1*57e22627SCy Schubert /* 2*57e22627SCy Schubert * Copyright (c) 1994, 1995, 1996 3*57e22627SCy Schubert * The Regents of the University of California. All rights reserved. 4*57e22627SCy Schubert * 5*57e22627SCy Schubert * Redistribution and use in source and binary forms, with or without 6*57e22627SCy Schubert * modification, are permitted provided that the following conditions 7*57e22627SCy Schubert * are met: 8*57e22627SCy Schubert * 1. Redistributions of source code must retain the above copyright 9*57e22627SCy Schubert * notice, this list of conditions and the following disclaimer. 10*57e22627SCy Schubert * 2. Redistributions in binary form must reproduce the above copyright 11*57e22627SCy Schubert * notice, this list of conditions and the following disclaimer in the 12*57e22627SCy Schubert * documentation and/or other materials provided with the distribution. 13*57e22627SCy Schubert * 3. All advertising materials mentioning features or use of this software 14*57e22627SCy Schubert * must display the following acknowledgement: 15*57e22627SCy Schubert * This product includes software developed by the Computer Systems 16*57e22627SCy Schubert * Engineering Group at Lawrence Berkeley Laboratory. 17*57e22627SCy Schubert * 4. Neither the name of the University nor of the Laboratory may be used 18*57e22627SCy Schubert * to endorse or promote products derived from this software without 19*57e22627SCy Schubert * specific prior written permission. 20*57e22627SCy Schubert * 21*57e22627SCy Schubert * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22*57e22627SCy Schubert * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23*57e22627SCy Schubert * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24*57e22627SCy Schubert * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25*57e22627SCy Schubert * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26*57e22627SCy Schubert * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27*57e22627SCy Schubert * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28*57e22627SCy Schubert * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29*57e22627SCy Schubert * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30*57e22627SCy Schubert * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31*57e22627SCy Schubert * SUCH DAMAGE. 32*57e22627SCy Schubert */ 33*57e22627SCy Schubert 34*57e22627SCy Schubert #ifndef unix_h 35*57e22627SCy Schubert #define unix_h 36*57e22627SCy Schubert 37*57e22627SCy Schubert /* 38*57e22627SCy Schubert * Definitions to make MSVC C runtime library structures and functions 39*57e22627SCy Schubert * look like the UNIX structures and functions they are intended to 40*57e22627SCy Schubert * resemble. 41*57e22627SCy Schubert */ 42*57e22627SCy Schubert #ifdef _MSC_VER 43*57e22627SCy Schubert #define stat _stat 44*57e22627SCy Schubert #define fstat _fstat 45*57e22627SCy Schubert 46*57e22627SCy Schubert #define open _open 47*57e22627SCy Schubert #define O_RDONLY _O_RDONLY 48*57e22627SCy Schubert #define O_WRONLY _O_WRONLY 49*57e22627SCy Schubert #define O_RDWR _O_RDWR 50*57e22627SCy Schubert #define O_BINARY _O_BINARY 51*57e22627SCy Schubert #define O_CREAT _O_CREAT 52*57e22627SCy Schubert #define O_TRUNC _O_TRUNC 53*57e22627SCy Schubert #define read _read 54*57e22627SCy Schubert #define write _write 55*57e22627SCy Schubert #define close _close 56*57e22627SCy Schubert #endif 57*57e22627SCy Schubert 58*57e22627SCy Schubert #endif 59