File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
10
10
([ #1804 ] ( https://github.com/nix-rust/nix/pull/1804 ) )
11
11
- Added ` line_discipline ` field to ` Termios ` on Linux, Android and Haiku
12
12
([ #1805 ] ( https://github.com/nix-rust/nix/pull/1805 ) )
13
+ - Added ` domainname ` field of ` UtsName ` on Android and Linux
14
+ ([ #1817 ] ( https://github.com/nix-rust/nix/pull/1817 ) )
13
15
14
16
### Changed
15
17
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ impl UtsName {
35
35
pub fn machine ( & self ) -> & OsStr {
36
36
cast_and_trim ( & self . 0 . machine )
37
37
}
38
+
39
+ /// NIS or YP domain name of this machine.
40
+ #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
41
+ pub fn domainname ( & self ) -> & OsStr {
42
+ cast_and_trim ( & self . 0 . domainname )
43
+ }
38
44
}
39
45
40
46
/// Get system identification
You can’t perform that action at this time.
0 commit comments