source: trunk/essentials/app-arch/tar/lib/fcntl_.h

Last change on this file was 3342, checked in by bird, 18 years ago

tar 1.16.1

File size: 2.0 KB
Line 
1/* Like <fcntl.h>, but with non-working flags defined to 0.
2
3 Copyright (C) 2006 Free Software Foundation, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
18
19/* written by Paul Eggert */
20
21#ifndef _GL_FCNTL_H
22#define _GL_FCNTL_H
23
24#include <sys/types.h>
25#include <sys/stat.h>
26#include <unistd.h>
27#include @ABSOLUTE_FCNTL_H@
28
29#if !defined O_DIRECT && defined O_DIRECTIO
30/* Tru64 spells it `O_DIRECTIO'. */
31# define O_DIRECT O_DIRECTIO
32#endif
33
34#ifndef O_DIRECT
35# define O_DIRECT 0
36#endif
37
38#ifndef O_DIRECTORY
39# define O_DIRECTORY 0
40#endif
41
42#ifndef O_DSYNC
43# define O_DSYNC 0
44#endif
45
46#ifndef O_NDELAY
47# define O_NDELAY 0
48#endif
49
50#ifndef O_NOATIME
51# define O_NOATIME 0
52#endif
53
54#ifndef O_NONBLOCK
55# define O_NONBLOCK O_NDELAY
56#endif
57
58#ifndef O_NOCTTY
59# define O_NOCTTY 0
60#endif
61
62#ifndef O_NOFOLLOW
63# define O_NOFOLLOW 0
64#endif
65
66#ifndef O_NOLINKS
67# define O_NOLINKS 0
68#endif
69
70#ifndef O_RSYNC
71# define O_RSYNC 0
72#endif
73
74#ifndef O_SYNC
75# define O_SYNC 0
76#endif
77
78/* For systems that distinguish between text and binary I/O.
79 O_BINARY is usually declared in fcntl.h */
80#if !defined O_BINARY && defined _O_BINARY
81 /* For MSC-compatible compilers. */
82# define O_BINARY _O_BINARY
83# define O_TEXT _O_TEXT
84#endif
85
86#ifdef __BEOS__
87 /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
88# undef O_BINARY
89# undef O_TEXT
90#endif
91
92#ifndef O_BINARY
93# define O_BINARY 0
94# define O_TEXT 0
95#endif
96
97#endif
Note: See TracBrowser for help on using the repository browser.