zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
stdlib.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_STDLIB_H_
10#define ZOS_STDLIB_H_
11
12#define __XPLAT 1
13#include "zos-macros.h"
14
15#if defined(__cplusplus)
16extern "C" {
17#endif
18__Z_EXPORT char *__realpath_extended(const char * __restrict__, char * __restrict__);
20#if defined(__cplusplus)
21}
22#endif
23
24#if defined(ZOSLIB_OVERRIDE_CLIB) || defined(ZOSLIB_OVERRIDE_CLIB_STDLIB)
25/* Modify function names in header to avoid conflict with new prototypes */
26#undef realpath
27#define realpath __realpath_replaced
28#undef mkstemp
29#define mkstemp __mkstemp_replaced
30#endif
31
32#if defined(ZOSLIB_OVERRIDE_CLIB_GETENV)
33#undef getenv
34#define getenv __getenv_replaced
35#endif
36
37#include_next <stdlib.h>
38
39#if defined(ZOSLIB_OVERRIDE_CLIB) || defined(ZOSLIB_OVERRIDE_CLIB_STDLIB)
40#undef mkstemp
41#undef realpath
42
43#if defined(__cplusplus)
44extern "C" {
45#endif
46
50__Z_EXPORT char *realpath(const char * __restrict__, char * __restrict__) __asm("__realpath_extended");
54__Z_EXPORT int mkstemp(char*) __asm("__mkstemp_ascii");
55#if defined(__cplusplus)
56}
57#endif
58#endif
59
60#if defined(ZOSLIB_OVERRIDE_CLIB_GETENV)
61#undef getenv
62
63#if defined(__cplusplus)
64extern "C" {
65#endif
66
71__Z_EXPORT char* getenv(const char*) asm("@@A00423");
72
73#if defined(__cplusplus)
74}
75#endif
76#endif
77
78#endif
__Z_EXPORT char * __realpath_extended(const char *__restrict__, char *__restrict__)
__Z_EXPORT int __mkstemp_ascii(char *)
Definition zos-io.cc:904
#define __Z_EXPORT
Definition zos-macros.h:13