- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for Closeonexec (0.21 sec)
-
src/net/sock_cloexec_solaris.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements sysSocket for platforms that provide a fast path for // setting SetNonblock and CloseOnExec, but don't necessarily support it. // Support for SOCK_* flags as part of the type parameter was added to Oracle // Solaris in the 11.4 release. Thus, on releases prior to 11.4, we fall back
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 1.4K bytes - Viewed (0) -
src/internal/poll/sock_cloexec_solaris.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements accept for platforms that provide a fast path for // setting SetNonblock and CloseOnExec, but don't necessarily have accept4. // The accept4(3c) function was added to Oracle Solaris in the Solaris 11.4.0 // release. Thus, on releases prior to 11.4, we fall back to the combination // of accept(3c) and fcntl(2).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 1.5K bytes - Viewed (0) -
src/os/pipe_unix.go
syscall.ForkLock.RLock() e := syscall.Pipe(p[0:]) if e != nil { syscall.ForkLock.RUnlock() return nil, nil, NewSyscallError("pipe", e) } syscall.CloseOnExec(p[0]) syscall.CloseOnExec(p[1]) syscall.ForkLock.RUnlock() return newFile(p[0], "|0", kindPipe, false), newFile(p[1], "|1", kindPipe, false), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:47:23 UTC 2024 - 774 bytes - Viewed (0) -
src/net/sock_cloexec.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements sysSocket for platforms that provide a fast path for // setting SetNonblock and CloseOnExec. //go:build dragonfly || freebsd || linux || netbsd || openbsd package net import ( "os" "syscall" ) // Wrapper around the socket system call that marks the returned file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 730 bytes - Viewed (0) -
src/internal/poll/sock_cloexec.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements accept for platforms that provide a fast path for // setting SetNonblock and CloseOnExec. //go:build dragonfly || freebsd || (linux && !arm) || netbsd || openbsd package poll import "syscall" // Wrapper around the accept system call that marks the returned file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 712 bytes - Viewed (0) -
src/internal/poll/fd_plan9.go
return errors.New("not implemented") } func DupCloseOnExec(fd int) (int, string, error) { nfd, err := syscall.Dup(int(fd), -1) if err != nil { return 0, "dup", err } // Plan9 has no syscall.CloseOnExec but // its forkAndExecInChild closes all fds // not related to the fork+exec. return nfd, "", nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 5.4K bytes - Viewed (0) -
src/runtime/crash_unix_test.go
func TestSignalM(t *testing.T) { r, w, errno := runtime.Pipe() if errno != 0 { t.Fatal(syscall.Errno(errno)) } defer func() { runtime.Close(r) runtime.Close(w) }() runtime.Closeonexec(r) runtime.Closeonexec(w) var want, got int64 var wg sync.WaitGroup ready := make(chan *runtime.M) wg.Add(1) go func() { runtime.LockOSThread()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 20:11:47 UTC 2023 - 9.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go
func CommandLineToArgv(cmd *uint16, argc *int32) (argv *[8192]*[8192]uint16, err error) { argp, err := commandLineToArgv(cmd, argc) argv = (*[8192]*[8192]uint16)(unsafe.Pointer(argp)) return argv, err } func CloseOnExec(fd Handle) { SetHandleInformation(Handle(fd), HANDLE_FLAG_INHERIT, 0) } // FullPath retrieves the full path of the specified file. func FullPath(name string) (path string, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 7.3K bytes - Viewed (0) -
src/os/removeall_at.go
if e == nil { break } // See comment in openFileNolog. if e == syscall.EINTR { continue } return nil, e } if !supportsCloseOnExec { syscall.CloseOnExec(r) } // We use kindNoPoll because we know that this is a directory. return newFile(r, name, kindNoPoll, false), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:26 UTC 2024 - 4.8K bytes - Viewed (0) -
src/runtime/netpoll_kqueue.go
) func netpollinit() { kq = kqueue() if kq < 0 { println("runtime: kqueue failed with", -kq) throw("runtime: netpollinit failed") } closeonexec(kq) addWakeupEvent(kq) } func netpollopen(fd uintptr, pd *pollDesc) int32 { // Arm both EVFILT_READ and EVFILT_WRITE in edge-triggered mode (EV_CLEAR)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 4.6K bytes - Viewed (0)