Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 78 for dup2 (0.17 sec)

  1. pkg/config/analysis/analyzers/testdata/telemetry-selector.yaml

            - name: prometheus
          overrides:
            - match:
                metric: ALL_METRICS
              disabled: false
    ---
    apiVersion: telemetry.istio.io/v1alpha1
    kind: Telemetry
    metadata:
      name: dupe-1
      namespace: default
    spec:
      selector:
        matchLabels:
          app: reviews # Multiple telemetries have the same selector, should generate errors for both
      metrics:
        - providers:
            - name: prometheus
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 03 06:56:06 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/gen/zeroGen.go

    		fmt.Fprintf(w, "  if a != want {\n")
    		fmt.Fprintf(w, "    t.Errorf(\"zero%du2 got=%%v, want %%v\\n\", a, want)\n", s)
    		fmt.Fprintf(w, "  }\n")
    		fmt.Fprintf(w, "  b := Z%du2{15, [%d]byte{", s, s)
    		for i := 0; i < s; i++ {
    			fmt.Fprintf(w, "255,")
    		}
    		fmt.Fprintf(w, "}}\n")
    		fmt.Fprintf(w, "  zero%du2_ssa(&b)\n", s)
    		fmt.Fprintf(w, "  wantb := Z%du2{15, [%d]byte{", s, s)
    		for i := 0; i < s; i++ {
    			fmt.Fprintf(w, "0,")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/testdata/sidecar-selector.yaml

    apiVersion: networking.istio.io/v1alpha3
    kind: Sidecar
    metadata:
      name: dupe-1
      namespace: default
    spec:
      workloadSelector:
        labels:
          app: reviews # Multiple sidecars have the same selector, should generate errors for both
      egress:
      - hosts:
        - "./*"
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: Sidecar
    metadata:
      name: dupe-2
      namespace: default
    spec:
      workloadSelector:
        labels:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testplugin/testdata/host/host.go

    	if got, want := common.X, 2; got != want {
    		log.Fatalf("after loading plugin2, common.X=%d, want %d", got, want)
    	}
    
    	_, err = plugin.Open("plugin2-dup.so")
    	if err == nil {
    		log.Fatal(`plugin.Open("plugin2-dup.so"): duplicate open should have failed`)
    	}
    	if s := err.Error(); !strings.Contains(s, "already loaded") {
    		log.Fatal(`plugin.Open("plugin2.so"): error does not mention "already loaded"`)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. src/internal/poll/fd_opendir_darwin.go

    // syscall is returned along with a syscall.Errno.
    func (fd *FD) OpenDir() (uintptr, string, error) {
    	// fdopendir(3) takes control of the file descriptor,
    	// so use a dup.
    	fd2, call, err := fd.Dup()
    	if err != nil {
    		return 0, call, err
    	}
    	var dir uintptr
    	for {
    		dir, err = fdopendir(fd2)
    		if err != syscall.EINTR {
    			break
    		}
    	}
    	if err != nil {
    		syscall.Close(fd2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 918 bytes
    - Viewed (0)
  6. src/internal/poll/fd_unixjs.go

    	return CloseFunc(fd)
    }
    
    // dupCloseOnExecOld is the traditional way to dup an fd and
    // set its O_CLOEXEC bit, using two system calls.
    func dupCloseOnExecOld(fd int) (int, string, error) {
    	syscall.ForkLock.RLock()
    	defer syscall.ForkLock.RUnlock()
    	newfd, err := syscall.Dup(fd)
    	if err != nil {
    		return -1, "dup", err
    	}
    	syscall.CloseOnExec(newfd)
    	return newfd, "", nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:41 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/dependencies/DefaultProjectDependencyTest.groovy

            def conf = project.configurations.create("conf")
            conf.extendsFrom(superConf)
    
            def dep1 = Mock(ProjectDependency)
            def dep2 = Mock(ExternalDependency)
            conf.dependencies.add(dep1)
            superConf.dependencies.add(dep2)
    
            projectDependency = new DefaultProjectDependency(project, "conf", true, TestFiles.taskDependencyFactory())
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/opensearch/extension/kuromoji/index/analysis/KuromojiTokenizerFactory.java

            nBestCost = settings.getAsInt(NBEST_COST, -1);
            nBestExamples = settings.get(NBEST_EXAMPLES);
        }
    
        private static String parse(String rule, Set<String> dup) {
            String[] values = CSVUtil.parse(rule);
            if (dup.add(values[0]) == false) {
                throw new IllegalArgumentException("Found duplicate term [" + values[0] + "] in user dictionary.");
            }
            return rule;
        }
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. internal/lock/lock_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// unlock the file
    	if err = l.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	// try lock the unlocked file
    	dupl, err := LockedOpenFile(f.Name(), os.O_WRONLY|os.O_CREATE, 0o600)
    	if err != nil {
    		t.Errorf("err = %v, want %v", err, nil)
    	}
    
    	// blocking on locked file
    	locked := make(chan struct{}, 1)
    	go func() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  10. test/typeparam/nested.go

    	add(Int(0), T[Int]{})
    	add(GlobalInt(0), T[GlobalInt]{})
    	add(A(0), T[A]{}) // NOTE: intentionally dups with int and GlobalInt
    
    	type U[_ any] int
    	type V U[int]
    	type W V
    
    	add(U[int](0), T[U[int]]{})
    	add(U[Int](0), T[U[Int]]{})
    	add(U[GlobalInt](0), T[U[GlobalInt]]{})
    	add(U[A](0), T[U[A]]{}) // NOTE: intentionally dups with U[int] and U[GlobalInt]
    	add(V(0), T[V]{})
    	add(W(0), T[W]{})
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:23:27 UTC 2022
    - 3K bytes
    - Viewed (0)
Back to top