zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
stdio.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_STDIO_H_
10#define ZOS_STDIO_H_
11
12#include "zos-macros.h"
13
14#define __XPLAT 1
15
16typedef struct __ffile FILE;
17
18#if defined(__cplusplus)
19extern "C" {
20#endif
24__Z_EXPORT extern FILE *__fopen_ascii(const char *filename, const char *mode);
25
26#if defined(__cplusplus)
27}
28#endif
29
30#if defined(ZOSLIB_OVERRIDE_CLIB)
31
32#undef fopen
33#define fopen __fopen_replaced
34#include_next <stdio.h>
35#undef fopen
36
37#if defined(__cplusplus)
38extern "C" {
39#endif
40
41__Z_EXPORT extern FILE *fopen(const char *filename, const char *mode) __asm("__fopen_ascii");
42
43#if defined(__cplusplus)
44}
45#endif
46
47#else // #if !(defined(ZOSLIB_OVERRIDE_CLIB)
48
49#include_next <stdio.h>
50
51#endif
52
53#endif
struct __ffile FILE
Definition stdio.h:16
__Z_EXPORT FILE * __fopen_ascii(const char *filename, const char *mode)
Definition zos-io.cc:842
#define __Z_EXPORT
Definition zos-macros.h:13