Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for Windows (0.57 sec)

  1. src/cmd/go/internal/envcmd/env_test.go

    			}
    		}
    
    		var b bytes.Buffer
    		if runtime.GOOS == "windows" {
    			b.WriteString("@echo off\n")
    		}
    		PrintEnv(&b, []cfg.EnvVar{{Name: "var", Value: s}}, false)
    		var want string
    		if runtime.GOOS == "windows" {
    			fmt.Fprintf(&b, "echo \"%%var%%\"\n")
    			want += "\"" + s + "\"\r\n"
    		} else {
    			fmt.Fprintf(&b, "printf '%%s\\n' \"$var\"\n")
    			want += s + "\n"
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/windows/aliases.go

    // Copyright 2018 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 windows
    
    package windows
    
    import "syscall"
    
    type Errno = syscall.Errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 281 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/module/module.go

    		}
    	}
    
    	// Windows disallows a bunch of path elements, sadly.
    	// See https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file
    	short := elem
    	if i := strings.Index(short, "."); i >= 0 {
    		short = short[:i]
    	}
    	for _, bad := range badWindowsNames {
    		if strings.EqualFold(bad, short) {
    			return fmt.Errorf("%q disallowed as path element component on Windows", short)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/outbuf_nommap.go

    // Copyright 2019 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 !unix && !windows
    
    package ld
    
    // Mmap allocates an in-heap output buffer with the given size. It copies
    // any old data (if any) to the new buffer.
    func (out *OutBuf) Mmap(filesize uint64) error {
    	// We need space to put all the symbols before we apply relocations.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 660 bytes
    - Viewed (0)
  5. src/cmd/go/internal/telemetrystats/version_windows.go

    //go:build !cmd_go_bootstrap && windows
    
    package telemetrystats
    
    import (
    	"fmt"
    
    	"cmd/internal/telemetry"
    
    	"golang.org/x/sys/windows"
    )
    
    func incrementVersionCounters() {
    	v := windows.RtlGetVersion()
    	telemetry.Inc(fmt.Sprintf("go/platform/host/windows/major-version:%d", v.MajorVersion))
    	telemetry.Inc(fmt.Sprintf("go/platform/host/windows/version:%d-%d", v.MajorVersion, v.MinorVersion))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 637 bytes
    - Viewed (0)
  6. src/crypto/rand/rand.go

    //   - On macOS and iOS, Reader uses arc4random_buf(3).
    //   - On OpenBSD and NetBSD, Reader uses getentropy(2).
    //   - On other Unix-like systems, Reader reads from /dev/urandom.
    //   - On Windows, Reader uses the ProcessPrng API.
    //   - On js/wasm, Reader uses the Web Crypto API.
    //   - On wasip1/wasm, Reader uses random_get from wasi_snapshot_preview1.
    var Reader io.Reader
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:02:21 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. src/cmd/dist/build.go

    	plan9 := flag.Bool("9", gohostos == "plan9", "emit plan 9 syntax")
    	windows := flag.Bool("w", gohostos == "windows", "emit windows syntax")
    	xflagparse(0)
    
    	format := "%s=\"%s\";\n" // Include ; to separate variables when 'dist env' output is used with eval.
    	switch {
    	case *plan9:
    		format = "%s='%s'\n"
    	case *windows:
    		format = "set %s=%s\r\n"
    	}
    
    	xprintf(format, "GO111MODULE", "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    func Fchdir(fd Handle) (err error)             { return syscall.EWINDOWS }
    func Link(oldpath, newpath string) (err error) { return syscall.EWINDOWS }
    func Symlink(path, link string) (err error)    { return syscall.EWINDOWS }
    
    func Fchmod(fd Handle, mode uint32) (err error)        { return syscall.EWINDOWS }
    func Chown(path string, uid int, gid int) (err error)  { return syscall.EWINDOWS }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  9. src/cmd/internal/osinfo/os_windows.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build windows
    
    package osinfo
    
    import (
    	"fmt"
    
    	"golang.org/x/sys/windows"
    )
    
    // Version returns the OS version name/number.
    func Version() (string, error) {
    	info := windows.RtlGetVersion()
    	return fmt.Sprintf("%d.%d.%d", info.MajorVersion, info.MinorVersion, info.BuildNumber), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 452 bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/shell.go

    		}
    	}
    
    	// On Windows, remove lingering ~ file from last attempt.
    	if runtime.GOOS == "windows" {
    		if _, err := os.Stat(dst + "~"); err == nil {
    			os.Remove(dst + "~")
    		}
    	}
    
    	mayberemovefile(dst)
    	df, err := os.OpenFile(dst, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm)
    	if err != nil && runtime.GOOS == "windows" {
    		// Windows does not allow deletion of a binary file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top