Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for max (0.18 sec)

  1. src/cmd/cgo/internal/test/issue18146.go

    		nproc = 7
    	}
    	if setNproc {
    		var rlim syscall.Rlimit
    		if syscall.Getrlimit(nproc, &rlim) == nil {
    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/bufio/export_test.go

    // Exported for testing only.
    import (
    	"unicode/utf8"
    )
    
    var IsSpace = isSpace
    
    const DefaultBufSize = defaultBufSize
    
    func (s *Scanner) MaxTokenSize(n int) {
    	if n < utf8.UTFMax || n > 1e9 {
    		panic("bad max token size")
    	}
    	if n < len(s.buf) {
    		s.buf = make([]byte, n)
    	}
    	s.maxTokenSize = n
    }
    
    // ErrOrEOF is like Err, but returns EOF. Used to test a corner case.
    func (s *Scanner) ErrOrEOF() error {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 17:17:44 GMT 2017
    - 597 bytes
    - Viewed (0)
  3. api/go1.3.txt

    pkg syscall (freebsd-386), const AF_INET6_SDP ideal-int
    pkg syscall (freebsd-386), const AF_INET_SDP = 40
    pkg syscall (freebsd-386), const AF_INET_SDP ideal-int
    pkg syscall (freebsd-386), const AF_MAX = 42
    pkg syscall (freebsd-386), const DLT_MATCHING_MAX = 246
    pkg syscall (freebsd-386), const DLT_MPEG_2_TS = 243
    pkg syscall (freebsd-386), const DLT_MPEG_2_TS ideal-int
    pkg syscall (freebsd-386), const DLT_NFC_LLCP = 245
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/cthread_windows.c

    static unsigned int
    goDummyCallbackThread(void* p)
    {
    	int i, max;
    
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		goDummy();
    	return 0;
    }
    
    int
    callGoInCThread(int max)
    {
    	uintptr_t thread_id;
    	thread_id = _beginthreadex(0, 0, goDummyCallbackThread, &max, 0, 0);
    	WaitForSingleObject((HANDLE)thread_id, INFINITE);
    	CloseHandle((HANDLE)thread_id);
    	return max;
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/ast.go

    	case *ast.SliceExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		if n.Low != nil {
    			f.walk(&n.Low, ctxExpr, visit)
    		}
    		if n.High != nil {
    			f.walk(&n.High, ctxExpr, visit)
    		}
    		if n.Max != nil {
    			f.walk(&n.Max, ctxExpr, visit)
    		}
    	case *ast.TypeAssertExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(&n.Type, ctxType, visit)
    	case *ast.CallExpr:
    		if context == ctxAssign2 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  6. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const ETHER_HDR_LEN ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHER_MAX_LEN = 1518
    pkg syscall (netbsd-arm64-cgo), const ETHER_MAX_LEN ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHER_MAX_LEN_JUMBO = 9018
    pkg syscall (netbsd-arm64-cgo), const ETHER_MAX_LEN_JUMBO ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHERMIN = 46
    pkg syscall (netbsd-arm64-cgo), const ETHERMIN ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue24161e2/main.go

    #cgo LDFLAGS: -framework CoreFoundation -framework Security
    #include <TargetConditionals.h>
    #include <CoreFoundation/CoreFoundation.h>
    #include <Security/Security.h>
    #if TARGET_OS_IPHONE == 0 && __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
      typedef CFStringRef SecKeyAlgorithm;
      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (1)
  8. src/archive/tar/format.go

    )
    
    // Size constants from various tar specifications.
    const (
    	blockSize  = 512 // Size of each block in a tar stream
    	nameSize   = 100 // Max length of the name field in USTAR format
    	prefixSize = 155 // Max length of the prefix field in USTAR format
    
    	// Max length of a special file (PAX header, GNU long name or link).
    	// This matches the limit used by libarchive.
    	maxSpecialFileSize = 1 << 20
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  9. src/bufio/scan.go

    // The maximum token size must be less than the larger of max and cap(buf).
    // If max <= cap(buf), [Scanner.Scan] will use this buffer only and do no allocation.
    //
    // By default, [Scanner.Scan] uses an internal buffer and sets the
    // maximum token size to [MaxScanTokenSize].
    //
    // Buffer panics if it is called after scanning has started.
    func (s *Scanner) Buffer(buf []byte, max int) {
    	if s.scanCalled {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue24161e0/main.go

    #cgo LDFLAGS: -framework CoreFoundation -framework Security
    #include <TargetConditionals.h>
    #include <CoreFoundation/CoreFoundation.h>
    #include <Security/Security.h>
    #if TARGET_OS_IPHONE == 0 && __MAC_OS_X_VERSION_MAX_ALLOWED < 101200
      typedef CFStringRef SecKeyAlgorithm;
      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 919 bytes
    - Viewed (0)
Back to top