Skip to content

Commit 0e32674

Browse files
committed
Auto merge of #2505 - rtzoeller:bsd_getsetresuid, r=Amanieu
Add getresgid and getresuid to DragonFly, FreeBSD and OpenBSD The functions have the same signatures as on Linux.
2 parents 3bde54f + 804f4bf commit 0e32674

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,8 @@ getprogname
12631263
getpwent
12641264
getpwent_r
12651265
getpwnam_r
1266+
getresgid
1267+
getresuid
12661268
getrlimit
12671269
getrusage
12681270
getservbyport

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,6 +1501,8 @@ getprogname
15011501
getpwent
15021502
getpwent_r
15031503
getpwnam_r
1504+
getresgid
1505+
getresuid
15041506
getrlimit
15051507
getrusage
15061508
getservbyport

libc-test/semver/openbsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,8 @@ getpriority
970970
getprogname
971971
getpwent
972972
getpwnam_r
973+
getresgid
974+
getresuid
973975
getrlimit
974976
getrusage
975977
getservbyport

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,8 @@ extern "C" {
14771477
flags: ::c_int,
14781478
) -> ::c_int;
14791479
pub fn getpriority(which: ::c_int, who: ::c_int) -> ::c_int;
1480+
pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int;
1481+
pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t, suid: *mut ::uid_t) -> ::c_int;
14801482
pub fn getutxent() -> *mut utmpx;
14811483
pub fn getutxid(ut: *const utmpx) -> *mut utmpx;
14821484
pub fn getutxline(ut: *const utmpx) -> *mut utmpx;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,8 @@ extern "C" {
15351535
servlen: ::size_t,
15361536
flags: ::c_int,
15371537
) -> ::c_int;
1538+
pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int;
1539+
pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t, suid: *mut ::uid_t) -> ::c_int;
15381540
pub fn kevent(
15391541
kq: ::c_int,
15401542
changelist: *const ::kevent,

0 commit comments

Comments
 (0)