Update dependencies

This commit is contained in:
bluepython508 committed 2025-04-09 01:00:12 +01:00
1 parent f0641ffd6e
commit 5a9cfc022c
882 files changed
+68907 -24178

No files matched your search

+12
View File
@@ -246,6 +246,18 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
return sendfile(outfd, infd, offset, count)
}
func Dup3(oldfd, newfd, flags int) error {
if oldfd == newfd || flags&^O_CLOEXEC != 0 {
return EINVAL
}
how := F_DUP2FD
if flags&O_CLOEXEC != 0 {
how = F_DUP2FD_CLOEXEC
}
_, err := fcntl(oldfd, how, newfd)
return err
}
/*
* Exposed directly
*/