@@ -3326,57 +3326,57 @@ f! {
3326
3326
}
3327
3327
}
3328
3328
3329
- pub { const } fn CMSG_ALIGN ( len: size_t) -> size_t {
3329
+ pub const fn CMSG_ALIGN ( len: size_t) -> size_t {
3330
3330
( len + size_of:: <size_t>( ) - 1 ) & !( size_of:: <size_t>( ) - 1 )
3331
3331
}
3332
3332
3333
- pub { const } fn CMSG_SPACE ( len: c_uint) -> c_uint {
3333
+ pub const fn CMSG_SPACE ( len: c_uint) -> c_uint {
3334
3334
( CMSG_ALIGN ( len as size_t) + CMSG_ALIGN ( size_of:: <cmsghdr>( ) ) ) as c_uint
3335
3335
}
3336
3336
3337
- pub { const } fn CMSG_LEN ( len: c_uint) -> c_uint {
3337
+ pub const fn CMSG_LEN ( len: c_uint) -> c_uint {
3338
3338
( CMSG_ALIGN ( size_of:: <cmsghdr>( ) ) + len as size_t) as c_uint
3339
3339
}
3340
3340
}
3341
3341
3342
3342
safe_f ! {
3343
- pub { const } fn WIFSTOPPED ( status: c_int) -> bool {
3343
+ pub const fn WIFSTOPPED ( status: c_int) -> bool {
3344
3344
( status & 0xff ) == 0x7f
3345
3345
}
3346
3346
3347
- pub { const } fn WSTOPSIG ( status: c_int) -> c_int {
3347
+ pub const fn WSTOPSIG ( status: c_int) -> c_int {
3348
3348
( status >> 8 ) & 0xff
3349
3349
}
3350
3350
3351
- pub { const } fn WIFCONTINUED ( status: c_int) -> bool {
3351
+ pub const fn WIFCONTINUED ( status: c_int) -> bool {
3352
3352
status == 0xffff
3353
3353
}
3354
3354
3355
- pub { const } fn WIFSIGNALED ( status: c_int) -> bool {
3355
+ pub const fn WIFSIGNALED ( status: c_int) -> bool {
3356
3356
( ( status & 0x7f ) + 1 ) as i8 >= 2
3357
3357
}
3358
3358
3359
- pub { const } fn WTERMSIG ( status: c_int) -> c_int {
3359
+ pub const fn WTERMSIG ( status: c_int) -> c_int {
3360
3360
status & 0x7f
3361
3361
}
3362
3362
3363
- pub { const } fn WIFEXITED ( status: c_int) -> bool {
3363
+ pub const fn WIFEXITED ( status: c_int) -> bool {
3364
3364
( status & 0x7f ) == 0
3365
3365
}
3366
3366
3367
- pub { const } fn WEXITSTATUS ( status: c_int) -> c_int {
3367
+ pub const fn WEXITSTATUS ( status: c_int) -> c_int {
3368
3368
( status >> 8 ) & 0xff
3369
3369
}
3370
3370
3371
- pub { const } fn WCOREDUMP ( status: c_int) -> bool {
3371
+ pub const fn WCOREDUMP ( status: c_int) -> bool {
3372
3372
( status & 0x80 ) != 0
3373
3373
}
3374
3374
3375
- pub { const } fn QCMD ( cmd: c_int, type_: c_int) -> c_int {
3375
+ pub const fn QCMD ( cmd: c_int, type_: c_int) -> c_int {
3376
3376
( cmd << 8 ) | ( type_ & 0x00ff )
3377
3377
}
3378
3378
3379
- pub { const } fn makedev( major: c_uint, minor: c_uint) -> crate :: dev_t {
3379
+ pub const fn makedev( major: c_uint, minor: c_uint) -> crate :: dev_t {
3380
3380
let major = major as crate :: dev_t;
3381
3381
let minor = minor as crate :: dev_t;
3382
3382
let mut dev = 0 ;
@@ -3387,14 +3387,14 @@ safe_f! {
3387
3387
dev
3388
3388
}
3389
3389
3390
- pub { const } fn major( dev: crate :: dev_t) -> c_uint {
3390
+ pub const fn major( dev: crate :: dev_t) -> c_uint {
3391
3391
let mut major = 0 ;
3392
3392
major |= ( dev & 0x00000000000fff00 ) >> 8 ;
3393
3393
major |= ( dev & 0xfffff00000000000 ) >> 32 ;
3394
3394
major as c_uint
3395
3395
}
3396
3396
3397
- pub { const } fn minor( dev: crate :: dev_t) -> c_uint {
3397
+ pub const fn minor( dev: crate :: dev_t) -> c_uint {
3398
3398
let mut minor = 0 ;
3399
3399
minor |= ( dev & 0x00000000000000ff ) >> 0 ;
3400
3400
minor |= ( dev & 0x00000ffffff00000 ) >> 12 ;
0 commit comments