upd2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user