summaryrefslogtreecommitdiff
path: root/PACE/pace/posix/fcntl.h
blob: fc57bc098e3e09592f67cb907d0b278e77ffd33f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* $Id$

 * ============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    pace/posix/fnctl.h
 *
 * = AUTHOR
 *    Luther Baker
 *
 * ============================================================================ */

#ifndef PACE_FCNTL_H_POSIX
#define PACE_FCNTL_H_POSIX

#include "pace/sys/types.h"
#include "pace/unistd.h"
#include "pace/sys/stat.h"
#include <fcntl.h>

#if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
#endif /* PACE_HAS_CPLUSPLUS */

#define PACE_FD_CLOEXEC FD_CLOEXEC
#define PACE_F_DUPFD D_DUPFD
#define PACE_F_GETFD F_GETFD
#define PACE_F_GETFL F_GETFL
#define PACE_F_GETLK F_GETLK
#define PACE_F_RDLCK F_RDLCK
#define PACE_F_SETFD F_SETFD
#define PACE_F_SETFL F_SETFL
#define PACE_F_SETLK F_SETLK
#define PACE_F_SETLKW F_SETLKW
#define PACE_F_UNLCK F_UNLCK
#define PACE_F_WRLCK F_WRLCK
#define PACE_O_ACCMODE O_ACCMODE
#define PACE_O_APPEND O_APPEND
#define PACE_O_CREAT O_CREAT
#define PACE_O_DSYNC O_DSYNC
#define PACE_O_EXCL O_EXCL
#define PACE_O_NOCTTY O_NOCTTY
#define PACE_O_NONBLOCK O_NONBLOCK
#define PACE_O_RDONLY O_RDONLY
#define PACE_O_RDWR O_RDWR
#define PACE_O_RSYNC O_RSYNC
#define PACE_O_SYNC O_SYNC
#define PACE_O_TRUNC O_TRUNC
#define PACE_O_WRONLY O_WRONLY

#ifndef PACE_FLOCK
#define PACE_FLOCK
typedef struct flock pace_flock;
#endif /* PACE_FLOCK */

#if defined (PACE_HAS_CPLUSPLUS)
}
#endif /* PACE_HAS_CPLUSPLUS */

#endif /* PACE_FCNTL_H_POSIX */