Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for devNull (0.22 sec)

  1. src/cmd/link/internal/ld/stackcheck_test.go

    func TestStackCheckOutput(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	t.Parallel()
    
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", os.DevNull, "./testdata/stackcheck")
    	// The rules for computing frame sizes on all of the
    	// architectures are complicated, so just do this on amd64.
    	cmd.Env = append(os.Environ(), "GOARCH=amd64", "GOOS=linux")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. src/net/unixsock_readmsg_test.go

    	"os"
    	"syscall"
    	"testing"
    	"time"
    )
    
    func TestUnixConnReadMsgUnixSCMRightsCloseOnExec(t *testing.T) {
    	if !testableNetwork("unix") {
    		t.Skip("not unix system")
    	}
    
    	scmFile, err := os.Open(os.DevNull)
    	if err != nil {
    		t.Fatalf("file open: %v", err)
    	}
    	defer scmFile.Close()
    
    	rights := syscall.UnixRights(int(scmFile.Fd()))
    	fds, err := syscall.Socketpair(syscall.AF_LOCAL, syscall.SOCK_STREAM, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 09:15:25 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcweb/hg.go

    		ctx, cancel := context.WithCancel(req.Context())
    		defer cancel()
    
    		cmd := exec.CommandContext(ctx, h.hgPath, "serve", "--port", "0", "--address", "localhost", "--accesslog", os.DevNull, "--name", "vcweb", "--print-url")
    		cmd.Dir = dir
    		cmd.Env = append(slices.Clip(env), "PWD="+dir)
    
    		cmd.Cancel = func() error {
    			err := cmd.Process.Signal(os.Interrupt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 02:52:19 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/go/scriptreadme_test.go

    	GOROOT=<actual GOROOT>
    	TESTGO_GOROOT=<GOROOT used to build cmd/go, for use in tests that may change GOROOT>
    	HOME=/no-home
    	PATH=<actual PATH>
    	TMPDIR=$WORK/tmp
    	GODEBUG=<actual GODEBUG>
    	devnull=<value of os.DevNull>
    	goversion=<current Go version; for example, 1.12>
    
    On Plan 9, the variables $path and $home are set instead of $PATH and $HOME.
    On Windows, the variables $USERPROFILE and $TMP are set instead of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_find.txt

    # 'go mod init' should succeed if modules are not explicitly disabled.
    cd $GOPATH/src/example.com/x/y
    go mod init
    stderr 'module example.com/x/y$'
    rm go.mod
    
    # go mod init rejects a zero-length go.mod file
    cp $devnull go.mod # can't use touch to create it because Windows
    ! go mod init
    stderr 'go.mod already exists'
    
    # Module path from Godeps/Godeps.json overrides GOPATH.
    cd $GOPATH/src/example.com/x/y/z
    go mod init
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:14 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. cmd/admin-router.go

    	adminAPIVersionPrefix          = SlashSeparator + adminAPIVersion
    	adminAPISiteReplicationDevNull = "/site-replication/devnull"
    	adminAPISiteReplicationNetPerf = "/site-replication/netperf"
    	adminAPIClientDevNull          = "/speedtest/client/devnull"
    	adminAPIClientDevExtraTime     = "/speedtest/client/devnull/extratime"
    )
    
    var gzipHandler = func() func(http.Handler) http.HandlerFunc {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  7. src/os/file_windows.go

    	if h == syscall.InvalidHandle {
    		return nil
    	}
    	return newFile(h, name, "file")
    }
    
    func epipecheck(file *File, e error) {
    }
    
    // DevNull is the name of the operating system's “null device.”
    // On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
    const DevNull = "NUL"
    
    // openFileNolog is the Windows implementation of OpenFile.
    func openFileNolog(name string, flag int, perm FileMode) (*File, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. src/cmd/go/script_test.go

    		"TESTGO_VCSTEST_CERT=" + srvCertFile,
    		"TESTGONETWORK=panic", // cleared by the [net] condition
    		"GOSUMDB=" + testSumDBVerifierKey,
    		"GONOPROXY=",
    		"GONOSUMDB=",
    		"GOVCS=*:all",
    		"devnull=" + os.DevNull,
    		"goversion=" + gover.Local(),
    		"CMDGO_TEST_RUN_MAIN=true",
    		"HGRCPATH=",
    		"GOTOOLCHAIN=auto",
    		"newline=\n",
    	}
    
    	if testenv.Builder() != "" || os.Getenv("GIT_TRACE_CURL") == "1" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/os/file_unix.go

    // issue 11845.
    func epipecheck(file *File, e error) {
    	if e == syscall.EPIPE && file.stdoutOrErr {
    		sigpipe()
    	}
    }
    
    // DevNull is the name of the operating system's “null device.”
    // On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
    const DevNull = "/dev/null"
    
    // openFileNolog is the Unix implementation of OpenFile.
    // Changes here should be reflected in openDirAt and openDirNolog, if relevant.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/README

    	GOROOT=<actual GOROOT>
    	TESTGO_GOROOT=<GOROOT used to build cmd/go, for use in tests that may change GOROOT>
    	HOME=/no-home
    	PATH=<actual PATH>
    	TMPDIR=$WORK/tmp
    	GODEBUG=<actual GODEBUG>
    	devnull=<value of os.DevNull>
    	goversion=<current Go version; for example, 1.12>
    
    On Plan 9, the variables $path and $home are set instead of $PATH and $HOME.
    On Windows, the variables $USERPROFILE and $TMP are set instead of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top