Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 879 for RES (0.23 sec)

  1. src/internal/testpty/pty_cgo.go

    	m, err := C.posix_openpt(C.O_RDWR)
    	if m < 0 {
    		return nil, "", ptyError("posix_openpt", err)
    	}
    	if res, err := C.grantpt(m); res < 0 {
    		C.close(m)
    		return nil, "", ptyError("grantpt", err)
    	}
    	if res, err := C.unlockpt(m); res < 0 {
    		C.close(m)
    		return nil, "", ptyError("unlockpt", err)
    	}
    	processTTY = C.GoString(C.ptsname(m))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 18:38:54 UTC 2023
    - 840 bytes
    - Viewed (0)
  2. internal/s3select/sql/stringfuncs_contrib_test.go

    		{"", 999, 999, "", nil},
    		{"测试abc", 1, 1, "测", nil},
    		{"测试abc", 5, 5, "c", nil},
    	}
    
    	for i, tc := range evalCases {
    		res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length)
    		if res != tc.resExpected || err != tc.errExpected {
    			t.Errorf("Eval Case %d failed: %v %v", i, res, err)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  3. test/fixedbugs/issue59404part2.go

    package main
    
    var G func(int) int
    
    //go:noinline
    func callclo(q, r int) int {
    	p := func(z int) int {
    		G = func(int) int { return 1 }
    		return z + 1
    	}
    	res := p(q) ^ p(r) // These calls to "p" will be inlined
    	G = p
    	return res
    }
    
    func main() {
    	callclo(1, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 15:07:18 UTC 2023
    - 432 bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskEncodingIntegrationSpec.groovy

            buildFile << """
                task copyFiles {
                    doLast {
                        copy {
                            from 'res'
                            into 'build/resources'
                        }
                    }
                }
            """
    
            file("res", nonAsciiFileName) << "foo"
    
            when:
            executer.withDefaultCharacterEncoding("ISO-8859-1").withTasks("copyFiles")
            executer.run()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. src/runtime/type.go

    		if base >= md.types && base < md.etypes {
    			res := md.types + uintptr(off)
    			if res > md.etypes {
    				println("runtime: nameOff", hex(off), "out of range", hex(md.types), "-", hex(md.etypes))
    				throw("runtime: name offset out of range")
    			}
    			return name{Bytes: (*byte)(unsafe.Pointer(res))}
    		}
    	}
    
    	// No module found. see if it is a run time name.
    	reflectOffsLock()
    	res, found := reflectOffs.m[int32(off)]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go

    	}
    
    	// 3. Service
    	if svc := a.lookupService(key); svc != nil {
    		res := []model.AddressInfo{serviceToAddressInfo(svc.Service)}
    		for _, w := range a.workloads.ByServiceKey.Lookup(svc.ResourceName()) {
    			res = append(res, workloadToAddressInfo(w.Workload))
    		}
    		return res
    	}
    	return nil
    }
    
    func (a *index) lookupService(key string) *model.ServiceInfo {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 19 17:19:41 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. pkg/test/util/file/file.go

    	if err != nil {
    		return nil, err
    	}
    	res := []string{}
    	for _, d := range dir {
    		matched := len(extensions) == 0 // If none are set, match anything
    		for _, ext := range extensions {
    			if filepath.Ext(d.Name()) == ext {
    				matched = true
    				break
    			}
    		}
    		if matched {
    			res = append(res, filepath.Join(filePath, d.Name()))
    		}
    	}
    	return res, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 17 02:22:22 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. internal/config/identity/ldap/config.go

    	}
    
    	// For now, ldapConfigs will only have a single entry for the default
    	// configuration.
    
    	var res []madmin.IDPListItem
    	for _, cfg := range ldapConfigs {
    		res = append(res, madmin.IDPListItem{
    			Type:    "ldap",
    			Name:    cfg,
    			Enabled: l.Enabled(),
    		})
    	}
    
    	return res, nil
    }
    
    // ErrProviderConfigNotFound - represents a non-existing provider error.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. src/encoding/base32/base32_test.go

    			if n > 0 {
    				res = append(res, dbuf[:n]...)
    			}
    		}
    
    		testEqual(t, "Decoding of %q = %q, want %q", string(input), string(res), tc.res)
    		testEqual(t, "Decoding of %q err = %v, expected %v", string(input), err, tc.err)
    	}
    }
    
    // TestDecoderError verifies decode errors are propagated when there are no read
    // errors.
    func TestDecoderError(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 26K bytes
    - Viewed (0)
  10. cni/pkg/ipset/nldeps_linux.go

    //
    // This happens with kernels as recent as Fedora38, e.g: 6.4.11-200.fc38.aarch64
    func (m *realDeps) clearEntriesWithComment(name, comment string) error {
    	res, err := netlink.IpsetList(name)
    	if err != nil {
    		return fmt.Errorf("failed to list ipset %s: %w", name, err)
    	}
    	for _, entry := range res.Entries {
    		if entry.Comment == comment {
    			err := netlink.IpsetDel(name, &entry)
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 30 18:07:05 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top