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

+12
View File
@@ -0,0 +1,12 @@
module veb
fn C.sendfile(in_fd i32, out_fd i32, offset i32, count i32, voidptr offsetp, voidptr hdr, flags i32) i32
fn sendfile(out_fd int, in_fd int, nr_bytes int) int {
// out_fd must be a stream socket descriptor.
r := C.sendfile(in_fd, out_fd, 0, nr_bytes, unsafe { nil }, unsafe { nil }, 0)
if r == 0 {
return nr_bytes
}
return r
}