| ... | @@ -76,6 +76,7 @@ pub extern "wasi_snapshot_preview1" fn random_get(buf: [*]u8, buf_len: usize) er | ... | @@ -76,6 +76,7 @@ pub extern "wasi_snapshot_preview1" fn random_get(buf: [*]u8, buf_len: usize) er |
| 76 | | 76 | |
| 77 | pub extern "wasi_snapshot_preview1" fn sched_yield() errno_t; | 77 | pub extern "wasi_snapshot_preview1" fn sched_yield() errno_t; |
| 78 | | 78 | |
| | 79 | pub extern "wasi_snapshot_preview1" fn sock_accept(sock: fd_t, flags: fdflags_t, result_fd: *fd_t) errno_t; |
| 79 | pub extern "wasi_snapshot_preview1" fn sock_recv(sock: fd_t, ri_data: *const iovec_t, ri_data_len: usize, ri_flags: riflags_t, ro_datalen: *usize, ro_flags: *roflags_t) errno_t; | 80 | pub extern "wasi_snapshot_preview1" fn sock_recv(sock: fd_t, ri_data: *const iovec_t, ri_data_len: usize, ri_flags: riflags_t, ro_datalen: *usize, ro_flags: *roflags_t) errno_t; |
| 80 | pub extern "wasi_snapshot_preview1" fn sock_send(sock: fd_t, si_data: *const ciovec_t, si_data_len: usize, si_flags: siflags_t, so_datalen: *usize) errno_t; | 81 | pub extern "wasi_snapshot_preview1" fn sock_send(sock: fd_t, si_data: *const ciovec_t, si_data_len: usize, si_flags: siflags_t, so_datalen: *usize) errno_t; |
| 81 | pub extern "wasi_snapshot_preview1" fn sock_shutdown(sock: fd_t, how: sdflags_t) errno_t; | 82 | pub extern "wasi_snapshot_preview1" fn sock_shutdown(sock: fd_t, how: sdflags_t) errno_t; |
| ... | @@ -434,6 +435,7 @@ pub const RIGHT = struct { | ... | @@ -434,6 +435,7 @@ pub const RIGHT = struct { |
| 434 | pub const PATH_UNLINK_FILE: rights_t = 0x0000000004000000; | 435 | pub const PATH_UNLINK_FILE: rights_t = 0x0000000004000000; |
| 435 | pub const POLL_FD_READWRITE: rights_t = 0x0000000008000000; | 436 | pub const POLL_FD_READWRITE: rights_t = 0x0000000008000000; |
| 436 | pub const SOCK_SHUTDOWN: rights_t = 0x0000000010000000; | 437 | pub const SOCK_SHUTDOWN: rights_t = 0x0000000010000000; |
| | 438 | pub const SOCK_ACCEPT: rights_t = 0x0000000020000000; |
| 437 | pub const ALL: rights_t = FD_DATASYNC | | 439 | pub const ALL: rights_t = FD_DATASYNC | |
| 438 | FD_READ | | 440 | FD_READ | |
| 439 | FD_SEEK | | 441 | FD_SEEK | |
| ... | @@ -462,7 +464,8 @@ pub const RIGHT = struct { | ... | @@ -462,7 +464,8 @@ pub const RIGHT = struct { |
| 462 | PATH_REMOVE_DIRECTORY | | 464 | PATH_REMOVE_DIRECTORY | |
| 463 | PATH_UNLINK_FILE | | 465 | PATH_UNLINK_FILE | |
| 464 | POLL_FD_READWRITE | | 466 | POLL_FD_READWRITE | |
| 465 | SOCK_SHUTDOWN; | 467 | SOCK_SHUTDOWN | |
| | 468 | SOCK_ACCEPT; |
| 466 | }; | 469 | }; |
| 467 | | 470 | |
| 468 | pub const sdflags_t = u8; | 471 | pub const sdflags_t = u8; |