-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add mach_error_string (and mach_error_t) #3913
Conversation
03c5f39
to
c96fea2
Compare
Thanks for the PR, could you update the description with links to the headers and/or docs? |
`mach_error_string` is defined in `/usr/include/mach/mach_error.h` It is not referenced in the documentation Apple website. ``` char *mach_error_string( /* * Returns a string appropriate to the error argument given */ mach_error_t error_value ); ``` `mach_error_t` is defined in `/usr/include/mach/error.h` https://developer.apple.com/documentation/kernel/mach_error_t ``` typedef kern_return_t mach_error_t; ```
c96fea2
to
d57a831
Compare
Done. |
Thanks! For reference the opensource.apple.com headers or xnu are good places to link to for apple stuff, e.g. this one is here https://opensource.apple.com/source/Libc/Libc-166/mach.subproj/mach_error_string.c.auto.html and here https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/libsyscall/mach/mach_error_string.c#L177-L183. |
`mach_error_string` is defined in `/usr/include/mach/mach_error.h` It is not referenced in the documentation Apple website. ``` char *mach_error_string( /* * Returns a string appropriate to the error argument given */ mach_error_t error_value ); ``` `mach_error_t` is defined in `/usr/include/mach/error.h` https://developer.apple.com/documentation/kernel/mach_error_t ``` typedef kern_return_t mach_error_t; ``` (backport <rust-lang#3913>) (cherry picked from commit d8ff07b)
mach_error_string
is defined in/usr/include/mach/mach_error.h
It is not referenced in the documentation Apple website.
mach_error_t
is defined in/usr/include/mach/error.h
https://developer.apple.com/documentation/kernel/mach_error_t