Skip to content

0.29.7: uname reports the system a hosted program runs on - #96

Merged
Sunrisepeak merged 2 commits into
mainfrom
fix/0.29.7-hosted-sysname
Nov 15, 2026
Merged

Sunrisepeak merged 2 commits into
mainfrom
fix/0.29.7-hosted-sysname

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Over a system's implementation (the hosted arrangement) uname' reported openkal' in sysname' on every system, so a program that branched on the system's name took the wrong branch on FreeBSD. The build program states the name from MCPP_TARGET_OS in each system's own spelling (Linux, FreeBSD, Darwin; Windows_NT, UEFI and MS-DOS for systems with no uname of their own), and an ok image keeps openkal', since it runs on whichever system loads it.
The posix probe checks the name on every row.

Over a system's implementation (the hosted arrangement) `uname' reported
`openkal' in `sysname' on every system, so a program that branched on the
system's name took the wrong branch on FreeBSD. The build program states the
name from MCPP_TARGET_OS in each system's own spelling (Linux, FreeBSD,
Darwin; Windows_NT, UEFI and MS-DOS for systems with no uname of their own),
and an ok image keeps `openkal', since it runs on whichever system loads it.
The posix probe checks the name on every row.
@Sunrisepeak
Sunrisepeak merged commit 0e58883 into main Nov 15, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant