-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathstdio.h
More file actions
53 lines (38 loc) · 1.09 KB
/
Copy pathstdio.h
File metadata and controls
53 lines (38 loc) · 1.09 KB
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
///////////////////////////////////////////////////////////////////////////////
// Licensed Materials - Property of IBM
// ZOSLIB
// (C) Copyright IBM Corp. 2021. All Rights Reserved.
// US Government Users Restricted Rights - Use, duplication
// or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
///////////////////////////////////////////////////////////////////////////////
#ifndef ZOS_STDIO_H_
#define ZOS_STDIO_H_
#include "zos-macros.h"
#define __XPLAT 1
typedef struct __ffile FILE;
#if defined(__cplusplus)
extern "C" {
#endif
/**
* Same as C open but tags new files as ASCII (819)
*/
__Z_EXPORT extern FILE *__fopen_ascii(const char *filename, const char *mode);
#if defined(__cplusplus)
}
#endif
#if defined(ZOSLIB_OVERRIDE_CLIB)
#undef fopen
#define fopen __fopen_replaced
#include_next <stdio.h>
#undef fopen
#if defined(__cplusplus)
extern "C" {
#endif
__Z_EXPORT extern FILE *fopen(const char *filename, const char *mode) __asm("__fopen_ascii");
#if defined(__cplusplus)
}
#endif
#else // #if !(defined(ZOSLIB_OVERRIDE_CLIB)
#include_next <stdio.h>
#endif
#endif