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