c/os:dup3

This commit is contained in:
luoliwoshang
2025-01-16 11:00:18 +00:00
parent 275bde6461
commit 2053c72008

View File

@@ -183,6 +183,9 @@ func Dup(fd c.Int) c.Int
//go:linkname Dup2 C.dup2
func Dup2(oldfd c.Int, newfd c.Int) c.Int
//go:linkname Dup3 C.dup3
func Dup3(oldfd c.Int, newfd c.Int, flags c.Int) c.Int
/* TODO(xsw):
On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64, pipe() has the following prototype:
struct fd_pair {