Skip to content

Define an __errno_location function.#347

Merged
sunfishcode merged 1 commit intomainfrom
sunfishcode/errno-location
Nov 28, 2022
Merged

Define an __errno_location function.#347
sunfishcode merged 1 commit intomainfrom
sunfishcode/errno-location

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.

3 participants