Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Grocevs (0.49 sec)

  1. src/cmd/cgo/internal/test/issue18146.go

    		if err := syscall.Exec(os.Args[0], argv, os.Environ()); err != nil {
    			t.Fatal(err)
    		}
    	}
    
    	var cmds []*exec.Cmd
    	defer func() {
    		for _, cmd := range cmds {
    			cmd.Process.Kill()
    		}
    	}()
    
    	args := append(append([]string(nil), os.Args[1:]...), "-test.run=^Test18146$")
    	for n := attempts; n > 0; n-- {
    		cmd := exec.Command(os.Args[0], args...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    fail for reasons that are irrelevant when using external linking mode.
    
    The final program will be a dynamic executable, so that cmd/link can avoid
    needing to process arbitrary .o files. It only needs to process the .o
    files generated from C files that cgo writes, and those are much more
    limited in the ELF or other features that they use.
    
    In essence, the _cgo_import.o file includes the extra linking
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue1435.go

    		if err != nil {
    			// There are a surprising number of ways this
    			// can error out on linux.  We've seen all of
    			// the following, so treat any error here as
    			// equivalent to the "process is gone":
    			//    os.IsNotExist(err),
    			//    "... : no such process",
    			//    "... : bad file descriptor.
    			continue
    		}
    		lines := strings.Split(string(d), "\n")
    		for _, line := range lines {
    			// Different kernel vintages pad differently.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 21:31:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/test.go

    // This is really an os package test but here for convenience.
    func testSetEnv(t *testing.T) {
    	if runtime.GOOS == "windows" {
    		// Go uses SetEnvironmentVariable on windows. However,
    		// C runtime takes a *copy* at process startup of the
    		// OS environment, and stores it in environ/envp.
    		// It is this copy that	getenv/putenv manipulate.
    		t.Logf("skipping test")
    		return
    	}
    	const key = "CGO_OS_TEST_KEY"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		t.Skipf("skipping on %s/%s: runtime does not permit SI_USER SIGSEGV", GOOS, GOARCH)
    	}
    	globalSkip(t)
    	checkSignalForwardingTest(t)
    	buildSignalForwardingTest(t)
    
    	// We want to send the process a signal and see if it dies.
    	// Normally the signal goes to the C thread, the Go signal
    	// handler picks it up, sees that it is running in a C thread,
    	// and the program dies. Unfortunately, occasionally the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    	}
    	word, cond = p.lex.Text(), ""
    	operands = scratch[:0]
    	// Zero or more comma-separated operands, one per loop.
    	nesting := 0
    	colon := -1
    	for tok != '\n' && tok != ';' {
    		// Process one operand.
    		var items []lex.Token
    		if cap(operands) > len(operands) {
    			// Reuse scratch items slice.
    			items = operands[:cap(operands)][len(operands)][:0]
    		} else {
    			items = make([]lex.Token, 0, 3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  7. misc/ios/go_ios_exec.go

    		if platform == 'remote-ios':
    			process.RemoteLaunch(args, env, None, None, None, None, 0, False, err)
    			if not err.Success():
    				sys.stderr.write("lldb: failed to launch remote process: %s\n" % (err))
    				process.Kill()
    				debugger.Terminate()
    				sys.exit(1)
    		run_program()
    
    exitStatus = process.GetExitStatus()
    exitDesc = process.GetExitDescription()
    process.Kill()
    debugger.Terminate()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testsanitizers/cc_test.go

    	}
    
    	if deadline, ok := t.Deadline(); ok {
    		timeout := time.Until(deadline)
    		timeout -= timeout / 10 // Leave 10% headroom for logging and cleanup.
    		timer := time.AfterFunc(timeout, func() {
    			cmd.Process.Signal(syscall.SIGQUIT)
    		})
    		defer timer.Stop()
    	}
    
    	if err := cmd.Wait(); err != nil {
    		t.Fatalf("%v exited with %v\n%s", cmd, err, out)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. misc/go_android_exec/main.go

    	// forcing cmd.Run to use another pipe and goroutine to pass
    	// along stderr from adb.
    	cmd.Stderr = struct{ io.Writer }{os.Stderr}
    	err := cmd.Run()
    
    	// Before we process err, flush any further output and get the exit code.
    	exitCode, err2 := filter.Finish()
    
    	if err != nil {
    		return 0, fmt.Errorf("adb exec-out %s: %v", args, err)
    	}
    	return exitCode, err2
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  10. src/archive/tar/reader.go

    //
    // The Header.Size does not reflect the size of any extended headers used.
    // Thus, this function will read from the raw io.Reader to fetch extra headers.
    // This method mutates blk in the process.
    func (tr *Reader) readOldGNUSparseMap(hdr *Header, blk *block) (sparseDatas, error) {
    	// Make sure that the input format is GNU.
    	// Unfortunately, the STAR format also has a sparse header format that uses
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top