Skip to content

Add __errno for newlib targets - #6

Merged
LusterSourav merged 1 commit into
mainfrom
errno
Jul 31, 2026
Merged

LusterSourav merged 1 commit into
mainfrom
errno

Conversation

@LusterSourav

@LusterSourav LusterSourav commented Jul 31, 2026

Copy link
Copy Markdown
Owner

newlib errno is errno() so in rust code ne eds this to read errno on newlib target std already link the symbol

sources
newlib sys/errno.h
https://github.com/eblot/newlib/blob/master/newlib/libc/include/sys/errno.h

Closes rust-lang#1995

newlib errno is (*__errno()) so rust code can read errno on these
targets. std already links it on newlib
@LusterSourav
LusterSourav merged commit 852a4e8 into main Jul 31, 2026
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.

__errno() not provided with newlib

1 participant