Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
module net
#include <unistd.h>
#include <sys/select.h>
// inet.h is needed for inet_ntop on macos
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#flag solaris -lsocket
const is_windows = false
pub fn error_code() int {
return C.errno
}
fn init() {
}
pub const msg_nosignal = C.MSG_NOSIGNAL
pub const msg_dontwait = C.MSG_DONTWAIT
pub const error_ewouldblock = int(C.EWOULDBLOCK)
pub const error_einprogress = int(C.EINPROGRESS)
pub const error_eagain = int(C.EAGAIN)
pub const error_eintr = int(C.EINTR)
fn C.unlink(&char) i32