zoslib
z/OS C/C++ Library
Loading...
Searching...
No Matches
zos-io.h
Go to the documentation of this file.
1
2// Licensed Materials - Property of IBM
3// ZOSLIB
4// (C) Copyright IBM Corp. 2020. 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// APIs that implement various I/O operations.
10
11#ifndef ZOS_IO_H_
12#define ZOS_IO_H_
13
14#include "zos-macros.h"
15
16#include <stdarg.h>
17#include <sys/types.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#if TRACE_ON
28__Z_EXPORT void __fdinfo(int fd);
29
30__Z_EXPORT void __perror(const char *str);
31__Z_EXPORT int __dpoll(void *array, unsigned int count, int timeout);
32__Z_EXPORT ssize_t __write(int fd, const void *buffer, size_t sz);
33__Z_EXPORT ssize_t __read(int fd, void *buffer, size_t sz);
34__Z_EXPORT int __close(int fd);
35__Z_EXPORT int __open(const char *file, int oflag, int mode);
36#endif // if TRACE_ON
37
42__Z_EXPORT int dprintf(int fd, const char *, ...);
43
48__Z_EXPORT int vdprintf(int fd, const char *, va_list ap);
49
53__Z_EXPORT void __dump(int fd, const void *addr, size_t len, size_t bw);
54
58__Z_EXPORT void __dump_title(int fd, const void *addr, size_t len, size_t bw,
59 const char *, ...);
60
64__Z_EXPORT void __console(const void *p_in, int len_i);
65
69__Z_EXPORT int __console_printf(const char *fmt, ...);
70
79__Z_EXPORT int __find_file_in_path(char *out, int size, const char *envvar,
80 const char *file);
81
88__Z_EXPORT int __chgfdccsid(int fd, unsigned short ccsid);
89
96__Z_EXPORT int __chgfdcodeset(int fd, char* codeset);
97
103__Z_EXPORT int __setfdtext(int fd);
104
110__Z_EXPORT int __setfdbinary(int fd);
111
117__Z_EXPORT int __disableautocvt(int fd);
118
125__Z_EXPORT int __copyfdccsid(int sourcefd, int destfd);
126
132__Z_EXPORT int __getfdccsid(int fd);
133
140__Z_EXPORT int __setfdccsid(int fd, int t_ccsid);
141
147
153__Z_EXPORT void __memprintf(const char *format, ...);
154
155#ifdef __cplusplus
156}
157#endif
158#endif // ZOS_IO_H_
int __close(int fd)
Definition zos-io.cc:916
__Z_EXPORT int __chgfdcodeset(int fd, char *codeset)
Definition zos-io.cc:705
__Z_EXPORT int __getfdccsid(int fd)
Definition zos-io.cc:713
__Z_EXPORT int __copyfdccsid(int sourcefd, int destfd)
Definition zos-io.cc:685
__Z_EXPORT int __chgfdccsid(int fd, unsigned short ccsid)
Definition zos-io.cc:654
__Z_EXPORT int dprintf(int fd, const char *,...)
Definition zos-io.cc:142
__Z_EXPORT void __dump(int fd, const void *addr, size_t len, size_t bw)
Definition zos-io.cc:284
__Z_EXPORT void __console(const void *p_in, int len_i)
Definition zos-io.cc:32
__Z_EXPORT void __memprintf(const char *format,...)
Definition zos-io.cc:734
__Z_EXPORT int __console_printf(const char *fmt,...)
Definition zos-io.cc:73
__Z_EXPORT int vdprintf(int fd, const char *, va_list ap)
Definition zos-io.cc:112
__Z_EXPORT int __find_file_in_path(char *out, int size, const char *envvar, const char *file)
Definition zos-io.cc:617
__Z_EXPORT void __dump_title(int fd, const void *addr, size_t len, size_t bw, const char *,...)
Definition zos-io.cc:180
__Z_EXPORT int __setfdbinary(int fd)
Definition zos-io.cc:692
__Z_EXPORT int __setfdccsid(int fd, int t_ccsid)
Definition zos-io.cc:676
__Z_EXPORT int __disableautocvt(int fd)
Definition zos-io.cc:700
__Z_EXPORT int __setfdtext(int fd)
Definition zos-io.cc:696
__Z_EXPORT int __getLogMemoryFileNo()
Definition zos-io.cc:726
#define __Z_EXPORT
Definition zos-macros.h:13