Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for Closeonexec (0.2 sec)

  1. 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)
  2. src/net/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 sysSocket for platforms that do not provide a fast path
    // for setting SetNonblock and CloseOnExec.
    
    //go:build aix || darwin
    
    package net
    
    import (
    	"internal/poll"
    	"os"
    	"syscall"
    )
    
    // Wrapper around the socket system call that marks the returned file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 14:38:32 UTC 2022
    - 962 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/runtime/nbpipe_pipe.go

    //go:build aix || darwin
    
    package runtime
    
    func nonblockingPipe() (r, w int32, errno int32) {
    	r, w, errno = pipe()
    	if errno != 0 {
    		return -1, -1, errno
    	}
    	closeonexec(r)
    	setNonblock(r)
    	closeonexec(w)
    	setNonblock(w)
    	return r, w, errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 405 bytes
    - Viewed (0)
  6. 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)
  7. src/runtime/nbpipe_pipe_test.go

    		runtime.Close(w)
    	}()
    
    	checkIsPipe(t, r, w)
    
    	runtime.SetNonblock(r)
    	runtime.SetNonblock(w)
    	checkNonblocking(t, r, "reader")
    	checkNonblocking(t, w, "writer")
    
    	runtime.Closeonexec(r)
    	runtime.Closeonexec(w)
    	checkCloseonexec(t, r, "reader")
    	checkCloseonexec(t, w, "writer")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 20:47:17 UTC 2022
    - 706 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/net/unixsock_readmsg_cloexec.go

    		if scm.Header.Level == syscall.SOL_SOCKET && scm.Header.Type == syscall.SCM_RIGHTS {
    			fds, err := syscall.ParseUnixRights(&scm)
    			if err != nil {
    				continue
    			}
    			for _, fd := range fds {
    				syscall.CloseOnExec(fd)
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 654 bytes
    - Viewed (0)
Back to top