-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add sysmacros.h and chdir_long (#25) * Add sys/sysmacros.h + chdir_long * Fix makedev * Add support for _ENCODE_FILE_NEW + enable man pages (#27) * Enable V2R5 system builds when targetting V2R4 (#28) * Workaround for configure issues when building in V2R5+ * fixup * fixup * Update zos-v2r5-symbolfixes.h * Include zos.h rather tha zos-base.h for version information in zos.cc * Add more v2r5 symbols to include/zos-v2r5-symbolfixes.h (#30) * Add more v2r5 symbols to include/zos-v2r5-symbolfixes.h * Update zos-v2r5-symbolfixes.h * Update zos-v2r5-symbolfixes.h with more functions (#31) * Update __threading_support * Carry over fixes from internal main branch * Fix fopen_ascii for untagged files (#32) * Add __getprogramdir, getprogname, getloadavg (#33) * Add getloadavg * Add getprogname and __getprogramdir * Add getprogname and __getprogramdir * Fix comment in getloadvg * Add details for how to find CCT offsets/descriptions * Fix typo * Update zos-v2r5-symbolfixes.h (#34) Add shm_open to the list * Remove dupe bfdcache_destroyed * Fix style and indention in zos-io.cc * Rename program info tests + misc fixes * Rename test-new-programinfo.cc to test-programinfo.cc
- Loading branch information
1 parent
67caca0
commit cfd28b0
Showing
15 changed files
with
337 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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 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 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,16 @@ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// 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_SYSMACROS_H_ | ||
#define ZOS_SYSMACROS_H_ | ||
|
||
#define major(x) (((unsigned)(x) >> 8) & 0x7f) | ||
#define minor(x) ((x) & 0xff) | ||
#define makedev(x, y) (unsigned short)(((x) << 8) | ((y) & 0xff)) | ||
|
||
#endif |
This file contains 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 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 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,51 @@ | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// ZOSLIB | ||
// (C) Copyright IBM Corp. 2023. All Rights Reserved. | ||
// US Government Users Restricted Rights - Use, duplication | ||
// or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
#ifndef ZOS_V2R5_SYMBOLFIXES_H | ||
#define ZOS_V2R5_SYMBOLFIXES_H | ||
|
||
// This enables builds on >=V2R5 systems when the target is <V2R5 | ||
// Redefines >=V2R5 symbols with _undefined suffix to trigger a linker | ||
// error so they are not detected by configure scripts | ||
#if (__TARGET_LIB__ < 0x42050000) | ||
#pragma redefine_extname readlinkat readlinkat_undefined | ||
#pragma redefine_extname openat openat_undefined | ||
#pragma redefine_extname linkat linkat_undefined | ||
#pragma redefine_extname faccessat faccessat_undefined | ||
#pragma redefine_extname fstatat fstatat_undefined | ||
#pragma redefine_extname unlinkat unlinkat_undefined | ||
#pragma redefine_extname symlinkat symlinkat_undefined | ||
#pragma redefine_extname renameat rename_undefined | ||
#pragma redefine_extname getrandom getrandom_undefined | ||
#pragma redefine_extname pipe2 pipe2_undefined | ||
#pragma redefine_extname fsstatfs fsstatfs_undefined | ||
#pragma redefine_extname getline getline_undefined | ||
#pragma redefine_extname dprintf dprintf_undefined | ||
#pragma redefine_extname dirfd dirfd_undefined | ||
#pragma redefine_extname fchmodat fchmodat_undefined | ||
#pragma redefine_extname mkdirat mkdirat_undefined | ||
#pragma redefine_extname mkfifoat mkfifoat_undefined | ||
#pragma redefine_extname mknodat mknodat_undefined | ||
#pragma redefine_extname renameat2 renameat2_undefined | ||
#pragma redefine_extname futimesat futimesat_undefined | ||
#pragma redefine_extname fchownat fchownat_undefined | ||
#pragma redefine_extname strchrnul strchrnul_undefined | ||
#pragma redefine_extname sethostname sethostname_undefined | ||
#pragma redefine_extname syncfs syncfs_undefined | ||
#pragma redefine_extname sysinfo sysinfo_undefined | ||
#pragma redefine_extname fdatasync fdatasync_undefined | ||
#pragma redefine_extname inotify_init inotify_init_undefined | ||
#pragma redefine_extname prctl prctl_undefined | ||
#pragma redefine_extname fstatfs fstatfs_undefined | ||
#pragma redefine_extname setresuid setresuid_undefined | ||
#pragma redefine_extname setresgid setresgid_undefined | ||
#pragma redefine_extname dup3 dup3_undefined | ||
#pragma redefine_extname flock flock_undefined | ||
#pragma redefine_extname shm_open shm_open_undefined | ||
#endif | ||
|
||
#endif // ZOS_V2R5_SYMBOLFIXES_H |
This file contains 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 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 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 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 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.