Skip to content

Commit bf2ce17

Browse files
committed
CHANGELOG entry
1 parent ebe84c2 commit bf2ce17

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7171

7272
- Simplified the function signatures of `recvmmsg` and `sendmmsg`
7373

74+
### Added
75+
- Added `Icmp` and `IcmpV6` to `SockProtocol`.
76+
(#[2103](https://github.com/nix-rust/nix/pull/2103))
77+
78+
- Added `F_GETPATH` FcntlFlags entry on Apple/NetBSD/DragonflyBSD for `::nix::fcntl`.
79+
([#2142](https://github.com/nix-rust/nix/pull/2142))
80+
81+
- Added `Ipv6HopLimit` to `::nix::sys::socket::ControlMessage` for Linux,
82+
MacOS, FreeBSD, DragonflyBSD, Android, iOS and Haiku.
83+
([#2074](https://github.com/nix-rust/nix/pull/2074))
84+
85+
- Added `F_GETPATH_NOFIRMLINK` and `F_BARRIERFSYNC` FcntlFlags entry on Apple for `::nix::fcntl`.
86+
([#2155](https://github.com/nix-rust/nix/pull/2155))
87+
7488
## [0.27.1] - 2023-08-28
7589

7690
### Fixed

test/test_fcntl.rs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,38 @@ fn test_f_get_path() {
585585
);
586586
}
587587

588+
#[cfg(any(target_os = "macos", target_os = "ios"))]
589+
#[test]
590+
fn test_f_get_path_nofirmlink() {
591+
use nix::fcntl::*;
592+
use std::{os::unix::io::AsRawFd, path::PathBuf};
593+
594+
let tmp = NamedTempFile::new().unwrap();
595+
let fd = tmp.as_raw_fd();
596+
let mut path = PathBuf::new();
597+
let res = fcntl(fd, FcntlArg::F_GETPATH_NOFIRMLINK(&mut path))
598+
.expect("get path failed");
599+
let mut tmpstr = String::from("/System/Volumes/Data");
600+
tmpstr.push_str(
601+
&tmp.path()
602+
.canonicalize()
603+
.unwrap()
604+
.into_os_string()
605+
.into_string()
606+
.unwrap(),
607+
);
608+
assert_ne!(res, -1);
609+
assert_eq!(
610+
path.as_path()
611+
.canonicalize()
612+
.unwrap()
613+
.into_os_string()
614+
.into_string()
615+
.unwrap(),
616+
tmpstr
617+
);
618+
}
619+
588620
#[cfg(all(target_os = "freebsd", target_arch = "x86_64"))]
589621
#[test]
590622
fn test_f_kinfo() {

0 commit comments

Comments
 (0)