-
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
netbsd adding _lwp_park api. #3721
Conversation
r? @JohnTitor rustbot has assigned @JohnTitor. Use |
hint: *const ::c_void, | ||
unparkhint: *mut ::c_void, | ||
) -> ::c_int; | ||
pub fn _lwp_unpark(id: ::lwpid_t, hint: *const ::c_void) -> ::c_int; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional nit: id
is called lwp
per https://man.netbsd.org/_lwp_unpark.2
@@ -2862,6 +2862,22 @@ extern "C" { | |||
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t; | |||
|
|||
pub fn reboot(mode: ::c_int, bootstr: *mut ::c_char) -> ::c_int; | |||
|
|||
#[link_name = "___lwp_park60"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a link/source referencing the link name? I can't seem to find it mentioned anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that rust uses directly the "real" symbol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thank you.
One question and one optional nit, otherwise lgtm. Relevant sources:
@rustbot author |
9abcb74
to
4769aaa
Compare
@rustbot ready |
(backport <rust-lang#3721>) (cherry picked from commit 4769aaa)
No description provided.