summaryrefslogtreecommitdiff
path: root/src/fuchsia
diff options
context:
space:
mode:
authorJason Longshore <longshorej@gmail.com>2018-05-10 11:04:14 -0500
committerJason Longshore <longshorej@gmail.com>2018-05-10 11:04:14 -0500
commit18ff68357d94eb5494d08e6cfab823ae30268877 (patch)
treebc28fd5c0ca7ed0b0b967aeaaaca10207c3ec72a /src/fuchsia
parentf717d4b1139152f08fbb6a358943c0b5087fbed3 (diff)
downloadrust-libc-18ff68357d94eb5494d08e6cfab823ae30268877.tar.gz
Add sem_getvalue to unix
Diffstat (limited to 'src/fuchsia')
-rw-r--r--src/fuchsia/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs
index 929acaf8dc..0aac98531a 100644
--- a/src/fuchsia/mod.rs
+++ b/src/fuchsia/mod.rs
@@ -3796,6 +3796,8 @@ extern {
pub fn sched_rr_get_interval(pid: ::pid_t, tp: *mut ::timespec) -> ::c_int;
pub fn sem_timedwait(sem: *mut sem_t,
abstime: *const ::timespec) -> ::c_int;
+ pub fn sem_getvalue(sem: *mut sem_t,
+ sval: *mut ::c_int) -> ::c_int;
pub fn sched_setparam(pid: ::pid_t, param: *const ::sched_param) -> ::c_int;
pub fn setns(fd: ::c_int, nstype: ::c_int) -> ::c_int;
pub fn swapoff(puath: *const ::c_char) -> ::c_int;