- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Closeonexec (0.3 sec)
-
src/runtime/os_darwin.go
if sigNoteRead != 0 || sigNoteWrite != 0 { // Generalizing this would require avoiding the pipe-fork-closeonexec race, which entangles syscall. throw("duplicate sigNoteSetup") } var errno int32 sigNoteRead, sigNoteWrite, errno = pipe() if errno != 0 { throw("pipe failed") } closeonexec(sigNoteRead) closeonexec(sigNoteWrite) // Make the write end of the pipe non-blocking, so that if the pipe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 11.9K bytes - Viewed (0) -
src/os/file_unix.go
if setSticky { setStickyBit(name) } // There's a race here with fork/exec, which we are // content to live with. See ../syscall/exec_unix.go. if !supportsCloseOnExec { syscall.CloseOnExec(r) } f := newFile(r, name, kindOpenFile, unix.HasNonblockFlag(flag)) f.pfd.SysFile = s return f, nil } func openDirNolog(name string) (*File, error) { var ( r int s poll.SysFile
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:52:34 UTC 2024 - 14.9K bytes - Viewed (0) -
src/runtime/netpoll_solaris.go
return int32(sysvicall4(&libc_port_alert, uintptr(port), uintptr(flags), uintptr(events), user)) } var portfd int32 = -1 func netpollinit() { portfd = port_create() if portfd >= 0 { closeonexec(portfd) return } print("runtime: port_create failed (errno=", errno(), ")\n") throw("runtime: netpollinit failed") } func netpollIsPollDescriptor(fd uintptr) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 11.2K bytes - Viewed (0) -
src/syscall/exec_windows.go
for _, s := range envv { for _, c := range s { b = utf16.AppendRune(b, c) } b = utf16.AppendRune(b, 0) } b = utf16.AppendRune(b, 0) return b, nil } func CloseOnExec(fd Handle) { SetHandleInformation(Handle(fd), HANDLE_FLAG_INHERIT, 0) } func SetNonblock(fd Handle, nonblocking bool) (err error) { return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 18:29:48 UTC 2023 - 10.3K bytes - Viewed (0) -
src/syscall/fs_js.go
filesMu.Unlock() return fd, nil } func Close(fd int) error { filesMu.Lock() delete(files, fd) filesMu.Unlock() _, err := fsCall("close", fd) return err } func CloseOnExec(fd int) { // nothing to do - no exec } func Mkdir(path string, perm uint32) error { if err := checkPath(path); err != nil { return err } _, err := fsCall("mkdir", path, perm) return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 11 18:19:17 UTC 2023 - 10.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go
var fdx [2]int32 err = socketpair(domain, typ, proto, &fdx) if err == nil { fd[0] = int(fdx[0]) fd[1] = int(fdx[1]) } return } var ioSync int64 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 16.5K bytes - Viewed (0) -
src/syscall/fs_wasip1.go
fdflags, unsafe.Pointer(&fd), ) } return int(fd), errnoErr(errno) } func Close(fd int) error { errno := fd_close(int32(fd)) return errnoErr(errno) } func CloseOnExec(fd int) { // nothing to do - no exec } func Mkdir(path string, perm uint32) error { if path == "" { return EINVAL } dirFd, pathPtr, pathLen := preparePath(path)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24.1K bytes - Viewed (0)