@@ -3374,57 +3374,57 @@ f! {
33743374 }
33753375 }
33763376
3377- pub { const } fn CMSG_ALIGN ( len: size_t) -> size_t {
3377+ pub const fn CMSG_ALIGN ( len: size_t) -> size_t {
33783378 ( len + size_of:: <size_t>( ) - 1 ) & !( size_of:: <size_t>( ) - 1 )
33793379 }
33803380
3381- pub { const } fn CMSG_SPACE ( len: c_uint) -> c_uint {
3381+ pub const fn CMSG_SPACE ( len: c_uint) -> c_uint {
33823382 ( CMSG_ALIGN ( len as size_t) + CMSG_ALIGN ( size_of:: <cmsghdr>( ) ) ) as c_uint
33833383 }
33843384
3385- pub { const } fn CMSG_LEN ( len: c_uint) -> c_uint {
3385+ pub const fn CMSG_LEN ( len: c_uint) -> c_uint {
33863386 ( CMSG_ALIGN ( size_of:: <cmsghdr>( ) ) + len as size_t) as c_uint
33873387 }
33883388}
33893389
33903390safe_f ! {
3391- pub { const } fn WIFSTOPPED ( status: c_int) -> bool {
3391+ pub const fn WIFSTOPPED ( status: c_int) -> bool {
33923392 ( status & 0xff ) == 0x7f
33933393 }
33943394
3395- pub { const } fn WSTOPSIG ( status: c_int) -> c_int {
3395+ pub const fn WSTOPSIG ( status: c_int) -> c_int {
33963396 ( status >> 8 ) & 0xff
33973397 }
33983398
3399- pub { const } fn WIFCONTINUED ( status: c_int) -> bool {
3399+ pub const fn WIFCONTINUED ( status: c_int) -> bool {
34003400 status == 0xffff
34013401 }
34023402
3403- pub { const } fn WIFSIGNALED ( status: c_int) -> bool {
3403+ pub const fn WIFSIGNALED ( status: c_int) -> bool {
34043404 ( ( status & 0x7f ) + 1 ) as i8 >= 2
34053405 }
34063406
3407- pub { const } fn WTERMSIG ( status: c_int) -> c_int {
3407+ pub const fn WTERMSIG ( status: c_int) -> c_int {
34083408 status & 0x7f
34093409 }
34103410
3411- pub { const } fn WIFEXITED ( status: c_int) -> bool {
3411+ pub const fn WIFEXITED ( status: c_int) -> bool {
34123412 ( status & 0x7f ) == 0
34133413 }
34143414
3415- pub { const } fn WEXITSTATUS ( status: c_int) -> c_int {
3415+ pub const fn WEXITSTATUS ( status: c_int) -> c_int {
34163416 ( status >> 8 ) & 0xff
34173417 }
34183418
3419- pub { const } fn WCOREDUMP ( status: c_int) -> bool {
3419+ pub const fn WCOREDUMP ( status: c_int) -> bool {
34203420 ( status & 0x80 ) != 0
34213421 }
34223422
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 {
34243424 ( cmd << 8 ) | ( type_ & 0x00ff )
34253425 }
34263426
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 {
34283428 let major = major as crate :: dev_t;
34293429 let minor = minor as crate :: dev_t;
34303430 let mut dev = 0 ;
@@ -3435,14 +3435,14 @@ safe_f! {
34353435 dev
34363436 }
34373437
3438- pub { const } fn major( dev: crate :: dev_t) -> c_uint {
3438+ pub const fn major( dev: crate :: dev_t) -> c_uint {
34393439 let mut major = 0 ;
34403440 major |= ( dev & 0x00000000000fff00 ) >> 8 ;
34413441 major |= ( dev & 0xfffff00000000000 ) >> 32 ;
34423442 major as c_uint
34433443 }
34443444
3445- pub { const } fn minor( dev: crate :: dev_t) -> c_uint {
3445+ pub const fn minor( dev: crate :: dev_t) -> c_uint {
34463446 let mut minor = 0 ;
34473447 minor |= ( dev & 0x00000000000000ff ) >> 0 ;
34483448 minor |= ( dev & 0x00000ffffff00000 ) >> 12 ;
0 commit comments