Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ForkLock (0.58 sec)

  1. src/net/sock_cloexec_solaris.go

    		if err != nil {
    			return -1, os.NewSyscallError("socket", err)
    		}
    		return s, nil
    	}
    
    	// See ../syscall/exec_unix.go for description of ForkLock.
    	syscall.ForkLock.RLock()
    	s, err := socketFunc(family, sotype, proto)
    	if err == nil {
    		syscall.CloseOnExec(s)
    	}
    	syscall.ForkLock.RUnlock()
    	if err != nil {
    		return -1, os.NewSyscallError("socket", err)
    	}
    	if err = syscall.SetNonblock(s, true); err != nil {
    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/os/pipe_unix.go

    	var p [2]int
    
    	// See ../syscall/exec.go for description of lock.
    	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)
  3. src/internal/poll/sock_cloexec_solaris.go

    		}
    		return ns, sa, "", nil
    	}
    
    	// See ../syscall/exec_unix.go for description of ForkLock.
    	// It is probably okay to hold the lock across syscall.Accept
    	// because we have put fd.sysfd into non-blocking mode.
    	// However, a call to the File method will put it back into
    	// blocking mode. We can't take that risk, so no use of ForkLock here.
    	ns, sa, err := AcceptFunc(s)
    	if err == nil {
    		syscall.CloseOnExec(ns)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/syscall/exec_unix.go

    // non-blocking I/O to accept on a listening socket.
    // The rules for which file descriptor-creating operations use the
    // ForkLock are as follows:
    //
    //   - [Pipe]. Use pipe2 if available. Otherwise, does not block,
    //     so use ForkLock.
    //   - [Socket]. Use SOCK_CLOEXEC if available. Otherwise, does not
    //     block, so use ForkLock.
    //   - [Open]. Use [O_CLOEXEC] if available. Otherwise, may block,
    //     so live with the race.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. src/sync/rwmutex.go

    // to acquire a read lock on rw. This exists because syscall.ForkLock
    // is an RWMutex, and we can't change that without breaking compatibility.
    // We don't need or want RWMutex semantics for ForkLock, and we use
    // this private API to avoid having to change the type of ForkLock.
    // For more details see the syscall package.
    //
    //go:linkname syscall_hasWaitingReaders syscall.hasWaitingReaders
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. src/syscall/exec_windows.go

    // license that can be found in the LICENSE file.
    
    // Fork, exec, wait, etc.
    
    package syscall
    
    import (
    	"internal/bytealg"
    	"runtime"
    	"sync"
    	"unicode/utf16"
    	"unsafe"
    )
    
    // ForkLock is not used on Windows.
    var ForkLock sync.RWMutex
    
    // EscapeArg rewrites command line argument s as prescribed
    // in https://msdn.microsoft.com/en-us/library/ms880421.
    // This function returns "" (2 double quotes) if s is empty.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 18:29:48 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. src/syscall/exec_plan9.go

    // license that can be found in the LICENSE file.
    
    // Fork, exec, wait, etc.
    
    package syscall
    
    import (
    	"internal/itoa"
    	"runtime"
    	"sync"
    	"unsafe"
    )
    
    // ForkLock is not used on plan9.
    var ForkLock sync.RWMutex
    
    // gstringb reads a non-empty string from b, prefixed with a 16-bit length in little-endian order.
    // It returns the string as a byte slice, or nil if b is too short to contain the length or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. src/syscall/syscall_js.go

    	Atime     int64
    	AtimeNsec int64
    	Mtime     int64
    	MtimeNsec int64
    	Ctime     int64
    	CtimeNsec int64
    }
    
    // Processes
    // Not supported - just enough for package os.
    
    var ForkLock sync.RWMutex
    
    type WaitStatus uint32
    
    func (w WaitStatus) Exited() bool       { return false }
    func (w WaitStatus) ExitStatus() int    { return 0 }
    func (w WaitStatus) Signaled() bool     { return false }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/controller.go

    	}
    
    	return waiter.result
    }
    
    func (e *quotaEvaluator) addWork(a *admissionWaiter) {
    	e.workLock.Lock()
    	defer e.workLock.Unlock()
    
    	ns := a.attributes.GetNamespace()
    	// this Add can trigger a Get BEFORE the work is added to a list, but this is ok because the getWork routine
    	// waits the worklock before retrieving the work to do, so the writes in this method will be observed
    	e.queue.Add(ns)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Flock_t.Type", Field, 0},
    		{"Flock_t.Whence", Field, 0},
    		{"FlushBpf", Func, 0},
    		{"FlushFileBuffers", Func, 0},
    		{"FlushViewOfFile", Func, 0},
    		{"ForkExec", Func, 0},
    		{"ForkLock", Var, 0},
    		{"FormatMessage", Func, 0},
    		{"Fpathconf", Func, 0},
    		{"FreeAddrInfoW", Func, 1},
    		{"FreeEnvironmentStrings", Func, 0},
    		{"FreeLibrary", Func, 0},
    		{"Fsid", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top