File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -872,12 +872,11 @@ s! {
872
872
}
873
873
874
874
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; _UTSNAME_LENGTH] ,
876
+ pub nodename: [ :: c_char; _UTSNAME_LENGTH] ,
877
+ pub release: [ :: c_char; _UTSNAME_LENGTH] ,
878
+ pub version: [ :: c_char; _UTSNAME_LENGTH] ,
879
+ pub machine: [ :: c_char; _UTSNAME_LENGTH] ,
881
880
}
882
881
883
882
pub struct rlimit64 {
@@ -3436,6 +3435,9 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
3436
3435
} ;
3437
3436
pub const PTHREAD_STACK_MIN : :: size_t = 0 ;
3438
3437
3438
+ // Non-public helper constants
3439
+ const _UTSNAME_LENGTH: usize = 1024 ;
3440
+
3439
3441
const_fn ! {
3440
3442
{ const } fn CMSG_ALIGN ( len: usize ) -> usize {
3441
3443
len + :: mem:: size_of:: <usize >( ) - 1 & !( :: mem:: size_of:: <usize >( ) - 1 )
You can’t perform that action at this time.
0 commit comments