This commit is contained in:
ge
2026-04-04 00:47:35 +03:00
parent 4e43912583
commit 1cf6d878b5
19 changed files with 438 additions and 302 deletions
+6 -12
View File
@@ -1,19 +1,13 @@
module netio
import sync
fn init() {
netio_protoent_mutex = sync.new_mutex()
}
fn cleanup() {
netio_protoent_mutex.destroy()
unsafe { free(netio_protoent_mutex) }
}
// The socket address family type.
// See [address_families(7)](https://www.man7.org/linux/man-pages/man7/address_families.7.html).
pub type AddrFamily = u16
pub type AddrFamily = int
// The protocol number type.
// See [protocols(5)](https://man7.org/linux/man-pages/man5/protocols.5.html),
// and [getprotoent(3)](https://man7.org/linux/man-pages/man3/getprotoent.3.html) for details.
pub type Protocol = int
// The socket type.
pub type SocketType = int