Skip to content

Commit be411c9

Browse files
committed
hurd: fix definition of utsname struct
- drop the "domainname" field, as it is not actually used - bump the length of the other fields to 1024, which is the actual size of the C arrays on Hurd
1 parent f68f68c commit be411c9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/unix/hurd/mod.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -872,12 +872,11 @@ s! {
872872
}
873873

874874
pub struct utsname {
875-
pub sysname: [::c_char; 65],
876-
pub nodename: [::c_char; 65],
877-
pub release: [::c_char; 65],
878-
pub version: [::c_char; 65],
879-
pub machine: [::c_char; 65],
880-
pub domainname: [::c_char; 65]
875+
pub sysname: [::c_char; 1024],
876+
pub nodename: [::c_char; 1024],
877+
pub release: [::c_char; 1024],
878+
pub version: [::c_char; 1024],
879+
pub machine: [::c_char; 1024],
881880
}
882881

883882
pub struct rlimit64 {

0 commit comments

Comments
 (0)