CMS 3D CMS Logo

SysFile.h
Go to the documentation of this file.
1 #ifndef STORAGE_FACTORY_SYS_FILE_H
2 #define STORAGE_FACTORY_SYS_FILE_H
3 
4 #include <unistd.h>
5 #include <sys/stat.h>
6 #include <fcntl.h>
7 #include <utime.h>
8 #include <climits>
9 #include <cerrno>
10 #include <cstdlib>
11 
12 #if !defined O_SYNC && defined O_SYNCIO
13 #define O_SYNC O_SYNCIO
14 #endif
15 
16 #if !defined O_NONBLOCK && defined O_NDELAY
17 #define O_NONBLOCK O_NDELAY
18 #endif
19 
20 #ifndef O_NONBLOCK
21 #define O_NONBLOCK 0
22 #endif
23 
24 #endif // STORAGE_FACTORY_SYS_FILE_H