Skip to content

Commit 804f4bf

Browse files
committed
Add getresgid and getresuid to DragonFly, FreeBSD and OpenBSD
1 parent 89d0bd5 commit 804f4bf

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
@@ -963,6 +963,8 @@ getpriority
963963
getprogname
964964
getpwent
965965
getpwnam_r
966+
getresgid
967+
getresuid
966968
getrlimit
967969
getrusage
968970
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
@@ -1527,6 +1527,8 @@ extern "C" {
15271527
servlen: ::size_t,
15281528
flags: ::c_int,
15291529
) -> ::c_int;
1530+
pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int;
1531+
pub fn getresuid(ruid: *mut ::uid_t, euid: *mut ::uid_t, suid: *mut ::uid_t) -> ::c_int;
15301532
pub fn kevent(
15311533
kq: ::c_int,
15321534
changelist: *const ::kevent,

0 commit comments

Comments
 (0)