@@ -3374,57 +3374,57 @@ f! {
3374
3374
}
3375
3375
}
3376
3376
3377
- pub { const } fn CMSG_ALIGN ( len: size_t) -> size_t {
3377
+ pub const fn CMSG_ALIGN ( len: size_t) -> size_t {
3378
3378
( len + size_of:: <size_t>( ) - 1 ) & !( size_of:: <size_t>( ) - 1 )
3379
3379
}
3380
3380
3381
- pub { const } fn CMSG_SPACE ( len: c_uint) -> c_uint {
3381
+ pub const fn CMSG_SPACE ( len: c_uint) -> c_uint {
3382
3382
( CMSG_ALIGN ( len as size_t) + CMSG_ALIGN ( size_of:: <cmsghdr>( ) ) ) as c_uint
3383
3383
}
3384
3384
3385
- pub { const } fn CMSG_LEN ( len: c_uint) -> c_uint {
3385
+ pub const fn CMSG_LEN ( len: c_uint) -> c_uint {
3386
3386
( CMSG_ALIGN ( size_of:: <cmsghdr>( ) ) + len as size_t) as c_uint
3387
3387
}
3388
3388
}
3389
3389
3390
3390
safe_f ! {
3391
- pub { const } fn WIFSTOPPED ( status: c_int) -> bool {
3391
+ pub const fn WIFSTOPPED ( status: c_int) -> bool {
3392
3392
( status & 0xff ) == 0x7f
3393
3393
}
3394
3394
3395
- pub { const } fn WSTOPSIG ( status: c_int) -> c_int {
3395
+ pub const fn WSTOPSIG ( status: c_int) -> c_int {
3396
3396
( status >> 8 ) & 0xff
3397
3397
}
3398
3398
3399
- pub { const } fn WIFCONTINUED ( status: c_int) -> bool {
3399
+ pub const fn WIFCONTINUED ( status: c_int) -> bool {
3400
3400
status == 0xffff
3401
3401
}
3402
3402
3403
- pub { const } fn WIFSIGNALED ( status: c_int) -> bool {
3403
+ pub const fn WIFSIGNALED ( status: c_int) -> bool {
3404
3404
( ( status & 0x7f ) + 1 ) as i8 >= 2
3405
3405
}
3406
3406
3407
- pub { const } fn WTERMSIG ( status: c_int) -> c_int {
3407
+ pub const fn WTERMSIG ( status: c_int) -> c_int {
3408
3408
status & 0x7f
3409
3409
}
3410
3410
3411
- pub { const } fn WIFEXITED ( status: c_int) -> bool {
3411
+ pub const fn WIFEXITED ( status: c_int) -> bool {
3412
3412
( status & 0x7f ) == 0
3413
3413
}
3414
3414
3415
- pub { const } fn WEXITSTATUS ( status: c_int) -> c_int {
3415
+ pub const fn WEXITSTATUS ( status: c_int) -> c_int {
3416
3416
( status >> 8 ) & 0xff
3417
3417
}
3418
3418
3419
- pub { const } fn WCOREDUMP ( status: c_int) -> bool {
3419
+ pub const fn WCOREDUMP ( status: c_int) -> bool {
3420
3420
( status & 0x80 ) != 0
3421
3421
}
3422
3422
3423
- pub { const } fn QCMD ( cmd: c_int, type_: c_int) -> c_int {
3423
+ pub const fn QCMD ( cmd: c_int, type_: c_int) -> c_int {
3424
3424
( cmd << 8 ) | ( type_ & 0x00ff )
3425
3425
}
3426
3426
3427
- pub { const } fn makedev( major: c_uint, minor: c_uint) -> crate :: dev_t {
3427
+ pub const fn makedev( major: c_uint, minor: c_uint) -> crate :: dev_t {
3428
3428
let major = major as crate :: dev_t;
3429
3429
let minor = minor as crate :: dev_t;
3430
3430
let mut dev = 0 ;
@@ -3435,14 +3435,14 @@ safe_f! {
3435
3435
dev
3436
3436
}
3437
3437
3438
- pub { const } fn major( dev: crate :: dev_t) -> c_uint {
3438
+ pub const fn major( dev: crate :: dev_t) -> c_uint {
3439
3439
let mut major = 0 ;
3440
3440
major |= ( dev & 0x00000000000fff00 ) >> 8 ;
3441
3441
major |= ( dev & 0xfffff00000000000 ) >> 32 ;
3442
3442
major as c_uint
3443
3443
}
3444
3444
3445
- pub { const } fn minor( dev: crate :: dev_t) -> c_uint {
3445
+ pub const fn minor( dev: crate :: dev_t) -> c_uint {
3446
3446
let mut minor = 0 ;
3447
3447
minor |= ( dev & 0x00000000000000ff ) >> 0 ;
3448
3448
minor |= ( dev & 0x00000ffffff00000 ) >> 12 ;
0 commit comments