Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 327 for accept4 (0.63 sec)

  1. src/internal/poll/sock_cloexec_solaris.go

    // 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).
    
    package poll
    
    import (
    	"internal/syscall/unix"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/internal/syscall/unix/kernel_version_solaris.go

    		}
    		return major > 11 || (major == 11 && minor >= 4)
    	}
    	return false
    })
    
    // SupportAccept4 tests whether accept4 system call is available.
    var SupportAccept4 = sync.OnceValue(func() bool {
    	for {
    		// Test if the accept4() is available.
    		_, _, err := syscall.Accept4(0, syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC)
    		if err == syscall.EINTR {
    			continue
    		}
    		return err != syscall.ENOSYS
    	}
    })
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/internal/poll/sock_cloexec.go

    // 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
    // descriptor as nonblocking and close-on-exec.
    func accept(s int) (int, syscall.Sockaddr, string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 712 bytes
    - Viewed (0)
  4. src/internal/syscall/unix/kernel_version_solaris_test.go

    	if wantSock != gotSock {
    		t.Fatalf("SupportSockNonblockCloexec, got %t; want %t", gotSock, wantSock)
    	}
    
    	// Test that SupportAccept4 returns true if accept4 is available.
    	for {
    		_, _, err = syscall.Accept4(0, syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC)
    		if err != syscall.EINTR {
    			break
    		}
    	}
    	wantAccept4 := err != syscall.ENOSYS
    	gotAccept4 := unix.SupportAccept4()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s

    	MOVD $·Fsetxattr(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_accept4Addr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·accept4(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_RemovexattrAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Removexattr(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. internal/http/listener.go

    	for idx, tcpListener := range listener.listeners {
    		go handleListener(idx, tcpListener)
    	}
    }
    
    // Accept - reads from httpListener.acceptCh for one of previously accepted TCP connection and returns the same.
    func (listener *httpListener) Accept() (conn net.Conn, err error) {
    	select {
    	case result, ok := <-listener.acceptCh:
    		if ok {
    			return result.conn, result.err
    		}
    	case <-listener.ctx.Done():
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/wrapper_test.go

    	testCases := []struct {
    		accept   string
    		expected string
    	}{
    		{
    			// Misconstructed/incorrect accept headers should be passed to the unaggregated handler to return an error
    			accept:   "application/json;foo=bar",
    			expected: "unaggregated",
    		}, {
    			// Empty accept headers are valid and should be handled by the unaggregated handler
    			accept:   "",
    			expected: "unaggregated",
    		}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. testing/internal-testing/src/test/groovy/org/gradle/test/precondition/PredicateFileTest.groovy

            ["value2"] as Set,
            ["value2", "value3"] as Set,
        ] as Set
    
        def "accept single values"() {
            when:
            checkValidCombinations([value])
    
            then:
            noExceptionThrown()
    
            where:
            value << ["value1", "value2"]
        }
    
        def "accept multiple values"() {
            when:
            checkValidCombinations(combination)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildScanUserInputFixture.groovy

        public static final String QUESTION = "Accept license?"
        public static final String YES = 'yes'
        public static final String NO = 'no'
        public static final byte EOF = 4
        public static final String PROMPT = "$QUESTION [$YES, $NO]"
        private static final String ANSWER_PREFIX = 'License accepted:'
    
        private BuildScanUserInputFixture() {}
    
        static String buildScanPlugin() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. testing/architecture-test/src/changes/accepted-changes/accepted-public-api-changes.json

    Bo Zhang <******@****.***> 1718090200 +0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 07:16:40 UTC 2024
    - 32 bytes
    - Viewed (0)
Back to top