Skip to content

Commit a7d5b09

Browse files
committed
Merge branch 'master' of https://github.com/rust-lang/libc into emscripten
2 parents 80fda85 + c25d657 commit a7d5b09

File tree

7 files changed

+15
-0
lines changed

7 files changed

+15
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,8 @@ extern {
15591559
pub fn lio_listio(mode: ::c_int, aiocb_list: *const *mut aiocb,
15601560
nitems: ::c_int, sevp: *mut sigevent) -> ::c_int;
15611561

1562+
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
1563+
15621564
pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int;
15631565

15641566
pub fn getutxent() -> *mut utmpx;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ extern {
918918
pub fn aio_cancel(fd: ::c_int, aiocbp: *mut aiocb) -> ::c_int;
919919
pub fn lio_listio(mode: ::c_int, aiocb_list: *const *mut aiocb,
920920
nitems: ::c_int, sevp: *mut sigevent) -> ::c_int;
921+
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
921922
pub fn getnameinfo(sa: *const ::sockaddr,
922923
salen: ::socklen_t,
923924
host: *mut ::c_char,

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ pub const KI_MAXLOGNAME: ::c_int = 32;
457457
pub const KI_EMULNAMELEN: ::c_int = 8;
458458

459459
extern {
460+
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
460461
pub fn getnameinfo(sa: *const ::sockaddr,
461462
salen: ::socklen_t,
462463
host: *mut ::c_char,

src/unix/haiku/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ extern {
749749
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
750750
pub fn mprotect(addr: *const ::c_void, len: ::size_t, prot: ::c_int)
751751
-> ::c_int;
752+
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
752753
pub fn getnameinfo(sa: *const ::sockaddr,
753754
salen: ::socklen_t,
754755
host: *mut ::c_char,

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ extern {
472472
pub fn read(fd: ::c_int, buf: *mut ::c_void, count: ::size_t)
473473
-> ::ssize_t;
474474
pub fn rmdir(path: *const c_char) -> ::c_int;
475+
pub fn seteuid(uid: uid_t) -> ::c_int;
475476
pub fn setgid(gid: gid_t) -> ::c_int;
476477
pub fn setpgid(pid: pid_t, pgid: pid_t) -> ::c_int;
477478
pub fn setsid() -> pid_t;

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,8 @@ extern {
957957
serv: *mut ::c_char,
958958
sevlen: ::socklen_t,
959959
flags: ::c_int) -> ::c_int;
960+
pub fn pthread_setschedprio(native: ::pthread_t,
961+
priority: ::c_int) -> ::c_int;
960962
pub fn prlimit(pid: ::pid_t, resource: ::c_int, new_limit: *const ::rlimit,
961963
old_limit: *mut ::rlimit) -> ::c_int;
962964
pub fn prlimit64(pid: ::pid_t,

src/unix/notbsd/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@ extern {
833833
rqtp: *const ::timespec,
834834
rmtp: *mut ::timespec) -> ::c_int;
835835
pub fn clock_settime(clk_id: clockid_t, tp: *const ::timespec) -> ::c_int;
836+
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
836837
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
837838

838839
pub fn prctl(option: ::c_int, ...) -> ::c_int;
@@ -960,6 +961,12 @@ extern {
960961
pshared: ::c_int) -> ::c_int;
961962
pub fn pthread_condattr_getpshared(attr: *const pthread_condattr_t,
962963
pshared: *mut ::c_int) -> ::c_int;
964+
pub fn pthread_getschedparam(native: ::pthread_t,
965+
policy: *mut ::c_int,
966+
param: *mut ::sched_param) -> ::c_int;
967+
pub fn pthread_setschedparam(native: ::pthread_t,
968+
policy: ::c_int,
969+
param: *const ::sched_param) -> ::c_int;
963970
pub fn sched_getaffinity(pid: ::pid_t,
964971
cpusetsize: ::size_t,
965972
cpuset: *mut cpu_set_t) -> ::c_int;

0 commit comments

Comments
 (0)