Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,10 @@
|
||||
module veb
|
||||
|
||||
#include <sys/sendfile.h>
|
||||
|
||||
fn C.sendfile(out_fd i32, in_fd i32, offset voidptr, count i32) i32
|
||||
|
||||
fn sendfile(out_fd int, in_fd int, nr_bytes int) int {
|
||||
// always pass nil as offset, so the file offset will be used and updated.
|
||||
return C.sendfile(out_fd, in_fd, 0, nr_bytes)
|
||||
}
|
||||
Reference in new issue
Block a user