zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
include
fcntl.h
Go to the documentation of this file.
1
2
// Licensed Materials - Property of IBM
3
// ZOSLIB
4
// (C) Copyright IBM Corp. 2021. All Rights Reserved.
5
// US Government Users Restricted Rights - Use, duplication
6
// or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
8
9
#ifndef ZOS_FCNTL_H_
10
#define ZOS_FCNTL_H_
11
12
#include "
zos-macros.h
"
13
14
#define __XPLAT 1
15
16
#if defined(__cplusplus)
17
extern
"C"
{
18
#endif
22
__Z_EXPORT
extern
int
__open_ascii
(
const
char
*filename,
int
opts, ...);
23
#if defined(__cplusplus)
24
}
25
#endif
26
27
#if defined(ZOSLIB_OVERRIDE_CLIB)
28
29
#undef open
30
#define open __open_replaced
31
#include_next <fcntl.h>
32
#undef open
33
34
#if defined(__cplusplus)
35
extern
"C"
{
36
#endif
37
38
__Z_EXPORT
extern
int
open(
const
char
*filename,
int
opts, ...) __asm("
__open_ascii
");
39
40
#if defined(__cplusplus)
41
}
42
#endif
43
44
#else
// #if !(defined(ZOSLIB_OVERRIDE_CLIB)
45
46
#include_next <fcntl.h>
47
48
#endif
49
50
#if (__EDC_TARGET < 0x42050000) && defined(ZOSLIB_ENABLE_V2R5_FEATURES)
51
#define O_CLOEXEC 0x00001000
52
#define O_DIRECT 0x00002000
53
#define O_NOFOLLOW 0x00004000
54
#define O_DIRECTORY 0x00008000
55
#define O_PATH 0x00080000
56
#endif
57
58
#endif
__open_ascii
__Z_EXPORT int __open_ascii(const char *filename, int opts,...)
Definition
zos-io.cc:799
zos-macros.h
__Z_EXPORT
#define __Z_EXPORT
Definition
zos-macros.h:13
Generated by
1.9.8