Skip to content
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

Define an __errno_location function. #347

Merged
merged 1 commit into from
Nov 28, 2022
Merged

Conversation

sunfishcode
Copy link
Member

This function returns the address of errno, which makes it easier to access from non-C languages since errno is a thread-local variable which requires a special ABI.

@sunfishcode sunfishcode force-pushed the sunfishcode/errno-location branch from 1ea7b2c to 1198c74 Compare November 28, 2022 21:40
This function returns the address of `errno`, which makes it easier to
access from non-C languages since `errno` is a thread-local variable
which requires a special ABI.
@sunfishcode sunfishcode force-pushed the sunfishcode/errno-location branch from 1198c74 to 62244e2 Compare November 28, 2022 21:44
@sunfishcode sunfishcode merged commit 2bb5abe into main Nov 28, 2022
@sunfishcode sunfishcode deleted the sunfishcode/errno-location branch November 28, 2022 21:50
john-sharratt pushed a commit to john-sharratt/wasix-libc that referenced this pull request Mar 6, 2023
This function returns the address of `errno`, which makes it easier to
access from non-C languages since `errno` is a thread-local variable
which requires a special ABI.
@yamt yamt mentioned this pull request Aug 10, 2023
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.

None yet

3 participants