-
Notifications
You must be signed in to change notification settings - Fork 20
Various enhancements for zopen tools #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
IgorTodorovskiIBM
wants to merge
76
commits into
main
Choose a base branch
from
zopen2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 29 commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
d95312c
zopen enhancements:
IgorTodorovskiIBM 11eeb20
Add missing header netiniet
IgorTodorovskiIBM ebe82e0
Add support for getline, getdelim, sysconf, memset
IgorTodorovskiIBM b32dcd4
Add utimesat and PTHREAD_RWLOCK_INITIALIZER
IgorTodorovskiIBM 7d497c6
Add readlink override to resolve PARMLIB variables like
IgorTodorovskiIBM 8253dfe
Fix getdelim and readlink override
IgorTodorovskiIBM 153ef5f
Fix typo
IgorTodorovskiIBM b7074a5
Fix getdelim again
IgorTodorovskiIBM b0cd547
Fix missing }
IgorTodorovskiIBM 276feb4
Address comments
IgorTodorovskiIBM 827486b
Address comments
IgorTodorovskiIBM 4145cf9
Add __threading_support - needed for boost and clang 1.1 builds
IgorTodorovskiIBM 040105d
Update memmem
IgorTodorovskiIBM 8c0764d
Add strverscmp from musl c
IgorTodorovskiIBM 504ba77
Fix readlink and mkostemp - after further testing with zopen tools
IgorTodorovskiIBM 5a1b34b
Fix readlink and mkostemp - after further testing with zopen tools
IgorTodorovskiIBM b36a272
Add code for profiling instrumentation
IgorTodorovskiIBM 325ed89
Fix typos
IgorTodorovskiIBM 6f56563
Fix typos
IgorTodorovskiIBM 63e621e
replace bzero with calloc (#68)
kishkulk c098335
revise json
IgorTodorovskiIBM b548649
Fix tid in instrumentation json
IgorTodorovskiIBM b1ae73f
Update zos-instrumentation.cc
IgorTodorovskiIBM 51f5dd0
Resolve clang related build issues
IgorTodorovskiIBM d847fc3
Resolve clang related build issues
IgorTodorovskiIBM b87bc46
Change dsa to __dsa and use traceEvent objects to make ns the default…
IgorTodorovskiIBM 7738105
Gzip the json file once completed
IgorTodorovskiIBM 0756b23
Only activate __get_stack_start on non-quick startup
IgorTodorovskiIBM 5d413b7
Propagate ZOSLIB_QUICK_STARTUP in cmake
IgorTodorovskiIBM 659b1d5
Change the arch level to arch10 for clang (and arch14 only for zos-ge…
IgorTodorovskiIBM d2aed54
Add tracing for allocation
IgorTodorovskiIBM 3a4cb7f
Add malloc/free overrides
IgorTodorovskiIBM 9a69e8e
Add export to __readlink
IgorTodorovskiIBM 4e8ca92
Update zos-v2r5-symbolfixes.h
IgorTodorovskiIBM 2dc1f9b
Resolve issue when malloc/free are used as function pointers
IgorTodorovskiIBM ac3adb8
Add pthread_condattr_setclock to v2r5 symbol list
IgorTodorovskiIBM 6c843ab
Add asprintf and vasprintf to v2r5 symbol list
IgorTodorovskiIBM ab0e6fa
Update unistd.h - use __asm
IgorTodorovskiIBM cdd2f75
Fix up product name & remove the c++ copied dir (#70)
perry-ca 3a5c17f
Add dependant code for script command (#71)
sachintu47 bac1675
Add vasprintf and strcasestr - needed by htop
IgorTodorovskiIBM a6f5da1
Add a fix for symlinks with $ literals in the beginning
IgorTodorovskiIBM 68f947f
TODO one readlink test that fails on sysplex only
IgorTodorovskiIBM ab82da4
Update zos-v2r5-symbolfixes.h
IgorTodorovskiIBM d050048
Update zos-v2r5-symbolfixes.h - add madvise
IgorTodorovskiIBM c8defc5
Update zos-v2r5-symbolfixes.h
IgorTodorovskiIBM 1418dca
Correct openpty implementation - use posix_openpt
IgorTodorovskiIBM af5d965
override writev call (#73)
sachintu47 46a433a
Add test case for writev (#74)
sachintu47 8292957
remove clone from zos-v2r5-symbolfixes as it breaks googletests projects
IgorTodorovskiIBM 3e39ee0
Override readv call (#76)
sachintu47 c126f1d
file conversion to ascii for untagged file fix (#75)
sabi789 0328777
Add asprintf and semaphore.h
IgorTodorovskiIBM 89d218f
Add locale disable macro, dprintf, reallocarray (#77)
sachintu47 caf3960
Add signalfd, ttydefaults.h (#78)
sachintu47 6e173c3
Add macro to set getopt_long definition, Update path header (#79)
sachintu47 00970f4
Add NAME_MAX to limits.h
IgorTodorovskiIBM ae22cec
Update zos-signalfd.c (#80)
kishkulk 3b0b241
Add warning message for ambiguous file
sabi789 1a1843b
Message fix
sabi789 34a0067
Redefine v2r5 symbols for 2.5 and up if _XPLATFORM_SOURCE _POSIX_C_SO…
IgorTodorovskiIBM c3ff9d7
V2R5 considerations, malloc and posix_memalign changes
IgorTodorovskiIBM 2826707
Fix condition in v2r5 symbosl check
IgorTodorovskiIBM 8c3872e
Avoid defining XPLAT and cleanup override headers (#82)
IgorTodorovskiIBM 5d82be6
Add sys/poll.h
IgorTodorovskiIBM 0821373
Update to v2r5 (#83)
sachintu47 404cf6f
Use fcntl F_SETTAG instead of __fchattr for __tag_new_file so that it…
IgorTodorovskiIBM 6bdd87e
Introduce __tag_new_file_fp for FILE services so as not to affect ope…
IgorTodorovskiIBM 04aabf5
Update poll.h - fix extra _ in #define for sys/poll.h
IgorTodorovskiIBM 0819051
zoslib fixes: statfs, fdopendir, strerror (#84)
apatel896 338e49a
invoke ascii strerror_r (#87)
sachintu47 232a618
Aligned operator new and delete (#88)
apatel896 e7295d4
Add initial implementation of ptrace + test cases (#85)
IgorTodorovskiIBM 7584f6a
Add error() routine and resolve zoslib compiler warnings (#89)
IgorTodorovskiIBM fb6f6e3
Add fnmatch code (#90)
sachintu47 caa88f6
Use __asm instead of asm which is a gnu extension
IgorTodorovskiIBM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// Licensed Materials - Property of IBM | ||
// ZOSLIB | ||
// (C) Copyright IBM Corp. 2022. All Rights Reserved. | ||
// US Government Users Restricted Rights - Use, duplication | ||
// or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#ifndef ZOS_LIBCPP_THREADING_SUPPORT | ||
#define ZOS_LIBCPP_THREADING_SUPPORT | ||
|
||
//TODO(itodorov) - zos: workaround for nanosleep WoZ conflict, revisit | ||
// once WoZ allow overriding or LE provides a nanosleep definition | ||
#include <time.h> | ||
#define nanosleep cpp_nanosleep | ||
#include_next <__threading_support> | ||
#undef nanosleep | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// Licensed Materials - Property of IBM | ||
// ZOSLIB | ||
// (C) Copyright IBM Corp. 2024. All Rights Reserved. | ||
// US Government Users Restricted Rights - Use, duplication | ||
// or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#ifndef ZOS_IN_SYSTM_H_ | ||
#define ZOS_IN_SYSTM_H_ | ||
|
||
#include <stdint.h> | ||
|
||
// Network types | ||
typedef uint16_t n_short; | ||
typedef uint32_t n_long; | ||
typedef uint32_t n_time; | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// Licensed Materials - Property of IBM | ||
// ZOSLIB | ||
// (C) Copyright IBM Corp. 2021. All Rights Reserved. | ||
// US Government Users Restricted Rights - Use, duplication | ||
// or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#ifndef ZOS_PTHREAD_H_ | ||
#define ZOS_PTHREAD_H_ | ||
|
||
#define __XPLAT 1 | ||
#include "zos-macros.h" | ||
#include <sys/types.h> | ||
|
||
|
||
#if defined(__cplusplus) | ||
extern "C" { | ||
#endif | ||
__Z_EXPORT int __pthread_create_extended(pthread_t *thread, | ||
const pthread_attr_t *attr, | ||
void *(*start_routine)(void *), | ||
void *arg); | ||
#if defined(__cplusplus) | ||
} | ||
#endif | ||
|
||
#if defined(ZOSLIB_OVERRIDE_CLIB) || defined(ZOSLIB_OVERRIDE_CLIB_PTHREAD) | ||
#define pthread_create __pthread_create_replaced | ||
#endif | ||
|
||
#include_next <pthread.h> | ||
|
||
#if defined(ZOSLIB_OVERRIDE_CLIB) || defined(ZOSLIB_OVERRIDE_CLIB_PTHREAD) | ||
|
||
#if defined(__cplusplus) | ||
extern "C" { | ||
#endif | ||
|
||
#undef pthread_create | ||
__Z_EXPORT int pthread_create(pthread_t *thread, | ||
const pthread_attr_t *attr, | ||
void *(*start_routine)(void *), | ||
void *arg) asm("__pthread_create_extended"); | ||
|
||
#if defined(__cplusplus) | ||
} | ||
#endif | ||
#endif /* defined(ZOSLIB_OVERRIDE_CLIB) || defined(ZOSLIB_OVERRIDE_CLIB_PTHREAD) */ | ||
|
||
#ifndef PTHREAD_RWLOCK_INITIALIZER | ||
#define PTHREAD_RWLOCK_INITIALIZER PTHREAD_RWLOCK_INITIALIZER_NP | ||
#endif | ||
|
||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.