summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-05-23 11:34:16 +0200
committergnzlbg <gonzalobg88@gmail.com>2019-05-23 16:29:28 +0200
commit7d5e632d36fea980a7fadaafd279c4604978cad7 (patch)
tree377b9c5dfb22faceb757d780ba80bdb9e7f8484a
parentebe64f1e25c811b6adb64f8c7ba212bdf826374f (diff)
downloadrust-libc-7d5e632d36fea980a7fadaafd279c4604978cad7.tar.gz
[breaking change] set/getpriority who argument is of type id_t on Android
-rw-r--r--src/unix/notbsd/android/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unix/notbsd/android/mod.rs b/src/unix/notbsd/android/mod.rs
index ac58604a91..b3885aba3d 100644
--- a/src/unix/notbsd/android/mod.rs
+++ b/src/unix/notbsd/android/mod.rs
@@ -19,6 +19,7 @@ pub type nfds_t = ::c_uint;
pub type rlim_t = ::c_ulong;
pub type dev_t = ::c_ulong;
pub type ino_t = ::c_ulong;
+pub type id_t = ::c_uint;
pub type __CPU_BITTYPE = ::c_ulong;
pub type idtype_t = ::c_int;
pub type loff_t = ::c_longlong;
@@ -1951,8 +1952,8 @@ extern {
sevlen: ::size_t,
flags: ::c_int) -> ::c_int;
pub fn ptrace(request: ::c_int, ...) -> ::c_long;
- pub fn getpriority(which: ::c_int, who: ::c_int) -> ::c_int;
- pub fn setpriority(which: ::c_int, who: ::c_int, prio: ::c_int) -> ::c_int;
+ pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;
+ pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int;
pub fn __sched_cpualloc(count: ::size_t) -> *mut ::cpu_set_t;
pub fn __sched_cpufree(set: *mut ::cpu_set_t);
pub fn __sched_cpucount(setsize: ::size_t,