| ... | @@ -894,7 +894,7 @@ pub const Loop = struct { | ... | @@ -894,7 +894,7 @@ pub const Loop = struct { |
| 894 | self: *Loop, | 894 | self: *Loop, |
| 895 | /// This argument is a socket that has been created with `socket`, bound to a local address | 895 | /// This argument is a socket that has been created with `socket`, bound to a local address |
| 896 | /// with `bind`, and is listening for connections after a `listen`. | 896 | /// with `bind`, and is listening for connections after a `listen`. |
| 897 | sockfd: os.fd_t, | 897 | sockfd: os.socket_t, |
| 898 | /// This argument is a pointer to a sockaddr structure. This structure is filled in with the | 898 | /// This argument is a pointer to a sockaddr structure. This structure is filled in with the |
| 899 | /// address of the peer socket, as known to the communications layer. The exact format of the | 899 | /// address of the peer socket, as known to the communications layer. The exact format of the |
| 900 | /// address returned addr is determined by the socket's address family (see `socket` and the | 900 | /// address returned addr is determined by the socket's address family (see `socket` and the |
| ... | @@ -911,7 +911,7 @@ pub const Loop = struct { | ... | @@ -911,7 +911,7 @@ pub const Loop = struct { |
| 911 | /// * `SOCK_CLOEXEC` - Set the close-on-exec (`FD_CLOEXEC`) flag on the new file descriptor. See the | 911 | /// * `SOCK_CLOEXEC` - Set the close-on-exec (`FD_CLOEXEC`) flag on the new file descriptor. See the |
| 912 | /// description of the `O_CLOEXEC` flag in `open` for reasons why this may be useful. | 912 | /// description of the `O_CLOEXEC` flag in `open` for reasons why this may be useful. |
| 913 | flags: u32, | 913 | flags: u32, |
| 914 | ) os.AcceptError!os.fd_t { | 914 | ) os.AcceptError!os.socket_t { |
| 915 | while (true) { | 915 | while (true) { |
| 916 | return os.accept(sockfd, addr, addr_size, flags | os.SOCK_NONBLOCK) catch |err| switch (err) { | 916 | return os.accept(sockfd, addr, addr_size, flags | os.SOCK_NONBLOCK) catch |err| switch (err) { |
| 917 | error.WouldBlock => { | 917 | error.WouldBlock => { |