1 /* @(#)fctldefs.h 1.2 98/10/08 Copyright 1996 J. Schilling */ 2 /* 3 * Generic header for users of open(), creat() and chmod() 4 * 5 * Copyright (c) 1996 J. Schilling 6 */ 7 /* 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2, or (at your option) 11 * any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; see the file COPYING. If not, write to 20 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 21 */ 22 23 #ifndef _FCTLDEFS_H 24 #define _FCTLDEFS_H 25 26 #ifndef _MCONFIG_H 27 #include <mconfig.h> 28 #endif 29 30 #include <sys/types.h> 31 #include <sys/stat.h> 32 33 #ifdef HAVE_FCNTL_H 34 35 # include <fcntl.h> 36 37 #else /* HAVE_FCNTL_H */ 38 39 # include <sys/file.h> 40 41 #endif /* HAVE_FCNTL_H */ 42 43 /* 44 * Do not define more than O_RDONLY / O_WRONLY / O_RDWR 45 * The values may differ. 46 */ 47 #ifndef O_RDONLY 48 #define O_RDONLY 0 49 #endif 50 #ifndef O_WRONLY 51 #define O_WRONLY 1 52 #endif 53 #ifndef O_RDWR 54 #define O_RDWR 2 55 #endif 56 57 #endif /* _FCTLDEFS_H */ 58