Skip to content

Commit e81e068

Browse files
committed
Auto merge of #2597 - devnexen:sched_setaffinity_upd_fbsd, r=Amanieu
freebsd sched_setaffinity signature had been fixed upstream.
2 parents c8751d2 + a9f83e8 commit e81e068

File tree

1 file changed

+1
-2
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+1
-2
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4000,9 +4000,8 @@ extern "C" {
40004000

40014001
// sched.h linux compatibility api
40024002
pub fn sched_getaffinity(pid: ::pid_t, cpusetsz: ::size_t, cpuset: *mut ::cpuset_t) -> ::c_int;
4003-
// FIXME: the first argument's type might not be correct, fix later if that changes.
40044003
pub fn sched_setaffinity(
4005-
pid: ::c_int,
4004+
pid: ::pid_t,
40064005
cpusetsz: ::size_t,
40074006
cpuset: *const ::cpuset_t,
40084007
) -> ::c_int;

0 commit comments

Comments
 (0)