Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for runtime_arg0 (0.21 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/Instrumented.java

                return invocation.callOriginal();
            }
    
            private Optional<Process> tryCallExec(Object runtimeArg, Object commandArg, @Nullable Object envpArg, @Nullable Object fileArg, String consumer) throws Throwable {
                if (runtimeArg instanceof Runtime) {
                    Runtime runtime = (Runtime) runtimeArg;
    
                    if (fileArg == null || fileArg instanceof File) {
                        File file = (File) fileArg;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 13:46:35 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. src/runtime/runtime.go

    //go:linkname syscall_Getpagesize syscall.Getpagesize
    func syscall_Getpagesize() int { return int(physPageSize) }
    
    //go:linkname os_runtime_args os.runtime_args
    func os_runtime_args() []string { return append([]string{}, argslice...) }
    
    //go:linkname syscall_Exit syscall.Exit
    //go:nosplit
    func syscall_Exit(code int) {
    	exit(int32(code))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. src/runtime/asm_wasm.s

    	MOVD $runtime·g0(SB), runtime·m0+m_g0(SB)
    	// save m0 to g0->m
    	MOVD $runtime·m0(SB), runtime·g0+g_m(SB)
    	// set g to g0
    	MOVD $runtime·g0(SB), g
    	CALLNORESUME runtime·check(SB)
    #ifdef GOOS_js
    	CALLNORESUME runtime·args(SB)
    #endif
    	CALLNORESUME runtime·osinit(SB)
    	CALLNORESUME runtime·schedinit(SB)
    	MOVD $runtime·mainPC(SB), 0(SP)
    	CALLNORESUME runtime·newproc(SB)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:26:51 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  9. src/runtime/asm_mips64x.s

    	MOVV	$runtime·m0(SB), R1
    
    	// save m->g0 = g0
    	MOVV	g, m_g0(R1)
    	// save m0 to g0->m
    	MOVV	R1, g_m(g)
    
    	JAL	runtime·check(SB)
    
    	// args are already prepared
    	JAL	runtime·args(SB)
    	JAL	runtime·osinit(SB)
    	JAL	runtime·schedinit(SB)
    
    	// create a new goroutine to start program
    	MOVV	$runtime·mainPC(SB), R1		// entry
    	ADDV	$-16, R29
    	MOVV	R1, 8(R29)
    	MOVV	R0, 0(R29)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 19:45:59 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  10. src/runtime/asm_riscv64.s

    	MOV	$runtime·m0(SB), T0
    
    	// save m->g0 = g0
    	MOV	g, m_g0(T0)
    	// save m0 to g0->m
    	MOV	T0, g_m(g)
    
    	CALL	runtime·check(SB)
    
    	// args are already prepared
    	CALL	runtime·args(SB)
    	CALL	runtime·osinit(SB)
    	CALL	runtime·schedinit(SB)
    
    	// create a new goroutine to start program
    	MOV	$runtime·mainPC(SB), T0		// entry
    	SUB	$16, X2
    	MOV	T0, 8(X2)
    	MOV	ZERO, 0(X2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 27K bytes
    - Viewed (0)
Back to top