1353141Sphilip/* 2353141Sphilip * Copyright (c) 1994, 1995, 1996 3353141Sphilip * The Regents of the University of California. All rights reserved. 4353141Sphilip * 5353141Sphilip * Redistribution and use in source and binary forms, with or without 6353141Sphilip * modification, are permitted provided that the following conditions 7353141Sphilip * are met: 8353141Sphilip * 1. Redistributions of source code must retain the above copyright 9353141Sphilip * notice, this list of conditions and the following disclaimer. 10353141Sphilip * 2. Redistributions in binary form must reproduce the above copyright 11353141Sphilip * notice, this list of conditions and the following disclaimer in the 12353141Sphilip * documentation and/or other materials provided with the distribution. 13353141Sphilip * 3. All advertising materials mentioning features or use of this software 14353141Sphilip * must display the following acknowledgement: 15353141Sphilip * This product includes software developed by the Computer Systems 16353141Sphilip * Engineering Group at Lawrence Berkeley Laboratory. 17353141Sphilip * 4. Neither the name of the University nor of the Laboratory may be used 18353141Sphilip * to endorse or promote products derived from this software without 19353141Sphilip * specific prior written permission. 20353141Sphilip * 21353141Sphilip * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22353141Sphilip * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23353141Sphilip * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24353141Sphilip * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25353141Sphilip * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26353141Sphilip * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27353141Sphilip * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28353141Sphilip * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29353141Sphilip * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30353141Sphilip * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31353141Sphilip * SUCH DAMAGE. 32353141Sphilip */ 33353141Sphilip 34353141Sphilip#ifndef unix_h 35353141Sphilip#define unix_h 36353141Sphilip 37353141Sphilip/* 38353141Sphilip * Definitions to make MSVC C runtime library structures and functions 39353141Sphilip * look like the UNIX structures and functions they are intended to 40353141Sphilip * resemble. 41353141Sphilip */ 42353141Sphilip#ifdef _MSC_VER 43353141Sphilip #define stat _stat 44353141Sphilip #define fstat _fstat 45353141Sphilip 46353141Sphilip #define open _open 47353141Sphilip #define O_RDONLY _O_RDONLY 48353141Sphilip #define O_WRONLY _O_WRONLY 49353141Sphilip #define O_RDWR _O_RDWR 50353141Sphilip #define O_BINARY _O_BINARY 51353141Sphilip #define O_CREAT _O_CREAT 52353141Sphilip #define O_TRUNC _O_TRUNC 53353141Sphilip #define read _read 54353141Sphilip #define write _write 55353141Sphilip #define close _close 56353141Sphilip#endif 57353141Sphilip 58353141Sphilip#endif 59