@@ -3326,57 +3326,57 @@ f! {
33263326 }
33273327 }
33283328
3329- pub { const } fn CMSG_ALIGN ( len: size_t) -> size_t {
3329+ pub const fn CMSG_ALIGN ( len: size_t) -> size_t {
33303330 ( len + size_of:: <size_t>( ) - 1 ) & !( size_of:: <size_t>( ) - 1 )
33313331 }
33323332
3333- pub { const } fn CMSG_SPACE ( len: c_uint) -> c_uint {
3333+ pub const fn CMSG_SPACE ( len: c_uint) -> c_uint {
33343334 ( CMSG_ALIGN ( len as size_t) + CMSG_ALIGN ( size_of:: <cmsghdr>( ) ) ) as c_uint
33353335 }
33363336
3337- pub { const } fn CMSG_LEN ( len: c_uint) -> c_uint {
3337+ pub const fn CMSG_LEN ( len: c_uint) -> c_uint {
33383338 ( CMSG_ALIGN ( size_of:: <cmsghdr>( ) ) + len as size_t) as c_uint
33393339 }
33403340}
33413341
33423342safe_f ! {
3343- pub { const } fn WIFSTOPPED ( status: c_int) -> bool {
3343+ pub const fn WIFSTOPPED ( status: c_int) -> bool {
33443344 ( status & 0xff ) == 0x7f
33453345 }
33463346
3347- pub { const } fn WSTOPSIG ( status: c_int) -> c_int {
3347+ pub const fn WSTOPSIG ( status: c_int) -> c_int {
33483348 ( status >> 8 ) & 0xff
33493349 }
33503350
3351- pub { const } fn WIFCONTINUED ( status: c_int) -> bool {
3351+ pub const fn WIFCONTINUED ( status: c_int) -> bool {
33523352 status == 0xffff
33533353 }
33543354
3355- pub { const } fn WIFSIGNALED ( status: c_int) -> bool {
3355+ pub const fn WIFSIGNALED ( status: c_int) -> bool {
33563356 ( ( status & 0x7f ) + 1 ) as i8 >= 2
33573357 }
33583358
3359- pub { const } fn WTERMSIG ( status: c_int) -> c_int {
3359+ pub const fn WTERMSIG ( status: c_int) -> c_int {
33603360 status & 0x7f
33613361 }
33623362
3363- pub { const } fn WIFEXITED ( status: c_int) -> bool {
3363+ pub const fn WIFEXITED ( status: c_int) -> bool {
33643364 ( status & 0x7f ) == 0
33653365 }
33663366
3367- pub { const } fn WEXITSTATUS ( status: c_int) -> c_int {
3367+ pub const fn WEXITSTATUS ( status: c_int) -> c_int {
33683368 ( status >> 8 ) & 0xff
33693369 }
33703370
3371- pub { const } fn WCOREDUMP ( status: c_int) -> bool {
3371+ pub const fn WCOREDUMP ( status: c_int) -> bool {
33723372 ( status & 0x80 ) != 0
33733373 }
33743374
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 {
33763376 ( cmd << 8 ) | ( type_ & 0x00ff )
33773377 }
33783378
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 {
33803380 let major = major as crate :: dev_t;
33813381 let minor = minor as crate :: dev_t;
33823382 let mut dev = 0 ;
@@ -3387,14 +3387,14 @@ safe_f! {
33873387 dev
33883388 }
33893389
3390- pub { const } fn major( dev: crate :: dev_t) -> c_uint {
3390+ pub const fn major( dev: crate :: dev_t) -> c_uint {
33913391 let mut major = 0 ;
33923392 major |= ( dev & 0x00000000000fff00 ) >> 8 ;
33933393 major |= ( dev & 0xfffff00000000000 ) >> 32 ;
33943394 major as c_uint
33953395 }
33963396
3397- pub { const } fn minor( dev: crate :: dev_t) -> c_uint {
3397+ pub const fn minor( dev: crate :: dev_t) -> c_uint {
33983398 let mut minor = 0 ;
33993399 minor |= ( dev & 0x00000000000000ff ) >> 0 ;
34003400 minor |= ( dev & 0x00000ffffff00000 ) >> 12 ;
0 commit comments