- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for Closeonexec (0.2 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_accept.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. // This is the code we used for accept in Go 1.17 and earlier. // On Linux the accept4 system call was introduced in 2.6.28 kernel,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 16 03:40:42 UTC 2022 - 1.8K 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/runtime/os_unix.go
package runtime const ( // These values are the same on all known Unix systems. // If we find a discrepancy some day, we can split them out. _F_SETFD = 2 _FD_CLOEXEC = 1 ) //go:nosplit func closeonexec(fd int32) { fcntl(fd, _F_SETFD, _FD_CLOEXEC)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 20 21:27:51 UTC 2023 - 436 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/sys_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 do not provide a fast path for // setting SetNonblock and CloseOnExec. //go:build aix || darwin || (js && wasm) || wasip1 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: Fri Apr 07 23:34:17 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/export_unix_test.go
// license that can be found in the LICENSE file. //go:build unix package runtime import "unsafe" var NonblockingPipe = nonblockingPipe var Fcntl = fcntl var Closeonexec = closeonexec func sigismember(mask *sigset, i int) bool { clear := *mask sigdelset(&clear, i) return clear != *mask } func Sigisblocked(i int) bool { var sigmask sigset
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 20 21:27:51 UTC 2023 - 2.3K 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_unixjs.go
func dupCloseOnExecOld(fd int) (int, string, error) { syscall.ForkLock.RLock() defer syscall.ForkLock.RUnlock() newfd, err := syscall.Dup(fd) if err != nil { return -1, "dup", err } syscall.CloseOnExec(newfd) return newfd, "", nil } // Fchdir wraps syscall.Fchdir. func (fd *FD) Fchdir() error { if err := fd.incref(); err != nil { return err } defer fd.decref() return syscall.Fchdir(fd.Sysfd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:12:41 UTC 2023 - 2K bytes - Viewed (0)