| ... | @@ -1654,7 +1654,7 @@ pub fn accept4( | ... | @@ -1654,7 +1654,7 @@ pub fn accept4( |
| 1654 | /// | 1654 | /// |
| 1655 | /// The returned address is truncated if the buffer provided is too small; in this case, `addr_size` | 1655 | /// The returned address is truncated if the buffer provided is too small; in this case, `addr_size` |
| 1656 | /// will return a value greater than was supplied to the call. | 1656 | /// will return a value greater than was supplied to the call. |
| 1657 | addr_size: *usize, | 1657 | addr_size: *socklen_t, |
| 1658 | /// If flags is 0, then `accept4` is the same as `accept`. The following values can be bitwise | 1658 | /// If flags is 0, then `accept4` is the same as `accept`. The following values can be bitwise |
| 1659 | /// ORed in flags to obtain different behavior: | 1659 | /// ORed in flags to obtain different behavior: |
| 1660 | /// * `SOCK_NONBLOCK` - Set the `O_NONBLOCK` file status flag on the open file description (see `open`) | 1660 | /// * `SOCK_NONBLOCK` - Set the `O_NONBLOCK` file status flag on the open file description (see `open`) |
| ... | @@ -1665,7 +1665,7 @@ pub fn accept4( | ... | @@ -1665,7 +1665,7 @@ pub fn accept4( |
| 1665 | flags: u32, | 1665 | flags: u32, |
| 1666 | ) AcceptError!i32 { | 1666 | ) AcceptError!i32 { |
| 1667 | while (true) { | 1667 | while (true) { |
| 1668 | const rc = system.accept4(sockfd, addr, @ptrCast(*system.socklen_t, addr_size), flags); | 1668 | const rc = system.accept4(sockfd, addr, addr_size, flags); |
| 1669 | switch (errno(rc)) { | 1669 | switch (errno(rc)) { |
| 1670 | 0 => return @intCast(i32, rc), | 1670 | 0 => return @intCast(i32, rc), |
| 1671 | EINTR => continue, | 1671 | EINTR => continue, |