Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,429 for _exec (0.05 sec)

  1. src/cmd/distpack/pack.go

    		strings.HasSuffix(name, ".bash") ||
    		strings.HasSuffix(name, ".sh") ||
    		strings.HasSuffix(name, ".pl") ||
    		strings.HasSuffix(name, ".rc") {
    		return 0o755
    	} else if ok, _ := amatch("**/go_?*_?*_exec", name); ok {
    		return 0o755
    	}
    	return 0o644
    }
    
    // readVERSION reads the VERSION file.
    // The first line of the file is the Go version.
    // Additional lines are 'key value' pairs setting other data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/carchive_test.go

    func cmdToRun(name string) []string {
    	execScript := "go_" + goEnv("GOOS") + "_" + goEnv("GOARCH") + "_exec"
    	executor, err := exec.LookPath(execScript)
    	if err != nil {
    		return []string{name}
    	}
    	return []string{executor, name}
    }
    
    // genHeader writes a C header file for the C-exported declarations found in .go
    // source files in dir.
    //
    // TODO(golang.org/issue/35715): This should be simpler.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  3. src/internal/testenv/exec.go

    // inappropriate recursion in TestMain functions.
    //
    // To check for exec support outside of a test, just try to exec the command.
    // If exec is not supported, testenv.SyscallIsNotSupported will return true
    // for the resulting error.
    func MustHaveExec(t testing.TB) {
    	tryExecOnce.Do(func() {
    		tryExecErr = tryExec()
    	})
    	if tryExecErr != nil {
    		t.Skipf("skipping test: cannot exec subprocess on %s/%s: %v", runtime.GOOS, runtime.GOARCH, tryExecErr)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 27 17:53:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/toolchain/exec.go

    		cmd := exec.Command(exe, os.Args[1:]...)
    		cmd.Stdin = os.Stdin
    		cmd.Stdout = os.Stdout
    		cmd.Stderr = os.Stderr
    		err := cmd.Run()
    		if err != nil {
    			if e, ok := err.(*exec.ExitError); ok && e.ProcessState != nil {
    				if e.ProcessState.Exited() {
    					os.Exit(e.ProcessState.ExitCode())
    				}
    				base.Fatalf("exec %s: %s", gotoolchain, e.ProcessState)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. pkg/probe/exec/exec.go

    limitations under the License.
    */
    
    package exec
    
    import (
    	"bytes"
    	"errors"
    
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	remote "k8s.io/cri-client/pkg"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/kubelet/util/ioutils"
    	"k8s.io/kubernetes/pkg/probe"
    
    	"k8s.io/klog/v2"
    	"k8s.io/utils/exec"
    )
    
    const (
    	maxReadLength = 10 * 1 << 10 // 10KB
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/cmd/dist/exec.go

    package main
    
    import (
    	"os/exec"
    	"strings"
    )
    
    // setDir sets cmd.Dir to dir, and also adds PWD=dir to cmd's environment.
    func setDir(cmd *exec.Cmd, dir string) {
    	cmd.Dir = dir
    	if cmd.Env != nil {
    		// os/exec won't set PWD automatically.
    		setEnv(cmd, "PWD", dir)
    	}
    }
    
    // setEnv sets cmd.Env so that key = value.
    func setEnv(cmd *exec.Cmd, key, value string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 21:52:09 UTC 2023
    - 957 bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/exec.go

    	sigemptyset(&mask);
    	pthread_sigmask(SIG_SETMASK, NULL, &mask);
    }
    
    int SIGINTBlocked() {
    	return sigismember(&mask, SIGINT);
    }
    */
    import "C"
    
    import (
    	"fmt"
    	"io/fs"
    	"os"
    	"os/exec"
    	"os/signal"
    	"sync"
    	"syscall"
    )
    
    func init() {
    	register("CgoExecSignalMask", CgoExecSignalMask)
    }
    
    func CgoExecSignalMask() {
    	if len(os.Args) > 2 && os.Args[2] == "testsigint" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/tasks/Exec.java

     *     return standardOutput.toString()
     *   }
     * }
     * </pre>
     */
    @DisableCachingByDefault(because = "Gradle would require more information to cache this task")
    public abstract class Exec extends AbstractExecTask<Exec> {
        public Exec() {
            super(Exec.class);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. src/os/exec/exec.go

    // can instead override the error using an errors.Is check:
    //
    //	path, err := exec.LookPath("prog")
    //	if errors.Is(err, exec.ErrDot) {
    //		err = nil
    //	}
    //	if err != nil {
    //		log.Fatal(err)
    //	}
    //	use(path)
    //
    // and
    //
    //	cmd := exec.Command("prog")
    //	if errors.Is(cmd.Err, exec.ErrDot) {
    //		cmd.Err = nil
    //	}
    //	if err := cmd.Run(); err != nil {
    //		log.Fatal(err)
    //	}
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  10. src/os/exec.go

    // thread state (for example, Linux or Plan 9 name spaces), the new
    // process will inherit the caller's thread state.
    //
    // StartProcess is a low-level interface. The [os/exec] package provides
    // higher-level interfaces.
    //
    // If there is an error, it will be of type [*PathError].
    func StartProcess(name string, argv []string, attr *ProcAttr) (*Process, error) {
    	testlog.Open(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top