|
zoslib
z/OS C/C++ Library
|
#include "zos-base.h"#include <_Ccsid.h>#include <errno.h>#include <fcntl.h>#include <poll.h>#include <pthread.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include <sys/types.h>#include <sys/socket.h>#include <sys/inotify.h>#include <utmpx.h>Macros | |
| #define | _AE_BIMODAL 1 |
Functions | |
| void | __console (const void *p_in, int len_i) |
| int | __console_printf (const char *fmt,...) |
| int | vdprintf (int fd, const char *fmt, va_list ap) |
| int | dprintf (int fd, const char *fmt,...) |
| void | __dump_title (int fd, const void *addr, size_t len, size_t bw, const char *format,...) |
| void | __dump (int fd, const void *addr, size_t len, size_t bw) |
| int | __find_file_in_path (char *out, int size, const char *envvar, const char *file) |
| int | __chgfdccsid (int fd, unsigned short ccsid) |
| int | __chgpathccsid (char *pathname, unsigned short ccsid) |
| int | __setfdccsid (int fd, int t_ccsid) |
| int | __copyfdccsid (int sourcefd, int destfd) |
| int | __setfdbinary (int fd) |
| int | __setfdtext (int fd) |
| int | __disableautocvt (int fd) |
| int | __chgfdcodeset (int fd, char *codeset) |
| int | __getfdccsid (int fd) |
| int | __getLogMemoryFileNo () |
| void | __setLogMemoryUsage (bool value) |
| void | __memprintf (const char *format,...) |
| int | __pipe_orig (int[2]) asm("pipe") |
| int | __socketpair_orig (int domain, int type, int protocol, int sv[2]) asm("socketpair") |
| int | __close_orig (int) asm("close") |
| int | __open_orig (const char *filename, int opts,...) asm("@@A00144") |
| int | __mkstemp_orig (char *) asm("@@A00184") |
| FILE * | __fopen_orig (const char *filename, const char *mode) asm("@@A00246") |
| int | __mkfifo_orig (const char *pathname, mode_t mode) asm("@@A00133") |
| struct utmpx * | __getutxent_orig (void) asm("getutxent") |
| int | utmpxname (char *file) |
| struct utmpx * | __getutxent_ascii (void) |
| int | __open_ascii (const char *filename, int opts,...) |
| FILE * | __fopen_ascii (const char *filename, const char *mode) |
| int | __pipe_ascii (int fd[2]) |
| int | __mkfifo_ascii (const char *pathname, mode_t mode) |
| int | __mkstemp_ascii (char *tmpl) |
| int | __close (int fd) |
| int | __socketpair_ascii (int domain, int type, int protocol, int sv[2]) |
| #define _AE_BIMODAL 1 |
| int __chgfdccsid | ( | int | fd, |
| unsigned short | ccsid | ||
| ) |
Change file descriptor to CCSID.
| [in] | fd | file descriptor. |
| [in] | ccsid | CCSID. |
| int __chgfdcodeset | ( | int | fd, |
| char * | codeset | ||
| ) |
Change file descriptor to CCSID from a codeset
| [in] | fd | file descriptor. |
| [in] | codeset | code set |
| int __chgpathccsid | ( | char * | pathname, |
| unsigned short | ccsid | ||
| ) |
| int __close | ( | int | fd | ) |
| int __close_orig | ( | int | ) |
| void __console | ( | const void * | p_in, |
| int | len_i | ||
| ) |
Print given buffer to MVS Console.
| int __console_printf | ( | const char * | fmt, |
| ... | |||
| ) |
Print formatted data to MVS Console.
| int __copyfdccsid | ( | int | sourcefd, |
| int | destfd | ||
| ) |
Copy ccsid from source fd to destination fd
| [in] | sourcefd | file descriptor. |
| [in] | destfd | file descriptor. |
| int __disableautocvt | ( | int | fd | ) |
Disable auto-conversion on file descriptors
| [in] | fd | file descriptor. |
| void __dump | ( | int | fd, |
| const void * | addr, | ||
| size_t | len, | ||
| size_t | bw | ||
| ) |
Dump to console.
| void __dump_title | ( | int | fd, |
| const void * | addr, | ||
| size_t | len, | ||
| size_t | bw, | ||
| const char * | format, | ||
| ... | |||
| ) |
Dump title to console.
| int __find_file_in_path | ( | char * | out, |
| int | size, | ||
| const char * | envvar, | ||
| const char * | file | ||
| ) |
Finds file in a given path
| [out] | out | Found path string |
| [in] | size | Max size of path string |
| [in] | envar | Environment variable to search |
| [in] | file | file to search |
| FILE * __fopen_ascii | ( | const char * | filename, |
| const char * | mode | ||
| ) |
Same as C open but tags new files as ASCII (819)
| FILE * __fopen_orig | ( | const char * | filename, |
| const char * | mode | ||
| ) |
| int __getfdccsid | ( | int | fd | ) |
Get file descriptor CCSID.
| [in] | fd | file descriptor. |
| int __getLogMemoryFileNo | ( | ) |
Returns the fileno to which memory diagnostics is written (use for instance in a __display_backtrace(__getLogMemoryFileNo()); call).
| struct utmpx * __getutxent_ascii | ( | void | ) |
| struct utmpx * __getutxent_orig | ( | void | ) |
| void __memprintf | ( | const char * | format, |
| ... | |||
| ) |
Logs memory allocation and release to the file name specified in the environment variable zoslib_config_t.MEMORY_USAGE_LOG_FILE_ENVAR.
| [in] | same | as C's printf() parameters |
| int __mkfifo_ascii | ( | const char * | pathname, |
| mode_t | mode | ||
| ) |
Same as C mkfifo but tags FIFO special files as ASCII (819)
| int __mkfifo_orig | ( | const char * | pathname, |
| mode_t | mode | ||
| ) |
| int __mkstemp_ascii | ( | char * | tmpl | ) |
| int __mkstemp_orig | ( | char * | ) |
| int __open_ascii | ( | const char * | filename, |
| int | opts, | ||
| ... | |||
| ) |
Same as C open but tags new files as ASCII (819)
| int __open_orig | ( | const char * | filename, |
| int | opts, | ||
| ... | |||
| ) |
| int __pipe_ascii | ( | int | fd[2] | ) |
| int __pipe_orig | ( | int | [2] | ) |
| int __setfdbinary | ( | int | fd | ) |
Change file descriptor to binary
| [in] | fd | file descriptor. |
| int __setfdccsid | ( | int | fd, |
| int | t_ccsid | ||
| ) |
Set file descriptor to the provided CCSID.
| [in] | fd | file descriptor. |
| [in] | t_ccsid | CCSID. |
| int __setfdtext | ( | int | fd | ) |
Change file descriptor to text (819 or controlled via envar)
| [in] | fd | file descriptor. |
|
extern |
| int __socketpair_ascii | ( | int | domain, |
| int | type, | ||
| int | protocol, | ||
| int | sv[2] | ||
| ) |
| int __socketpair_orig | ( | int | domain, |
| int | type, | ||
| int | protocol, | ||
| int | sv[2] | ||
| ) |
| int dprintf | ( | int | fd, |
| const char * | fmt, | ||
| ... | |||
| ) |
Debug Printf.
| int utmpxname | ( | char * | file | ) |
| int vdprintf | ( | int | fd, |
| const char * | fmt, | ||
| va_list | ap | ||
| ) |
Variadic Debug Printf.