syscall (linux): waitid, pipe2

This commit is contained in:
xushiwei
2024-07-26 14:35:58 +08:00
parent d3e84cbc4c
commit 384e887fdb
3 changed files with 45 additions and 4 deletions

View File

@@ -6,12 +6,16 @@
package syscall
import "sync"
import (
"sync"
"github.com/goplus/llgo/c/syscall"
)
// forkExecPipe atomically opens a pipe with O_CLOEXEC set on both file
// descriptors.
func forkExecPipe(p []int) error {
return Pipe2(p, O_CLOEXEC)
return Pipe2(p, syscall.O_CLOEXEC)
}
var (