This commit is contained in:
ge
2026-04-01 00:53:36 +03:00
commit b27f835d33
24 changed files with 1106 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
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
// The socket type.
pub type SocketType = int
// The socket level type.
pub type SocketLevel = int
// The socket option type.
pub type SocketOption = int