Skip to content

Commit

Permalink
hurd: fix definition of utsname struct
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
pinotree committed Oct 19, 2024
1 parent f68f68c commit be411c9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/unix/hurd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,12 +872,11 @@ s! {
}

pub struct utsname {
pub sysname: [::c_char; 65],
pub nodename: [::c_char; 65],
pub release: [::c_char; 65],
pub version: [::c_char; 65],
pub machine: [::c_char; 65],
pub domainname: [::c_char; 65]
pub sysname: [::c_char; 1024],
pub nodename: [::c_char; 1024],
pub release: [::c_char; 1024],
pub version: [::c_char; 1024],
pub machine: [::c_char; 1024],
}

pub struct rlimit64 {
Expand Down

0 comments on commit be411c9

Please sign in to comment.