- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for FD_CLOEXEC (0.15 sec)
-
src/syscall/forkpipe.go
// descriptors. func forkExecPipe(p []int) error { err := Pipe(p) if err != nil { return err } _, err = fcntl(p[0], F_SETFD, FD_CLOEXEC) if err != nil { return err } _, err = fcntl(p[1], F_SETFD, FD_CLOEXEC) return err } func acquireForkLock() { ForkLock.Lock() } func releaseForkLock() { ForkLock.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 10 19:19:59 UTC 2023 - 604 bytes - Viewed (0) -
src/net/unixsock_readmsg_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 09:15:25 UTC 2023 - 2.5K bytes - Viewed (0) -
src/runtime/nbpipe_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 20 20:32:54 UTC 2023 - 2K bytes - Viewed (0) -
src/syscall/exec_bsd.go
} else { _, _, err1 = RawSyscall(SYS_DUP2, uintptr(pipe), uintptr(nextfd), 0) if err1 != 0 { goto childerror } _, _, err1 = RawSyscall(SYS_FCNTL, uintptr(nextfd), F_SETFD, FD_CLOEXEC) } if err1 != 0 { goto childerror } pipe = nextfd nextfd++ } for i = 0; i < len(fd); i++ { if fd[i] >= 0 && fd[i] < i { if nextfd == pipe { // don't stomp on pipe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 7.9K bytes - Viewed (0) -
src/syscall/exec_libc2.go
_, _, err1 = rawSyscall(dupTrampoline, uintptr(pipe), uintptr(nextfd), 0) if err1 != 0 { goto childerror } _, _, err1 = rawSyscall(abi.FuncPCABI0(libc_fcntl_trampoline), uintptr(nextfd), F_SETFD, FD_CLOEXEC) } if err1 != 0 { goto childerror } pipe = nextfd nextfd++ } for i = 0; i < len(fd); i++ { if fd[i] >= 0 && fd[i] < i { if nextfd == pipe { // don't stomp on pipe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 8.2K bytes - Viewed (0) -
src/syscall/exec_libc.go
default: _, err1 = dup2child(uintptr(pipe), uintptr(nextfd)) if err1 != 0 { goto childerror } _, err1 = fcntl1(uintptr(nextfd), F_SETFD, FD_CLOEXEC) } if err1 != 0 { goto childerror } pipe = nextfd nextfd++ } for i = 0; i < len(fd); i++ { if fd[i] >= 0 && fd[i] < i { if nextfd == pipe { // don't stomp on pipe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 8.2K bytes - Viewed (0) -
src/syscall/exec_unix.go
b := make([]byte, n) n = 0 for i, s := range ss { bb[i] = &b[n] copy(b[n:], s) n += len(s) + 1 } return bb, nil } func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) } func SetNonblock(fd int, nonblocking bool) (err error) { flag, err := fcntl(fd, F_GETFL, 0) if err != nil { return err } if (flag&O_NONBLOCK != 0) == nonblocking { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 8.7K bytes - Viewed (0)