File tree 12 files changed +12
-12
lines changed
12 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -3271,7 +3271,7 @@ f! {
3271
3271
as :: c_uint
3272
3272
}
3273
3273
3274
- pub fn CMSG_LEN ( len: :: c_uint) -> :: c_uint {
3274
+ pub { const } fn CMSG_LEN ( len: :: c_uint) -> :: c_uint {
3275
3275
( CMSG_ALIGN ( :: mem:: size_of:: <cmsghdr>( ) ) + len as :: size_t) as :: c_uint
3276
3276
}
3277
3277
}
Original file line number Diff line number Diff line change @@ -2551,7 +2551,7 @@ f! {
2551
2551
( cmsg as * mut :: c_uchar) . offset( :: mem:: size_of:: <:: cmsghdr>( ) as isize )
2552
2552
}
2553
2553
2554
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
2554
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
2555
2555
:: mem:: size_of:: <:: cmsghdr>( ) as :: c_uint + length
2556
2556
}
2557
2557
Original file line number Diff line number Diff line change @@ -5107,7 +5107,7 @@ f! {
5107
5107
as :: c_uint
5108
5108
}
5109
5109
5110
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
5110
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
5111
5111
( __DARWIN_ALIGN32( :: mem:: size_of:: <:: cmsghdr>( ) ) + length as usize )
5112
5112
as :: c_uint
5113
5113
}
Original file line number Diff line number Diff line change @@ -1534,7 +1534,7 @@ f! {
1534
1534
. offset( _CMSG_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as isize )
1535
1535
}
1536
1536
1537
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1537
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1538
1538
( _CMSG_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) + length as usize )
1539
1539
as :: c_uint
1540
1540
}
Original file line number Diff line number Diff line change @@ -4717,7 +4717,7 @@ f! {
4717
4717
. offset( _ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as isize )
4718
4718
}
4719
4719
4720
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
4720
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
4721
4721
_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as :: c_uint + length
4722
4722
}
4723
4723
Original file line number Diff line number Diff line change @@ -2422,7 +2422,7 @@ f! {
2422
2422
. offset( _ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as isize )
2423
2423
}
2424
2424
2425
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
2425
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
2426
2426
_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as :: c_uint + length
2427
2427
}
2428
2428
Original file line number Diff line number Diff line change @@ -1705,7 +1705,7 @@ f! {
1705
1705
. offset( _ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as isize )
1706
1706
}
1707
1707
1708
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1708
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1709
1709
_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as :: c_uint + length
1710
1710
}
1711
1711
Original file line number Diff line number Diff line change @@ -1504,7 +1504,7 @@ f! {
1504
1504
as :: c_uint
1505
1505
}
1506
1506
1507
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1507
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1508
1508
CMSG_ALIGN ( :: mem:: size_of:: <cmsghdr>( ) ) as :: c_uint + length
1509
1509
}
1510
1510
Original file line number Diff line number Diff line change @@ -1557,7 +1557,7 @@ f! {
1557
1557
as :: c_uint
1558
1558
}
1559
1559
1560
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1560
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1561
1561
CMSG_ALIGN ( :: mem:: size_of:: <cmsghdr>( ) ) as :: c_uint + length
1562
1562
}
1563
1563
Original file line number Diff line number Diff line change @@ -2539,7 +2539,7 @@ f! {
2539
2539
. offset( _CMSG_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as isize )
2540
2540
}
2541
2541
2542
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
2542
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
2543
2543
_CMSG_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as :: c_uint + length
2544
2544
}
2545
2545
Original file line number Diff line number Diff line change @@ -2601,7 +2601,7 @@ f! {
2601
2601
_CMSG_DATA_ALIGN( cmsg. offset( 1 ) as usize ) as * mut :: c_uchar
2602
2602
}
2603
2603
2604
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
2604
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
2605
2605
_CMSG_DATA_ALIGN( :: mem:: size_of:: <:: cmsghdr>( ) ) as :: c_uint + length
2606
2606
}
2607
2607
Original file line number Diff line number Diff line change @@ -1072,7 +1072,7 @@ f! {
1072
1072
as :: c_uint
1073
1073
}
1074
1074
1075
- pub fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1075
+ pub { const } fn CMSG_LEN ( length: :: c_uint) -> :: c_uint {
1076
1076
CMSG_ALIGN ( :: mem:: size_of:: <cmsghdr>( ) ) as :: c_uint + length
1077
1077
}
1078
1078
}
You can’t perform that action at this time.
0 commit comments