Skip to content

libcore: Add a smattering of POSIX error codes to the libc module. #5969

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

Closed
wants to merge 1 commit into from

Conversation

pcwalton
Copy link
Contributor

r? @graydon

I'm not sure which POSIX revision this is, or even admittedly if the constant values are specified at all…

Nevertheless, this will be needed for the new I/O subsystem, which aims to do things right and actually report the errors in an actionable way.

@thestinger
Copy link
Contributor

By the way, there's a full list at http://pubs.opengroup.org/onlinepubs/9699919799/ (errno page) and it seems that only ENOTRECOVERABLE and EOWNERDEAD weren't around from the start (added in POSIX 2008).

@graydon
Copy link
Contributor

graydon commented Apr 22, 2013

needs per-os definitions; best to augment the etc/libc.c file with the errno values you want to extract

@Aatch
Copy link
Contributor

Aatch commented Jun 7, 2013

@pcwalton you are the master of bitrot it seems 😆

@catamorphism
Copy link
Contributor

Closing old PRs.

flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 20, 2020
Add new lint `unnecessary_wrap`

Fixes rust-lang#5969

changelog: New lint [`unnecessary_wraps`]
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.

5 participants