1 /* Copyright (C) 2000 Aladdin Enterprises. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 /* $Id: fcntl_.h,v 1.5 2002/02/21 22:24:51 giles Exp $ */ 18 /* Declaration of the O_* flags for open */ 19 20 #ifndef fcntl__INCLUDED 21 # define fcntl__INCLUDED 22 23 /* 24 * This absurd little file is needed because Microsoft C, in defiance 25 * of multiple standards, does not define the O_ modes for 'open'. 26 */ 27 28 /* 29 * We must include std.h before any file that includes (or might include) 30 * sys/types.h. 31 */ 32 #include "std.h" 33 #include <fcntl.h> 34 35 #if !defined(O_APPEND) && defined(_O_APPEND) 36 # define O_APPEND _O_APPEND 37 #endif 38 #if !defined(O_BINARY) && defined(_O_BINARY) 39 # define O_BINARY _O_BINARY 40 #endif 41 #if !defined(O_CREAT) && defined(_O_CREAT) 42 # define O_CREAT _O_CREAT 43 #endif 44 #if !defined(O_EXCL) && defined(_O_EXCL) 45 # define O_EXCL _O_EXCL 46 #endif 47 #if !defined(O_RDONLY) && defined(_O_RDONLY) 48 # define O_RDONLY _O_RDONLY 49 #endif 50 #if !defined(O_RDWR) && defined(_O_RDWR) 51 # define O_RDWR _O_RDWR 52 #endif 53 #if !defined(O_TRUNC) && defined(_O_TRUNC) 54 # define O_TRUNC _O_TRUNC 55 #endif 56 #if !defined(O_WRONLY) && defined(_O_WRONLY) 57 # define O_WRONLY _O_WRONLY 58 #endif 59 60 #endif /* fcntl__INCLUDED */ 61