Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 292 for getEnd (0.22 sec)

  1. src/os/os_unix_test.go

    	defer f.Close()
    	dir, err := f.Stat()
    	if err != nil {
    		t.Fatalf("stat %s: %s", f.Name(), err)
    	}
    
    	// Can't change uid unless root, but can try
    	// changing the group id. First try our current group.
    	gid := Getgid()
    	t.Log("gid:", gid)
    	if err = Chown(f.Name(), -1, gid); err != nil {
    		t.Fatalf("chown %s -1 %d: %s", f.Name(), gid, err)
    	}
    	sys := dir.Sys().(*syscall.Stat_t)
    	checkUidGid(t, f.Name(), int(sys.Uid), gid)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/settings.md

    ๐Ÿ–ผ ๐Ÿ‘† ๐Ÿ’ช โœ”๏ธ ๐Ÿ“ `main.py` โฎ๏ธ:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    !!! tip
        ๐Ÿฅˆ โŒ <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> ๐Ÿ”ข ๐Ÿ’ฒ ๐Ÿ“จ.
    
        ๐Ÿšฅ ๐Ÿšซ ๐Ÿšš, โšซ๏ธ `None` ๐Ÿ”ข, ๐Ÿ“ฅ ๐Ÿ‘ฅ ๐Ÿšš `"World"` ๐Ÿ”ข ๐Ÿ’ฒ โš™๏ธ.
    
    โคด๏ธ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿค™ ๐Ÿ‘ˆ ๐Ÿ ๐Ÿ“‹:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/configuration/DaemonParameters.java

            }
            baseDir = new File(layout.getGradleUserHomeDir(), "daemon");
            gradleUserHomeDir = layout.getGradleUserHomeDir();
            envVariables = new HashMap<>(System.getenv());
        }
    
        public boolean isEnabled() {
            return enabled;
        }
    
        public void setEnabled(boolean enabled) {
            this.enabled = enabled;
        }
    
        public File getBaseDir() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/net/http.go

    	// connection health check.
    	if s := os.Getenv("HTTP2_READ_IDLE_TIMEOUT_SECONDS"); len(s) > 0 {
    		i, err := strconv.Atoi(s)
    		if err != nil {
    			klog.Warningf("Illegal HTTP2_READ_IDLE_TIMEOUT_SECONDS(%q): %v."+
    				" Default value %d is used", s, err, ret)
    			return ret
    		}
    		ret = i
    	}
    	return ret
    }
    
    func pingTimeoutSeconds() int {
    	ret := 15
    	if s := os.Getenv("HTTP2_PING_TIMEOUT_SECONDS"); len(s) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 05 00:08:58 UTC 2022
    - 20.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/driver/fetch.go

    // $HOME is not set, falls back to os.TempDir().
    func setTmpDir(ui plugin.UI) (string, error) {
    	var dirs []string
    	if profileDir := os.Getenv("PPROF_TMPDIR"); profileDir != "" {
    		dirs = append(dirs, profileDir)
    	}
    	if homeDir := os.Getenv(homeEnv()); homeDir != "" {
    		dirs = append(dirs, filepath.Join(homeDir, "pprof"))
    	}
    	dirs = append(dirs, os.TempDir())
    	for _, tmpDir := range dirs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go

    	euid = int(r0)
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Getgid() (gid int) {
    	r0, _ := C.getgid()
    	gid = int(r0)
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Getuid() (uid int) {
    	r0, _ := C.getuid()
    	uid = int(r0)
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 35.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/toolchain/select.go

    		return
    	}
    
    	// Interpret GOTOOLCHAIN to select the Go toolchain to run.
    	gotoolchain := cfg.Getenv("GOTOOLCHAIN")
    	gover.Startup.GOTOOLCHAIN = gotoolchain
    	if gotoolchain == "" {
    		// cfg.Getenv should fall back to $GOROOT/go.env,
    		// so this should not happen, unless a packager
    		// has deleted the GOTOOLCHAIN line from go.env.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. src/runtime/crash_test.go

    // involving the testing harness.
    func init() {
    	if os.Getenv("GO_TEST_RUNTIME_PANIC") == "1" {
    		defer func() {
    			if r := recover(); r != nil {
    				// We expect to crash, so exit 0
    				// to indicate failure.
    				os.Exit(0)
    			}
    		}()
    		runtime.PanicForTesting(nil, 1)
    		// We expect to crash, so exit 0 to indicate failure.
    		os.Exit(0)
    	}
    	if os.Getenv("GO_TEST_RUNTIME_NPE_READMEMSTATS") == "1" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_test.go

    		t.Fatalf("Fchmodat: unexpected error: %v, expected EOPNOTSUPP", err)
    	}
    }
    
    func TestMain(m *testing.M) {
    	if os.Getenv("GO_DEATHSIG_PARENT") == "1" {
    		deathSignalParent()
    	} else if os.Getenv("GO_DEATHSIG_CHILD") == "1" {
    		deathSignalChild()
    	} else if os.Getenv("GO_SYSCALL_NOERROR") == "1" {
    		syscallNoError()
    	}
    
    	os.Exit(m.Run())
    }
    
    func TestParseNetlinkMessage(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      // staleness (seconds) if provided.
      const char* block_size_env = std::getenv(kBlockSize);
      if (block_size_env && absl::SimpleAtoi(block_size_env, &value)) {
        block_size = value * 1024 * 1024;
      }
      const char* max_bytes_env = std::getenv(kMaxCacheSize);
      if (max_bytes_env && absl::SimpleAtoi(max_bytes_env, &value)) {
        max_bytes = static_cast<size_t>(value * 1024 * 1024);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 06:55:53 UTC 2023
    - 46.9K bytes
    - Viewed (0)
Back to top