- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 278 for Windows (0.32 sec)
-
src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_windows.go
// https://learn.microsoft.com/en-us/windows/win32/memory/creating-a-file-mapping-object#file-mapping-size h, err := windows.CreateFileMapping(windows.Handle(f.Fd()), nil, syscall.PAGE_READWRITE, 0, 0, nil) if err != nil { return Data{}, fmt.Errorf("CreateFileMapping %s: %w", f.Name(), err) } // the mapping extends from zero to the end of the file mapping // https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-mapviewoffile
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:10:54 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/term/term_windows.go
if err := windows.GetConsoleMode(windows.Handle(fd), &st); err != nil { return nil, err } old := st st &^= (windows.ENABLE_ECHO_INPUT | windows.ENABLE_LINE_INPUT) st |= (windows.ENABLE_PROCESSED_OUTPUT | windows.ENABLE_PROCESSED_INPUT) if err := windows.SetConsoleMode(windows.Handle(fd), st); err != nil { return nil, err } defer windows.SetConsoleMode(windows.Handle(fd), old) var h windows.Handle
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 15 19:02:39 UTC 2021 - 2.1K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/internal/filelock/filelock_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 filelock import ( "internal/syscall/windows" "io/fs" "syscall" ) type lockType uint32 const ( readLock lockType = 0 writeLock lockType = windows.LOCKFILE_EXCLUSIVE_LOCK ) const ( reserved = 0 allBytes = ^uint32(0) )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 17 02:24:35 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio_windows.go
import ( "errors" "internal/syscall/windows" "syscall" ) const errFileNotFound = syscall.ERROR_FILE_NOT_FOUND // isEphemeralError returns true if err may be resolved by waiting. func isEphemeralError(err error) bool { var errno syscall.Errno if errors.As(err, &errno) { switch errno { case syscall.ERROR_ACCESS_DENIED, syscall.ERROR_FILE_NOT_FOUND, windows.ERROR_SHARING_VIOLATION: return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 26 15:28:04 UTC 2019 - 615 bytes - Viewed (0) -
src/cmd/go/internal/robustio/robustio.go
package robustio // Rename is like os.Rename, but on Windows retries errors that may occur if the // file is concurrently read or overwritten. // // (See golang.org/issue/31247 and golang.org/issue/32188.) func Rename(oldpath, newpath string) error { return rename(oldpath, newpath) } // ReadFile is like os.ReadFile, but on Windows retries errors that may // occur if the file is concurrently replaced. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.9K bytes - Viewed (0) -
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) -
src/cmd/distpack/test.go
{name: "go/bin/go", goos: "linux"}, {name: "go/bin/go", goos: "darwin"}, {name: "go/bin/go", goos: "windows", exclude: true}, {name: "go/bin/go.exe", goos: "windows"}, {name: "go/bin/gofmt", goos: "linux"}, {name: "go/bin/gofmt", goos: "darwin"}, {name: "go/bin/gofmt", goos: "windows", exclude: true}, {name: "go/bin/gofmt.exe", goos: "windows"}, {name: "go/pkg/tool/*/compile", goos: "linux"}, {name: "go/pkg/tool/*/compile", goos: "darwin"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 22:29:19 UTC 2023 - 5.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/dll_windows.go
// the error. The error will be guaranteed to contain windows.Errno. func (p *LazyProc) Call(a ...uintptr) (r1, r2 uintptr, lastErr error) { p.mustFind() return p.proc.Call(a...) } var canDoSearchSystem32Once struct { sync.Once v bool } func initCanDoSearchSystem32() { // https://msdn.microsoft.com/en-us/library/ms684179(v=vs.85).aspx says: // "Windows 7, Windows Server 2008 R2, Windows Vista, and Windows
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Dec 05 12:36:42 UTC 2020 - 12K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/env_windows.go
// Copyright 2010 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. // Windows environment variables. package windows import ( "syscall" "unsafe" ) func Getenv(key string) (value string, found bool) { return syscall.Getenv(key) } func Setenv(key, value string) error { return syscall.Setenv(key, value) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 20:35:26 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8517.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 286 bytes - Viewed (0)