Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 65 for Munmap (0.27 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/sysvshm_unix.go

    		shmdt(addr)
    		return nil, err
    	}
    
    	// Use unsafe to convert addr into a []byte.
    	b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), int(info.Segsz))
    	return b, nil
    }
    
    // SysvShmDetach unmaps the shared memory slice returned from SysvShmAttach.
    //
    // It is not safe to use the slice after calling this function.
    func SysvShmDetach(data []byte) error {
    	if len(data) == 0 {
    		return EINVAL
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

            assertEqualInOrder(
                entries.subList(i, j),
                navigableMap.subMap(entries.get(i).getKey(), entries.get(j).getKey()).entrySet());
          }
        }
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testSubMapIllegal() {
        try {
          navigableMap.subMap(c.getKey(), a.getKey());
          fail("Expected IllegalArgumentException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. operator/pkg/translate/translate_common.go

    func IsComponentEnabledFromValue(cn name.ComponentName, valueSpec map[string]any) (enabled bool, pathExist bool, err error) {
    	t := NewTranslator()
    	cnMap, ok := t.ComponentMaps[cn]
    	if !ok {
    		return false, false, nil
    	}
    	valuePath := cnMap.ToHelmValuesTreeRoot
    	enabledPath := valuePath + ".enabled"
    	enableNodeI, found, err := tpath.Find(valueSpec, util.ToYAMLPath(enabledPath))
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. pkg/test/echo/docker/Dockerfile.app_sidecar_base_centos

    ARG VM_IMAGE_NAME=rockylinux
    ARG VM_IMAGE_VERSION=9
    FROM ${VM_IMAGE_NAME}:${VM_IMAGE_VERSION}
    
    # hadolint ignore=DL3005,DL3008,DL3033
    RUN yum install -y \
        iptables \
        iproute \
        sudo \
        nmap-ncat \
        tcpdump \
        procps \
        conntrack \
        net-tools \
        ca-certificates \
        && update-ca-trust \
        && yum clean all \
        && rm -rf /var/cache/yum
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 22:55:51 UTC 2024
    - 568 bytes
    - Viewed (0)
  5. src/encoding/json/scanner_test.go

    	if err != nil {
    		panic(err)
    	}
    	jsonBig = b
    }
    
    func genValue(n int) any {
    	if n > 1 {
    		switch rand.Intn(2) {
    		case 0:
    			return genArray(n)
    		case 1:
    			return genMap(n)
    		}
    	}
    	switch rand.Intn(3) {
    	case 0:
    		return rand.Intn(2) == 0
    	case 1:
    		return rand.NormFloat64()
    	case 2:
    		return genString(30)
    	}
    	panic("unreachable")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. pilot/pkg/util/network/ip_test.go

    	if err != nil || len(ips) == 0 {
    		t.Fatalf("Test setup failure - unable to determine IP of localhost: %v", err)
    	}
    	var ret string
    	for _, ip := range ips {
    		// unwrap the IPv4-mapped IPv6 address
    		unwrapIP := ip.Unmap()
    		if unwrapIP.Is6() {
    			ret = fmt.Sprintf("[%s]", unwrapIP.String())
    		} else {
    			return unwrapIP.String()
    		}
    	}
    	return ret
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 08 16:24:15 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  7. pkg/config/schema/codegen/common.go

    	c.Stdout = os.Stdout
    	c.Stderr = os.Stderr
    	return c.Run()
    }
    
    func applyTemplate(tmpl string, i any) (string, error) {
    	t := template.New("tmpl").Funcs(template.FuncMap{
    		"contains": strings.Contains,
    	})
    
    	t2 := template.Must(t.Parse(tmpl))
    
    	var b bytes.Buffer
    	if err := t2.Execute(&b, i); err != nil {
    		return "", err
    	}
    
    	return b.String(), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. tools/istio-iptables/pkg/config/config.go

    		if ipnet, ok := a.(*net.IPNet); ok {
    			ip := ipnet.IP
    			ipAddr, ok := netip.AddrFromSlice(ip)
    			if !ok {
    				continue
    			}
    			// unwrap the IPv4-mapped IPv6 address
    			unwrapAddr := ipAddr.Unmap()
    			if !unwrapAddr.IsLoopback() && !unwrapAddr.IsLinkLocalUnicast() && !unwrapAddr.IsLinkLocalMulticast() {
    				isIPv6 = unwrapAddr.Is6()
    				ipAddrs = append(ipAddrs, unwrapAddr)
    				if !dualStack {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. src/internal/fuzz/sys_windows.go

    	return &sharedMem{
    		f:             f,
    		region:        region,
    		removeOnClose: removeOnClose,
    		sys:           sharedMemSys{mapObj: mapObj},
    	}, nil
    }
    
    // Close unmaps the shared memory and closes the temporary file. If this
    // sharedMem was created with sharedMemTempFile, Close also removes the file.
    func (m *sharedMem) Close() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:35:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/help/help.go

    		w.err = err
    	}
    	return n, err
    }
    
    // tmpl executes the given template text on data, writing the result to w.
    func tmpl(w io.Writer, text string, data any) {
    	t := template.New("top")
    	t.Funcs(template.FuncMap{"trim": strings.TrimSpace, "capitalize": capitalize})
    	template.Must(t.Parse(text))
    	ew := &errWriter{w: w}
    	err := t.Execute(ew, data)
    	if ew.err != nil {
    		// I/O error writing. Ignore write on closed pipe.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top