Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for runtime_args (0.32 sec)

  1. src/os/proc.go

    // Args hold the command-line arguments, starting with the program name.
    var Args []string
    
    func init() {
    	if runtime.GOOS == "windows" {
    		// Initialized in exec_windows.go.
    		return
    	}
    	Args = runtime_args()
    }
    
    func runtime_args() []string // in package runtime
    
    // Getuid returns the numeric user id of the caller.
    //
    // On Windows, it returns -1.
    func Getuid() int { return syscall.Getuid() }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/fipstls/tls.go

    	// Note: Not using boring.UnreachableExceptTests because we want
    	// this test to happen even when boring.Enabled = false.
    	name := runtime_arg0()
    	// Allow _test for Go command, .test for Bazel,
    	// NaClMain for NaCl (where all binaries run as NaClMain),
    	// and empty string for Windows (where runtime_arg0 can't easily find the name).
    	// Since this is an internal package, testing that this isn't used on the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/runtime/runtime_boring.go

    import _ "unsafe" // for go:linkname
    
    //go:linkname boring_runtime_arg0 crypto/internal/boring.runtime_arg0
    func boring_runtime_arg0() string {
    	// On Windows, argslice is not set, and it's too much work to find argv0.
    	if len(argslice) == 0 {
    		return ""
    	}
    	return argslice[0]
    }
    
    //go:linkname fipstls_runtime_arg0 crypto/internal/boring/fipstls.runtime_arg0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 06:03:36 UTC 2017
    - 606 bytes
    - Viewed (0)
  4. src/crypto/internal/boring/boring.go

    func Unreachable() {
    	panic("boringcrypto: invalid code execution")
    }
    
    // provided by runtime to avoid os import.
    func runtime_arg0() string
    
    // UnreachableExceptTests marks code that should be unreachable
    // when BoringCrypto is in use. It panics.
    func UnreachableExceptTests() {
    	name := runtime_arg0()
    	// If BoringCrypto ran on Windows we'd need to allow _test.exe and .test.exe as well.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. src/crypto/internal/boring/fipstls/stub.s

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build boringcrypto
    
    // runtime_arg0 is declared in tls.go without a body.
    // It's provided by package runtime,
    // but the go command doesn't know that.
    // Having this assembly file keeps the go command
    // from complaining about the missing body
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:22 UTC 2022
    - 457 bytes
    - Viewed (0)
Back to top