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