Skip to content

Commit

Permalink
Merge pull request #5 from AzureMarker/feature/pthread-extensions
Browse files Browse the repository at this point in the history
Add some extensions to pthread for armv6k-nintendo-3ds
  • Loading branch information
Meziu authored Feb 10, 2022
2 parents 4d2f997 + 3ff8eb6 commit 0c2a86d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/newlib/horizon/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ extern "C" {
value: *mut ::c_void,
) -> ::c_int;

pub fn pthread_attr_setpriority(attr: *mut ::pthread_attr_t, priority: ::c_int) -> ::c_int;

pub fn pthread_attr_setaffinity(attr: *mut ::pthread_attr_t, affinity: ::c_int) -> ::c_int;

pub fn pthread_getpriority() -> ::c_int;

pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;

pub fn gethostid() -> ::c_long;
Expand Down

0 comments on commit 0c2a86d

Please sign in to comment.