Skip to content

Commit 1dcf578

Browse files
committed
unistd, test: Enable getpeereid on dragonfly
1 parent cc0e940 commit 1dcf578

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unistd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,6 +2795,7 @@ pub fn ttyname(fd: RawFd) -> Result<PathBuf> {
27952795
target_os = "freebsd",
27962796
target_os = "openbsd",
27972797
target_os = "netbsd",
2798+
target_os = "dragonfly",
27982799
))]
27992800
pub fn getpeereid(fd: RawFd) -> Result<(Uid, Gid)> {
28002801
let mut uid = 1;

test/test_unistd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,7 @@ fn test_getpeereid() {
10761076
target_os = "freebsd",
10771077
target_os = "openbsd",
10781078
target_os = "netbsd",
1079+
target_os = "dragonfly",
10791080
))]
10801081
fn test_getpeereid_invalid_fd() {
10811082
// getpeereid is not POSIX, so error codes are inconsistent between different Unices.

0 commit comments

Comments
 (0)