Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Repair support for UnixWare 7.x, preliminary modern Mac OS X support#1492

Open
lkujaw wants to merge 1 commit into
att:master from
lkujaw:master
Open

Repair support for UnixWare 7.x, preliminary modern Mac OS X support #1492
lkujaw wants to merge 1 commit into
att:master from
lkujaw:master

Conversation

@lkujaw

@lkujaw lkujaw commented Aug 15, 2021

Copy link
Copy Markdown
  • src/cmd/ss/Makefile: Properly handle sys ownership of /dev/kmem.
  • src/cmd/ss/Mamfile: Regenerate Mamfile.
  • src/lib/libast/features/standards:
  • Add heuristic (u_long availability) for systems that hide rather
    than reveal functionality in the presence of _POSIX_SOURCE, etc.
  • Define _DARWIN_C_SOURCE, like _GNU_SOURCE, to enable the full range
    of definitions on Mac OS X systems.
  • Due to the above, remove MACH (Mac OS X)-specific hack.

CHECKPOINT: The complete AST suite now builds without error on generic
UnixWare 7.1.4.
* src/cmd/ss/Makefile: Properly handle sys ownership of /dev/kmem.
* src/cmd/ss/Mamfile: Regenerate Mamfile.
* src/lib/libast/features/standards:
- Add heuristic (u_long availability) for systems that hide rather
 than reveal functionality in the presence of _POSIX_SOURCE, etc.
- Define _DARWIN_C_SOURCE, like _GNU_SOURCE, to enable the full range
 of definitions on Mac OS X systems.
- Due to the above, remove __MACH__ (Mac OS X)-specific hack.

Copy link
Copy Markdown
Contributor

Hi, I'm not sure why you bothered to post a PR here as this repo is inactive and AT&T will ignore it, but I'm glad you did, because the libast bit of this is applicable to ksh 93u+m. :-)

McDutchie added a commit to ksh93/ksh that referenced this pull request Dec 6, 2021
src/lib/libast/features/standards:
- Add heuristic (u_long availability) for systems that hide rather
 than reveal functionality in the presence of _POSIX_SOURCE, etc.
- Define _DARWIN_C_SOURCE, like _GNU_SOURCE, to enable the full
 range of definitions on macOS systems.
- Due to the above, remove MACH (macOS)-specific hack.
- These changes ported from att#1492 -
 thanks to Lev Kujawski (@lkujaw). His PR indicates that this
 fixes the standards macros on UnixWare, too. Therefore, no longer
 exclude UnixWare from standards macros (re: ff70c27).
src/lib/libast/comp/conf.sh:
- Promote the 'op' member in Conf_t (struct Conf_s) from short to
 int. This allows some Darwin/macOS values, now exposed, to fit
 that would otherwise be truncated, namely:
 _CS_DARWIN_USER_CACHE_DIR 65538
 _CS_DARWIN_USER_DIR 65536
 _CS_DARWIN_USER_TEMP_DIR 65537
 Thus, the following AST getconf values are now correct on macOS:
 $ /opt/ast/bin/getconf | grep ^DARWIN
 DARWIN_USER_CACHE_DIR=/var/folders/nx/(REDACTED)/C/
 DARWIN_USER_DIR=/var/folders/nx/(REDACTED)/0/
 DARWIN_USER_TEMP_DIR=/var/folders/nx/(REDACTED)/T/
src/lib/libast/features/tty:
- Include <sys/ioctl.h> if available. This silences a compiler
 warning in src/lib/libast/misc/procopen.c about an invalid
 implicit declaration of ioctl(2).
McDutchie added a commit to ksh93/ksh that referenced this pull request Dec 6, 2021
src/lib/libast/features/standards:
- Add heuristic (u_long availability) for systems that hide rather
 than reveal functionality in the presence of _POSIX_SOURCE, etc.
- Define _DARWIN_C_SOURCE, like _GNU_SOURCE, to enable the full
 range of definitions on macOS systems.
- Due to the above, remove MACH (macOS)-specific hack.
- These changes ported from att#1492 -
 thanks to Lev Kujawski (@lkujaw). His PR indicates that this
 fixes the standards macros on UnixWare, too. Therefore, no longer
 exclude UnixWare from standards macros (re: ff70c27).
src/lib/libast/comp/conf.sh:
- Promote the 'op' member in Conf_t (struct Conf_s) from short to
 int. This allows some Darwin/macOS values, now exposed, to fit
 that would otherwise be truncated, namely:
 _CS_DARWIN_USER_CACHE_DIR 65538
 _CS_DARWIN_USER_DIR 65536
 _CS_DARWIN_USER_TEMP_DIR 65537
 Thus, the following AST getconf values are now correct on macOS:
 $ /opt/ast/bin/getconf | grep ^DARWIN
 DARWIN_USER_CACHE_DIR=/var/folders/nx/(REDACTED)/C/
 DARWIN_USER_DIR=/var/folders/nx/(REDACTED)/0/
 DARWIN_USER_TEMP_DIR=/var/folders/nx/(REDACTED)/T/
src/lib/libast/features/tty:
- Include <sys/ioctl.h> if available. This silences a compiler
 warning in src/lib/libast/misc/procopen.c about an invalid
 implicit declaration of ioctl(2).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /