Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for dlim (0.14 sec)

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

    		setNproc = false
    	case "aix":
    		nproc = 9
    	case "linux":
    		nproc = 6
    	case "darwin", "dragonfly", "freebsd", "netbsd", "openbsd":
    		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
    			}
    		}
    	}
    
    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/bytes/buffer_test.go

    					if v != byte(l+i) {
    						t.Fatalf("in %d,%d: Next(%d)[%d] = %d, want %d", i, j, k, l, v, l+i)
    					}
    				}
    			}
    		}
    	}
    }
    
    var readBytesTests = []struct {
    	buffer   string
    	delim    byte
    	expected []string
    	err      error
    }{
    	{"", 0, []string{""}, io.EOF},
    	{"a\x00", 0, []string{"a\x00"}, nil},
    	{"abbbaaaba", 'b', []string{"ab", "b", "b", "aaab"}, nil},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    		for i := 0; i < n; i++ {
    			buf.WriteString("abcdefg")
    		}
    
    		r := NewReaderSize(&buf, minReadBufferSize)
    		readTo := func(delim byte, want string) {
    			data, err := read(r, delim)
    			if err != nil {
    				t.Fatalf("#%d: unexpected error reading to %c: %v", rno, delim, err)
    			}
    			if got := string(data); got != want {
    				t.Fatalf("#%d: got %q, want %q", rno, got, want)
    			}
    		}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. src/bytes/buffer.go

    // ReadBytes reads until the first occurrence of delim in the input,
    // returning a slice containing the data up to and including the delimiter.
    // If ReadBytes encounters an error before finding a delimiter,
    // it returns the data read before the error and the error itself (often io.EOF).
    // ReadBytes returns err != nil if and only if the returned data does not end in
    // delim.
    func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  5. api/go1.16.txt

    pkg syscall (darwin-arm64), const RLIMIT_STACK = 3
    pkg syscall (darwin-arm64), const RLIMIT_STACK ideal-int
    pkg syscall (darwin-arm64), const RLIM_INFINITY = 9223372036854775807
    pkg syscall (darwin-arm64), const RLIM_INFINITY ideal-int
    pkg syscall (darwin-arm64), const RTAX_AUTHOR = 6
    pkg syscall (darwin-arm64), const RTAX_AUTHOR ideal-int
    pkg syscall (darwin-arm64), const RTAX_BRD = 7
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  6. api/go1.14.txt

    pkg syscall (freebsd-arm64), const PTRACE_TRACEME = 0
    pkg syscall (freebsd-arm64), const PTRACE_TRACEME ideal-int
    pkg syscall (freebsd-arm64), const RLIM_INFINITY = 9223372036854775807
    pkg syscall (freebsd-arm64), const RLIM_INFINITY ideal-int
    pkg syscall (freebsd-arm64), const RLIMIT_AS = 10
    pkg syscall (freebsd-arm64), const RLIMIT_AS ideal-int
    pkg syscall (freebsd-arm64), const RLIMIT_CORE = 4
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 508.9K bytes
    - Viewed (0)
  7. api/go1.20.txt

    pkg syscall (freebsd-riscv64), const RLIMIT_STACK = 3 #53466
    pkg syscall (freebsd-riscv64), const RLIMIT_STACK ideal-int #53466
    pkg syscall (freebsd-riscv64), const RLIM_INFINITY = 9223372036854775807 #53466
    pkg syscall (freebsd-riscv64), const RLIM_INFINITY ideal-int #53466
    pkg syscall (freebsd-riscv64), const RTAX_AUTHOR = 6 #53466
    pkg syscall (freebsd-riscv64), const RTAX_AUTHOR ideal-int #53466
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
  8. src/bufio/bufio.go

    // [Reader.ReadBytes] or ReadString instead.
    // ReadSlice returns err != nil if and only if line does not end in delim.
    func (b *Reader) ReadSlice(delim byte) (line []byte, err error) {
    	s := 0 // search start index
    	for {
    		// Search buffer.
    		if i := bytes.IndexByte(b.buf[b.r+s:b.w], delim); i >= 0 {
    			i += s
    			line = b.buf[b.r : b.r+i+1]
    			b.r += i + 1
    			break
    		}
    
    		// Pending error?
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
Back to top