16#error EBCDIC codeset detected. ZOSLIB is compatible with the ASCII codeset only.
23#include <sys/__getipc.h>
43#define IPC_CLEANUP_ENVAR_DEFAULT "__IPC_CLEANUP"
44#define RUNTIME_LIMIT_ENVAR_DEFAULT "__RUNTIMELIMIT"
45#define CCSID_GUESS_BUF_SIZE_DEFAULT "__CCSIDGUESSBUFSIZE"
46#define UNTAGGED_READ_MODE_DEFAULT "__UNTAGGED_READ_MODE"
47#define UNTAGGED_READ_MODE_CCSID1047_DEFAULT "__UNTAGGED_READ_MODE_CCSID1047"
48#define MEMORY_USAGE_LOG_FILE_ENVAR_DEFAULT "__MEMORY_USAGE_LOG_FILE"
49#define MEMORY_USAGE_LOG_LEVEL_ENVAR_DEFAULT "__MEMORY_USAGE_LOG_LEVEL"
111 const char *product_owner,
112 const char *feature_name,
113 const char *product_name,
344 const char *filename,
int fd, off_t offset);
384 unsigned int event_list,
unsigned int *secs_rem,
385 unsigned int *nsecs_rem);
471 const char *UNTAGGED_READ_MODE_CCSID1047_ENVAR =
483 const char *MEMORY_USAGE_LOG_LEVEL_ENVAR =
606#include <unordered_map>
608inline bool operator==(
const pthread_t &_a,
const pthread_t &_b) {
609 return _a.__ == _b.__;
611inline bool operator!=(
const pthread_t &_a,
const pthread_t &_b) {
612 return _a.__ != _b.__;
614inline bool operator<=(
const pthread_t &_a,
const pthread_t &_b) {
615 return _a.__ <= _b.__;
617inline bool operator>=(
const pthread_t &_a,
const pthread_t &_b) {
618 return _a.__ >= _b.__;
620inline bool operator<(
const pthread_t &_a,
const pthread_t &_b) {
621 return _a.__ < _b.__;
623inline bool operator>(
const pthread_t &_a,
const pthread_t &_b) {
624 return _a.__ > _b.__;
626inline bool operator==(
const pthread_t &_a,
const int _b) {
627 return _a.__ ==
static_cast<unsigned long long>(_b);
629inline bool operator!=(
const pthread_t &_a,
const int _b) {
630 return _a.__ !=
static_cast<unsigned long long>(_b);
634 std::string envarName;
635 std::string envarValue;
637 zoslibEnvar(std::string name, std::string value)
638 : envarName(name), envarValue(value) {}
640 bool operator<(
const zoslibEnvar &t)
const {
641 return std::tie(envarName, envarValue) <
642 std::tie(t.envarName, t.envarValue);
649 std::terminate_handler _th;
653 std::map<zoslibEnvar, std::string> envarHelpMap;
660 bool isValidZOSLIBEnvar(std::string envar);
661 int setEnvarHelpMap(
void);
662 void populateLEFunctionPointers(
void);
664 void __abort() { _th(); }
680template <std::
size_t N>
__Z_EXPORT std::bitset<N>
681 __subtractOne(std::bitset<N> bs) {
683 for (
int i=0; i<bs.size(); i++) {
700template <std::
size_t N>
__Z_EXPORT std::bitset<N>
701 __addOne(std::bitset<N> bs) {
703 for (
int i=0; i<bs.size(); i++) {
struct __ffile FILE
Definition stdio.h:16
Definition zos-base.h:430
void * sfaddr
Definition zos-base.h:431
unsigned long t0
Definition zos-base.h:432
void * prev_dsa
Definition zos-base.h:63
int * return_addr
Definition zos-base.h:66
char entry_name[256]
Definition zos-base.h:65
void * entry_point
Definition zos-base.h:64
int * stack_addr
Definition zos-base.h:68
int * entry_addr
Definition zos-base.h:67
Definition zos-base.h:497
const char * IPC_CLEANUP_ENVAR
Definition zos-base.h:501
const char * MEMORY_USAGE_LOG_FILE_ENVAR
Definition zos-base.h:525
const char * MEMORY_USAGE_LOG_LEVEL_ENVAR
Definition zos-base.h:530
const char * RUNTIME_LIMIT_ENVAR
Definition zos-base.h:505
const char * UNTAGGED_READ_MODE_ENVAR
Definition zos-base.h:514
const char * UNTAGGED_READ_MODE_CCSID1047_ENVAR
Definition zos-base.h:519
const char * CCSID_GUESS_BUF_SIZE_ENVAR
Definition zos-base.h:510
#define MEMORY_USAGE_LOG_LEVEL_ENVAR_DEFAULT
Definition zos-base.h:49
__Z_EXPORT void backtrace_symbols_fd(void *const *buffer, int size, int fd)
Definition zos.cc:446
struct __Z_EXPORT zoslib_config zoslib_config_t
__Z_EXPORT int __getentropy(void *buffer, size_t length)
Definition zos-getentropy.cc:74
COND_TIME_WAIT_CONSTANTS
Definition zos-base.h:387
@ CW_CONDVAR
Definition zos-base.h:387
@ CW_INTRPT
Definition zos-base.h:387
__Z_EXPORT char ** backtrace_symbols(void *const *buffer, int size)
Definition zos.cc:281
#define MEMORY_USAGE_LOG_FILE_ENVAR_DEFAULT
Definition zos-base.h:48
__Z_EXPORT int __zfree(void *addr, int len)
Definition zos.cc:1445
__Z_EXPORT int gettid()
Definition zos.cc:214
__Z_EXPORT void __tcp_clear_to_close(int socket, unsigned int secs)
Definition zos.cc:1790
__Z_EXPORT void * __iterate_stack_and_get(void *dsaptr, __stack_info *si)
Definition zos.cc:2343
__Z_EXPORT bool __doLogMemoryWarning()
Definition zos.cc:3063
__Z_EXPORT int __cond_timed_wait(unsigned int secs, unsigned int nsecs, unsigned int event_list, unsigned int *secs_rem, unsigned int *nsecs_rem)
Definition zos.cc:715
__Z_EXPORT pthread_t __getMainThreadSelf()
__Z_EXPORT int get_ipcs_overview(IPCQPROC *info)
Definition zos.cc:543
__Z_EXPORT int __dlcb_entry_name(char *buf, int size, void *dlcb)
Definition zos.cc:665
__Z_EXPORT int backtrace(void **buffer, int size)
Definition zos.cc:238
__Z_EXPORT void __cleanupipc(int others)
Definition zos.cc:547
__Z_EXPORT void init_zoslib(const zoslib_config_t config)
Definition zos.cc:2990
__Z_EXPORT int __testread(const void *location)
Definition zos.cc:1628
__Z_EXPORT int __getargcv(int *argc, char ***argv, pid_t pid)
Definition zos.cc:738
__Z_EXPORT int __getargc(void)
Definition zos.cc:881
notagread_t
Definition zos-base.h:51
@ __NO_TAG_READ_DEFAULT
Definition zos-base.h:52
@ __NO_TAG_READ_DEFAULT_WITHWARNING
Definition zos-base.h:53
@ __NO_TAG_READ_STRICT
Definition zos-base.h:55
@ __NO_TAG_READ_V6
Definition zos-base.h:54
const char * __zoslib_version
Definition zos.cc:117
__Z_EXPORT void * anon_mmap(void *_, size_t len)
Definition zos.cc:1440
__Z_EXPORT char * __get_le_version(void)
Definition zos.cc:1723
__Z_EXPORT void __display_backtrace(int fd)
Definition zos.cc:453
__Z_EXPORT void __abend(int comp_code, unsigned reason_code, int flat_byte, void *plist)
Definition zos.cc:459
__Z_EXPORT const char * getIFAUsageErrorString(unsigned long rc)
Definition zos.cc:2086
__Z_EXPORT int __getMainThreadId()
__Z_EXPORT void * roanon_mmap(void *_, size_t len, int prot, int flags, const char *filename, int fd, off_t offset)
Definition zos.cc:2197
unsigned long __get_libvec_base(void)
Definition zos.cc:2499
__Z_EXPORT void * __zalloc(size_t len, size_t alignment)
Definition zos.cc:1398
__Z_EXPORT unsigned long __mach_absolute_time(void)
Definition zos.cc:951
#define RUNTIME_LIMIT_ENVAR_DEFAULT
Definition zos-base.h:44
#define IPC_CLEANUP_ENVAR_DEFAULT
Definition zos-base.h:43
__Z_EXPORT int __update_envar_settings(const char *envar)
Definition zos.cc:2258
__Z_EXPORT void __tb(void)
Definition zos.cc:1699
__Z_EXPORT int anon_munmap(void *addr, size_t len)
Definition zos.cc:1456
__Z_EXPORT int __get_no_tag_ignore_ccsid1047()
Definition zos.cc:947
int __check_le_func(void *addr, char *funcname, size_t len)
Definition zos.cc:2995
__Z_EXPORT void * __dlcb_entry_addr(void *dlcb)
Definition zos.cc:677
__Z_EXPORT void __set_backtrace_on_abort(bool flag)
Definition zos.cc:711
__Z_EXPORT void __cpu_relax(__crwa_t *)
Definition zos.cc:1762
__Z_EXPORT notagread_t __get_no_tag_read_behaviour()
Definition zos.cc:935
__Z_EXPORT int __update_envar_names(zoslib_config_t *const config)
Definition zos.cc:2332
__Z_EXPORT int * __get_stack_start()
Definition zos.cc:2479
__Z_EXPORT bool __doLogMemoryAll()
Definition zos.cc:3061
__Z_EXPORT int __dlcb_iterate(int(*cb)(char *name, void *addr, void *data), void *data)
__Z_EXPORT int __print_zoslib_help(FILE *fp, const char *title)
Definition zos.cc:2203
__Z_EXPORT bool __doLogMemoryUsage()
Definition zos.cc:3055
__Z_EXPORT void * __dlcb_next(void *last)
Definition zos.cc:659
__Z_EXPORT unsigned long long __registerProduct(const char *major_version, const char *product_owner, const char *feature_name, const char *product_name, const char *pid)
Definition zos.cc:2092
__Z_EXPORT void __mainTerminating()
Definition zos.cc:3067
__Z_EXPORT char * __getMemoryUsageLogFile()
Definition zos.cc:3059
#define UNTAGGED_READ_MODE_CCSID1047_DEFAULT
Definition zos-base.h:47
__Z_EXPORT void * __zalloc_for_fd(size_t len, const char *filename, int fd, off_t offset)
Definition zos.cc:2158
struct __cpu_relax_workarea __crwa_t
__Z_EXPORT void __build_version(void)
Definition zos.cc:1755
__Z_EXPORT char ** __getargv(void)
Definition zos.cc:863
#define CCSID_GUESS_BUF_SIZE_DEFAULT
Definition zos-base.h:45
__Z_EXPORT int __getexepath(char *path, int pathlen, pid_t pid)
Definition zos.cc:887
__Z_EXPORT void init_zoslib_config(zoslib_config_t *const config)
Definition zos.cc:2979
__Z_EXPORT int strcasecmp_ignorecp(const char *a, const char *b)
Definition zos.cc:496
#define UNTAGGED_READ_MODE_DEFAULT
Definition zos-base.h:46
__Z_EXPORT char ** __get_environ_np(void)
Definition zos.cc:145
__Z_EXPORT void __xfer_env(void)
Definition zos.cc:186
__Z_EXPORT int strncasecmp_ignorecp(const char *a, const char *b, size_t n)
Definition zos.cc:513
#define __Z_EXPORT
Definition zos-macros.h:13
__zinit * __get_instance()
Definition zos.cc:128