$68 GRAYBYTE WORDPRESS FILE MANAGER $63

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/golang/src/syscall/

HOME
Current File : /lib/golang/src/syscall//syscall_windows.go
// Copyright 2009 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 system calls.

package syscall

import (
	errorspkg "errors"
	"internal/asan"
	"internal/bytealg"
	"internal/itoa"
	"internal/msan"
	"internal/oserror"
	"internal/race"
	"runtime"
	"sync"
	"unsafe"
)

type Handle uintptr

const InvalidHandle = ^Handle(0)

// StringToUTF16 returns the UTF-16 encoding of the UTF-8 string s,
// with a terminating NUL added. If s contains a NUL byte this
// function panics instead of returning an error.
//
// Deprecated: Use [UTF16FromString] instead.
func StringToUTF16(s string) []uint16 {
	a, err := UTF16FromString(s)
	if err != nil {
		panic("syscall: string with NUL passed to StringToUTF16")
	}
	return a
}

// UTF16FromString returns the UTF-16 encoding of the UTF-8 string
// s, with a terminating NUL added. If s contains a NUL byte at any
// location, it returns (nil, [EINVAL]). Unpaired surrogates
// are encoded using WTF-8.
func UTF16FromString(s string) ([]uint16, error) {
	if bytealg.IndexByteString(s, 0) != -1 {
		return nil, EINVAL
	}
	// Valid UTF-8 characters between 1 and 3 bytes require one uint16.
	// Valid UTF-8 characters of 4 bytes require two uint16.
	// Bytes with invalid UTF-8 encoding require maximum one uint16 per byte.
	// So the number of UTF-8 code units (len(s)) is always greater or
	// equal than the number of UTF-16 code units.
	// Also account for the terminating NUL character.
	buf := make([]uint16, 0, len(s)+1)
	buf = encodeWTF16(s, buf)
	return append(buf, 0), nil
}

// UTF16ToString returns the UTF-8 encoding of the UTF-16 sequence s,
// with a terminating NUL removed. Unpaired surrogates are decoded
// using WTF-8 instead of UTF-8 encoding.
func UTF16ToString(s []uint16) string {
	maxLen := 0
	for i, v := range s {
		if v == 0 {
			s = s[0:i]
			break
		}
		switch {
		case v <= rune1Max:
			maxLen += 1
		case v <= rune2Max:
			maxLen += 2
		default:
			// r is a non-surrogate that decodes to 3 bytes,
			// or is an unpaired surrogate (also 3 bytes in WTF-8),
			// or is one half of a valid surrogate pair.
			// If it is half of a pair, we will add 3 for the second surrogate
			// (total of 6) and overestimate by 2 bytes for the pair,
			// since the resulting rune only requires 4 bytes.
			maxLen += 3
		}
	}
	buf := decodeWTF16(s, make([]byte, 0, maxLen))
	return unsafe.String(unsafe.SliceData(buf), len(buf))
}

// utf16PtrToString is like UTF16ToString, but takes *uint16
// as a parameter instead of []uint16.
func utf16PtrToString(p *uint16) string {
	if p == nil {
		return ""
	}
	end := unsafe.Pointer(p)
	n := 0
	for *(*uint16)(end) != 0 {
		end = unsafe.Pointer(uintptr(end) + unsafe.Sizeof(*p))
		n++
	}
	return UTF16ToString(unsafe.Slice(p, n))
}

// StringToUTF16Ptr returns pointer to the UTF-16 encoding of
// the UTF-8 string s, with a terminating NUL added. If s
// contains a NUL byte this function panics instead of
// returning an error.
//
// Deprecated: Use [UTF16PtrFromString] instead.
func StringToUTF16Ptr(s string) *uint16 { return &StringToUTF16(s)[0] }

// UTF16PtrFromString returns pointer to the UTF-16 encoding of
// the UTF-8 string s, with a terminating NUL added. If s
// contains a NUL byte at any location, it returns (nil, EINVAL).
// Unpaired surrogates are encoded using WTF-8.
func UTF16PtrFromString(s string) (*uint16, error) {
	a, err := UTF16FromString(s)
	if err != nil {
		return nil, err
	}
	return &a[0], nil
}

// Errno is the Windows error number.
//
// Errno values can be tested against error values using [errors.Is].
// For example:
//
//	_, _, err := syscall.Syscall(...)
//	if errors.Is(err, fs.ErrNotExist) ...
type Errno uintptr

func langid(pri, sub uint16) uint32 { return uint32(sub)<<10 | uint32(pri) }

// FormatMessage is deprecated (msgsrc should be uintptr, not uint32, but can
// not be changed due to the Go 1 compatibility guarantee).
//
// Deprecated: Use FormatMessage from golang.org/x/sys/windows instead.
func FormatMessage(flags uint32, msgsrc uint32, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) {
	return formatMessage(flags, uintptr(msgsrc), msgid, langid, buf, args)
}

var errnoErrorCache sync.Map

func (e Errno) Error() string {
	// deal with special go errors
	idx := int(e - APPLICATION_ERROR)
	if 0 <= idx && idx < len(errors) {
		return errors[idx]
	}

	cache := false
	switch e {
	case ERROR_FILE_NOT_FOUND, ERROR_PATH_NOT_FOUND:
		if cached, ok := errnoErrorCache.Load(e); ok {
			return cached.(string)
		}
		cache = true
	}

	result := e.error()
	if cache {
		errnoErrorCache.Store(e, result)
	}
	return result
}

func (e Errno) error() string {
	// ask windows for the remaining errors
	var flags uint32 = FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ARGUMENT_ARRAY | FORMAT_MESSAGE_IGNORE_INSERTS
	b := make([]uint16, 300)
	n, err := formatMessage(flags, 0, uint32(e), langid(LANG_ENGLISH, SUBLANG_ENGLISH_US), b, nil)
	if err != nil {
		n, err = formatMessage(flags, 0, uint32(e), 0, b, nil)
		if err != nil {
			return "winapi error #" + itoa.Itoa(int(e))
		}
	}
	// trim terminating \r and \n
	for ; n > 0 && (b[n-1] == '\n' || b[n-1] == '\r'); n-- {
	}
	return UTF16ToString(b[:n])
}

const (
	_ERROR_NOT_ENOUGH_MEMORY    = Errno(8)
	_ERROR_NOT_SUPPORTED        = Errno(50)
	_ERROR_BAD_NETPATH          = Errno(53)
	_ERROR_CALL_NOT_IMPLEMENTED = Errno(120)
)

func (e Errno) Is(target error) bool {
	switch target {
	case oserror.ErrPermission:
		return e == ERROR_ACCESS_DENIED ||
			e == EACCES ||
			e == EPERM
	case oserror.ErrExist:
		return e == ERROR_ALREADY_EXISTS ||
			e == ERROR_DIR_NOT_EMPTY ||
			e == ERROR_FILE_EXISTS ||
			e == EEXIST ||
			e == ENOTEMPTY
	case oserror.ErrNotExist:
		return e == ERROR_FILE_NOT_FOUND ||
			e == _ERROR_BAD_NETPATH ||
			e == ERROR_PATH_NOT_FOUND ||
			e == ENOENT
	case errorspkg.ErrUnsupported:
		return e == _ERROR_NOT_SUPPORTED ||
			e == _ERROR_CALL_NOT_IMPLEMENTED ||
			e == ENOSYS ||
			e == ENOTSUP ||
			e == EOPNOTSUPP ||
			e == EWINDOWS
	}
	return false
}

func (e Errno) Temporary() bool {
	return e == EINTR || e == EMFILE || e.Timeout()
}

func (e Errno) Timeout() bool {
	return e == EAGAIN || e == EWOULDBLOCK || e == ETIMEDOUT
}

// Implemented in runtime/syscall_windows.go.
func compileCallback(fn any, cleanstack bool) uintptr

// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
// This is useful when interoperating with Windows code requiring callbacks.
// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
// Only a limited number of callbacks may be created in a single Go process, and any memory allocated
// for these callbacks is never released.
// Between NewCallback and NewCallbackCDecl, at least 1024 callbacks can always be created.
func NewCallback(fn any) uintptr {
	return compileCallback(fn, true)
}

// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
// This is useful when interoperating with Windows code requiring callbacks.
// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
// Only a limited number of callbacks may be created in a single Go process, and any memory allocated
// for these callbacks is never released.
// Between NewCallback and NewCallbackCDecl, at least 1024 callbacks can always be created.
func NewCallbackCDecl(fn any) uintptr {
	return compileCallback(fn, false)
}

// windows api calls

//sys	GetLastError() (lasterr error)
//sys	LoadLibrary(libname string) (handle Handle, err error) = LoadLibraryW
//sys	FreeLibrary(handle Handle) (err error)
//sys	GetProcAddress(module Handle, procname string) (proc uintptr, err error)
//sys	GetVersion() (ver uint32, err error)
//sys	formatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) = FormatMessageW
//sys	ExitProcess(exitcode uint32)
//sys	createFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile int32) (handle Handle, err error) [failretval == InvalidHandle || e1 == ERROR_ALREADY_EXISTS ] = CreateFileW
//sys	readFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) = ReadFile
//sys	writeFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) = WriteFile
//sys	SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) [failretval==0xffffffff]
//sys	CloseHandle(handle Handle) (err error)
//sys	GetStdHandle(stdhandle int) (handle Handle, err error) [failretval==InvalidHandle]
//sys	findFirstFile1(name *uint16, data *win32finddata1) (handle Handle, err error) [failretval==InvalidHandle] = FindFirstFileW
//sys	findNextFile1(handle Handle, data *win32finddata1) (err error) = FindNextFileW
//sys	FindClose(handle Handle) (err error)
//sys	GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (err error)
//sys	GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, err error) = GetCurrentDirectoryW
//sys	SetCurrentDirectory(path *uint16) (err error) = SetCurrentDirectoryW
//sys	CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) = CreateDirectoryW
//sys	RemoveDirectory(path *uint16) (err error) = RemoveDirectoryW
//sys	DeleteFile(path *uint16) (err error) = DeleteFileW
//sys	MoveFile(from *uint16, to *uint16) (err error) = MoveFileW
//sys	GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW
//sys	SetEndOfFile(handle Handle) (err error)
//sys	GetSystemTimeAsFileTime(time *Filetime)
//sys	GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) [failretval==0xffffffff]
//sys	createIoCompletionPort(filehandle Handle, cphandle Handle, key uintptr, threadcnt uint32) (handle Handle, err error) = CreateIoCompletionPort
//sys	getQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uintptr, overlapped **Overlapped, timeout uint32) (err error) = GetQueuedCompletionStatus
//sys	postQueuedCompletionStatus(cphandle Handle, qty uint32, key uintptr, overlapped *Overlapped) (err error) = PostQueuedCompletionStatus
//sys	CancelIo(s Handle) (err error)
//sys	CancelIoEx(s Handle, o *Overlapped) (err error)
//sys	CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = CreateProcessW
//sys	CreateProcessAsUser(token Token, appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = advapi32.CreateProcessAsUserW
//sys	OpenProcess(da uint32, inheritHandle bool, pid uint32) (handle Handle, err error)
//sys	TerminateProcess(handle Handle, exitcode uint32) (err error)
//sys	GetExitCodeProcess(handle Handle, exitcode *uint32) (err error)
//sys	getStartupInfo(startupInfo *StartupInfo) = GetStartupInfoW
//sys	GetCurrentProcess() (pseudoHandle Handle, err error)
//sys	GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime, kernelTime *Filetime, userTime *Filetime) (err error)
//sys	DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetProcessHandle Handle, lpTargetHandle *Handle, dwDesiredAccess uint32, bInheritHandle bool, dwOptions uint32) (err error)
//sys	WaitForSingleObject(handle Handle, waitMilliseconds uint32) (event uint32, err error) [failretval==0xffffffff]
//sys	GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) = GetTempPathW
//sys	CreatePipe(readhandle *Handle, writehandle *Handle, sa *SecurityAttributes, size uint32) (err error)
//sys	GetFileType(filehandle Handle) (n uint32, err error)
//sys	CryptAcquireContext(provhandle *Handle, container *uint16, provider *uint16, provtype uint32, flags uint32) (err error) = advapi32.CryptAcquireContextW
//sys	CryptReleaseContext(provhandle Handle, flags uint32) (err error) = advapi32.CryptReleaseContext
//sys	CryptGenRandom(provhandle Handle, buflen uint32, buf *byte) (err error) = advapi32.CryptGenRandom
//sys	GetEnvironmentStrings() (envs *uint16, err error) [failretval==nil] = kernel32.GetEnvironmentStringsW
//sys	FreeEnvironmentStrings(envs *uint16) (err error) = kernel32.FreeEnvironmentStringsW
//sys	GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (n uint32, err error) = kernel32.GetEnvironmentVariableW
//sys	SetEnvironmentVariable(name *uint16, value *uint16) (err error) = kernel32.SetEnvironmentVariableW
//sys	SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error)
//sys	GetFileAttributes(name *uint16) (attrs uint32, err error) [failretval==INVALID_FILE_ATTRIBUTES] = kernel32.GetFileAttributesW
//sys	SetFileAttributes(name *uint16, attrs uint32) (err error) = kernel32.SetFileAttributesW
//sys	GetFileAttributesEx(name *uint16, level uint32, info *byte) (err error) = kernel32.GetFileAttributesExW
//sys	GetCommandLine() (cmd *uint16) = kernel32.GetCommandLineW
//sys	CommandLineToArgv(cmd *uint16, argc *int32) (argv *[8192]*[8192]uint16, err error) [failretval==nil] = shell32.CommandLineToArgvW
//sys	LocalFree(hmem Handle) (handle Handle, err error) [failretval!=0]
//sys	localAlloc(flags uint32, length uint32) (ptr uintptr, err error) = kernel32.LocalAlloc
//sys	SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error)
//sys	FlushFileBuffers(handle Handle) (err error)
//sys	GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (n uint32, err error) = kernel32.GetFullPathNameW
//sys	GetLongPathName(path *uint16, buf *uint16, buflen uint32) (n uint32, err error) = kernel32.GetLongPathNameW
//sys	GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uint32, err error) = kernel32.GetShortPathNameW
//sys	CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name *uint16) (handle Handle, err error) = kernel32.CreateFileMappingW
//sys	MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error)
//sys	UnmapViewOfFile(addr uintptr) (err error)
//sys	FlushViewOfFile(addr uintptr, length uintptr) (err error)
//sys	VirtualLock(addr uintptr, length uintptr) (err error)
//sys	VirtualUnlock(addr uintptr, length uintptr) (err error)
//sys	TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (err error) = mswsock.TransmitFile
//sys	ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree bool, mask uint32, retlen *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) = kernel32.ReadDirectoryChangesW
//sys	CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) = crypt32.CertOpenSystemStoreW
//sys   CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) = crypt32.CertOpenStore
//sys	CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) [failretval==nil] = crypt32.CertEnumCertificatesInStore
//sys   CertAddCertificateContextToStore(store Handle, certContext *CertContext, addDisposition uint32, storeContext **CertContext) (err error) = crypt32.CertAddCertificateContextToStore
//sys	CertCloseStore(store Handle, flags uint32) (err error) = crypt32.CertCloseStore
//sys   CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, additionalStore Handle, para *CertChainPara, flags uint32, reserved uintptr, chainCtx **CertChainContext) (err error) = crypt32.CertGetCertificateChain
//sys   CertFreeCertificateChain(ctx *CertChainContext) = crypt32.CertFreeCertificateChain
//sys   CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, encodedLen uint32) (context *CertContext, err error) [failretval==nil] = crypt32.CertCreateCertificateContext
//sys   CertFreeCertificateContext(ctx *CertContext) (err error) = crypt32.CertFreeCertificateContext
//sys   CertVerifyCertificateChainPolicy(policyOID uintptr, chain *CertChainContext, para *CertChainPolicyPara, status *CertChainPolicyStatus) (err error) = crypt32.CertVerifyCertificateChainPolicy
//sys	RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint32, result *Handle) (regerrno error) = advapi32.RegOpenKeyExW
//sys	RegCloseKey(key Handle) (regerrno error) = advapi32.RegCloseKey
//sys	RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint32, subkeysLen *uint32, maxSubkeyLen *uint32, maxClassLen *uint32, valuesLen *uint32, maxValueNameLen *uint32, maxValueLen *uint32, saLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegQueryInfoKeyW
//sys	regEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegEnumKeyExW
//sys	RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegQueryValueExW
//sys	getCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId
//sys	GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode
//sys	WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW
//sys	ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW
//sys	CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot
//sys	Process32First(snapshot Handle, procEntry *ProcessEntry32) (err error) = kernel32.Process32FirstW
//sys	Process32Next(snapshot Handle, procEntry *ProcessEntry32) (err error) = kernel32.Process32NextW
//sys	DeviceIoControl(handle Handle, ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *Overlapped) (err error)
//sys	setFileInformationByHandle(handle Handle, fileInformationClass uint32, buf unsafe.Pointer, bufsize uint32) (err error) = kernel32.SetFileInformationByHandle
// This function returns 1 byte BOOLEAN rather than the 4 byte BOOL.
//sys	CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) [failretval&0xff==0] = CreateSymbolicLinkW
//sys	CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr) (err error) [failretval&0xff==0] = CreateHardLinkW
//sys	initializeProcThreadAttributeList(attrlist *_PROC_THREAD_ATTRIBUTE_LIST, attrcount uint32, flags uint32, size *uintptr) (err error) = InitializeProcThreadAttributeList
//sys	deleteProcThreadAttributeList(attrlist *_PROC_THREAD_ATTRIBUTE_LIST) = DeleteProcThreadAttributeList
//sys	updateProcThreadAttribute(attrlist *_PROC_THREAD_ATTRIBUTE_LIST, flags uint32, attr uintptr, value unsafe.Pointer, size uintptr, prevvalue unsafe.Pointer, returnedsize *uintptr) (err error) = UpdateProcThreadAttribute
//sys	getFinalPathNameByHandle(file Handle, filePath *uint16, filePathSize uint32, flags uint32) (n uint32, err error) [n == 0 || n >= filePathSize] = kernel32.GetFinalPathNameByHandleW

// syscall interface implementation for other packages

func makeInheritSa() *SecurityAttributes {
	var sa SecurityAttributes
	sa.Length = uint32(unsafe.Sizeof(sa))
	sa.InheritHandle = 1
	return &sa
}

func Open(name string, flag int, perm uint32) (fd Handle, err error) {
	if len(name) == 0 {
		return InvalidHandle, ERROR_FILE_NOT_FOUND
	}
	namep, err := UTF16PtrFromString(name)
	if err != nil {
		return InvalidHandle, err
	}
	accessFlags := flag & (O_RDONLY | O_WRONLY | O_RDWR)
	var access uint32
	switch accessFlags {
	case O_RDONLY:
		access = GENERIC_READ
	case O_WRONLY:
		access = GENERIC_WRITE
	case O_RDWR:
		access = GENERIC_READ | GENERIC_WRITE
	}
	if flag&O_CREAT != 0 {
		access |= GENERIC_WRITE
	}
	if flag&O_APPEND != 0 {
		// Remove GENERIC_WRITE unless O_TRUNC is set, in which case we need it to truncate the file.
		// We can't just remove FILE_WRITE_DATA because GENERIC_WRITE without FILE_WRITE_DATA
		// starts appending at the beginning of the file rather than at the end.
		if flag&O_TRUNC == 0 {
			access &^= GENERIC_WRITE
		}
		// Set all access rights granted by GENERIC_WRITE except for FILE_WRITE_DATA.
		access |= FILE_APPEND_DATA | FILE_WRITE_ATTRIBUTES | _FILE_WRITE_EA | STANDARD_RIGHTS_WRITE | SYNCHRONIZE
	}
	sharemode := uint32(FILE_SHARE_READ | FILE_SHARE_WRITE)
	var sa *SecurityAttributes
	if flag&O_CLOEXEC == 0 {
		sa = makeInheritSa()
	}
	var attrs uint32 = FILE_ATTRIBUTE_NORMAL
	if perm&S_IWRITE == 0 {
		attrs = FILE_ATTRIBUTE_READONLY
	}
	switch accessFlags {
	case O_WRONLY, O_RDWR:
		// Unix doesn't allow opening a directory with O_WRONLY
		// or O_RDWR, so we don't set the flag in that case,
		// which will make CreateFile fail with ERROR_ACCESS_DENIED.
		// We will map that to EISDIR if the file is a directory.
	default:
		// We might be opening a directory for reading,
		// and CreateFile requires FILE_FLAG_BACKUP_SEMANTICS
		// to work with directories.
		attrs |= FILE_FLAG_BACKUP_SEMANTICS
	}
	if flag&O_SYNC != 0 {
		const _FILE_FLAG_WRITE_THROUGH = 0x80000000
		attrs |= _FILE_FLAG_WRITE_THROUGH
	}
	// We don't use CREATE_ALWAYS, because when opening a file with
	// FILE_ATTRIBUTE_READONLY these will replace an existing file
	// with a new, read-only one. See https://go.dev/issue/38225.
	//
	// Instead, we ftruncate the file after opening when O_TRUNC is set.
	var createmode uint32
	switch {
	case flag&(O_CREAT|O_EXCL) == (O_CREAT | O_EXCL):
		createmode = CREATE_NEW
		attrs |= FILE_FLAG_OPEN_REPARSE_POINT // don't follow symlinks
	case flag&O_CREAT == O_CREAT:
		createmode = OPEN_ALWAYS
	default:
		createmode = OPEN_EXISTING
	}
	h, err := createFile(namep, access, sharemode, sa, createmode, attrs, 0)
	if h == InvalidHandle {
		if err == ERROR_ACCESS_DENIED && (attrs&FILE_FLAG_BACKUP_SEMANTICS == 0) {
			// We should return EISDIR when we are trying to open a directory with write access.
			fa, e1 := GetFileAttributes(namep)
			if e1 == nil && fa&FILE_ATTRIBUTE_DIRECTORY != 0 {
				err = EISDIR
			}
		}
		return h, err
	}
	// Ignore O_TRUNC if the file has just been created.
	if flag&O_TRUNC == O_TRUNC &&
		(createmode == OPEN_EXISTING || (createmode == OPEN_ALWAYS && err == ERROR_ALREADY_EXISTS)) {
		err = Ftruncate(h, 0)
		if err != nil {
			CloseHandle(h)
			return InvalidHandle, err
		}
	}
	return h, nil
}

func Read(fd Handle, p []byte) (n int, err error) {
	var done uint32
	e := ReadFile(fd, p, &done, nil)
	if e != nil {
		if e == ERROR_BROKEN_PIPE {
			// NOTE(brainman): work around ERROR_BROKEN_PIPE is returned on reading EOF from stdin
			return 0, nil
		}
		return 0, e
	}
	return int(done), nil
}

func Write(fd Handle, p []byte) (n int, err error) {
	var done uint32
	e := WriteFile(fd, p, &done, nil)
	if e != nil {
		return 0, e
	}
	return int(done), nil
}

func ReadFile(fd Handle, p []byte, done *uint32, overlapped *Overlapped) error {
	err := readFile(fd, p, done, overlapped)
	if race.Enabled {
		if *done > 0 {
			race.WriteRange(unsafe.Pointer(&p[0]), int(*done))
		}
		race.Acquire(unsafe.Pointer(&ioSync))
	}
	if msan.Enabled && *done > 0 {
		msan.Write(unsafe.Pointer(&p[0]), uintptr(*done))
	}
	if asan.Enabled && *done > 0 {
		asan.Write(unsafe.Pointer(&p[0]), uintptr(*done))
	}
	return err
}

func WriteFile(fd Handle, p []byte, done *uint32, overlapped *Overlapped) error {
	if race.Enabled {
		race.ReleaseMerge(unsafe.Pointer(&ioSync))
	}
	err := writeFile(fd, p, done, overlapped)
	if race.Enabled && *done > 0 {
		race.ReadRange(unsafe.Pointer(&p[0]), int(*done))
	}
	if msan.Enabled && *done > 0 {
		msan.Read(unsafe.Pointer(&p[0]), uintptr(*done))
	}
	if asan.Enabled && *done > 0 {
		asan.Read(unsafe.Pointer(&p[0]), uintptr(*done))
	}
	return err
}

var ioSync int64

var procSetFilePointerEx = modkernel32.NewProc("SetFilePointerEx")

const ptrSize = unsafe.Sizeof(uintptr(0))

// setFilePointerEx calls SetFilePointerEx.
// See https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-setfilepointerex
func setFilePointerEx(handle Handle, distToMove int64, newFilePointer *int64, whence uint32) error {
	var e1 Errno
	if unsafe.Sizeof(uintptr(0)) == 8 {
		_, _, e1 = Syscall6(procSetFilePointerEx.Addr(), 4, uintptr(handle), uintptr(distToMove), uintptr(unsafe.Pointer(newFilePointer)), uintptr(whence), 0, 0)
	} else {
		// Different 32-bit systems disgaree about whether distToMove starts 8-byte aligned.
		switch runtime.GOARCH {
		default:
			panic("unsupported 32-bit architecture")
		case "386":
			// distToMove is a LARGE_INTEGER, which is 64 bits.
			_, _, e1 = Syscall6(procSetFilePointerEx.Addr(), 5, uintptr(handle), uintptr(distToMove), uintptr(distToMove>>32), uintptr(unsafe.Pointer(newFilePointer)), uintptr(whence), 0)
		case "arm":
			// distToMove must be 8-byte aligned per ARM calling convention
			// https://docs.microsoft.com/en-us/cpp/build/overview-of-arm-abi-conventions#stage-c-assignment-of-arguments-to-registers-and-stack
			_, _, e1 = Syscall6(procSetFilePointerEx.Addr(), 6, uintptr(handle), 0, uintptr(distToMove), uintptr(distToMove>>32), uintptr(unsafe.Pointer(newFilePointer)), uintptr(whence))
		}
	}
	if e1 != 0 {
		return errnoErr(e1)
	}
	return nil
}

func Seek(fd Handle, offset int64, whence int) (newoffset int64, err error) {
	var w uint32
	switch whence {
	case 0:
		w = FILE_BEGIN
	case 1:
		w = FILE_CURRENT
	case 2:
		w = FILE_END
	}
	err = setFilePointerEx(fd, offset, &newoffset, w)
	return
}

func Close(fd Handle) (err error) {
	return CloseHandle(fd)
}

var (
	Stdin  = getStdHandle(STD_INPUT_HANDLE)
	Stdout = getStdHandle(STD_OUTPUT_HANDLE)
	Stderr = getStdHandle(STD_ERROR_HANDLE)
)

func getStdHandle(h int) (fd Handle) {
	r, _ := GetStdHandle(h)
	return r
}

const ImplementsGetwd = true

func Getwd() (wd string, err error) {
	b := make([]uint16, 300)
	// The path of the current directory may not fit in the initial 300-word
	// buffer when long path support is enabled. The current directory may also
	// change between subsequent calls of GetCurrentDirectory. As a result, we
	// need to retry the call in a loop until the current directory fits, each
	// time with a bigger buffer.
	for {
		n, e := GetCurrentDirectory(uint32(len(b)), &b[0])
		if e != nil {
			return "", e
		}
		if int(n) <= len(b) {
			return UTF16ToString(b[:n]), nil
		}
		b = make([]uint16, n)
	}
}

func Chdir(path string) (err error) {
	pathp, err := UTF16PtrFromString(path)
	if err != nil {
		return err
	}
	return SetCurrentDirectory(pathp)
}

func Mkdir(path string, mode uint32) (err error) {
	pathp, err := UTF16PtrFromString(path)
	if err != nil {
		return err
	}
	return CreateDirectory(pathp, nil)
}

func Rmdir(path string) (err error) {
	pathp, err := UTF16PtrFromString(path)
	if err != nil {
		return err
	}
	return RemoveDirectory(pathp)
}

func Unlink(path string) (err error) {
	pathp, err := UTF16PtrFromString(path)
	if err != nil {
		return err
	}
	return DeleteFile(pathp)
}

func Rename(oldpath, newpath string) (err error) {
	from, err := UTF16PtrFromString(oldpath)
	if err != nil {
		return err
	}
	to, err := UTF16PtrFromString(newpath)
	if err != nil {
		return err
	}
	return MoveFile(from, to)
}

func ComputerName() (name string, err error) {
	var n uint32 = MAX_COMPUTERNAME_LENGTH + 1
	b := make([]uint16, n)
	e := GetComputerName(&b[0], &n)
	if e != nil {
		return "", e
	}
	return UTF16ToString(b[:n]), nil
}

func Ftruncate(fd Handle, length int64) (err error) {
	type _FILE_END_OF_FILE_INFO struct {
		EndOfFile int64
	}
	const FileEndOfFileInfo = 6
	var info _FILE_END_OF_FILE_INFO
	info.EndOfFile = length
	return setFileInformationByHandle(fd, FileEndOfFileInfo, unsafe.Pointer(&info), uint32(unsafe.Sizeof(info)))
}

func Gettimeofday(tv *Timeval) (err error) {
	var ft Filetime
	GetSystemTimeAsFileTime(&ft)
	*tv = NsecToTimeval(ft.Nanoseconds())
	return nil
}

func Pipe(p []Handle) (err error) {
	if len(p) != 2 {
		return EINVAL
	}
	var r, w Handle
	e := CreatePipe(&r, &w, makeInheritSa(), 0)
	if e != nil {
		return e
	}
	p[0] = r
	p[1] = w
	return nil
}

func Utimes(path string, tv []Timeval) (err error) {
	if len(tv) != 2 {
		return EINVAL
	}
	pathp, e := UTF16PtrFromString(path)
	if e != nil {
		return e
	}
	h, e := CreateFile(pathp,
		FILE_WRITE_ATTRIBUTES, FILE_SHARE_WRITE, nil,
		OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0)
	if e != nil {
		return e
	}
	defer Close(h)
	a := Filetime{}
	w := Filetime{}
	if tv[0].Nanoseconds() != 0 {
		a = NsecToFiletime(tv[0].Nanoseconds())
	}
	if tv[0].Nanoseconds() != 0 {
		w = NsecToFiletime(tv[1].Nanoseconds())
	}
	return SetFileTime(h, nil, &a, &w)
}

// This matches the value in os/file_windows.go.
const _UTIME_OMIT = -1

func UtimesNano(path string, ts []Timespec) (err error) {
	if len(ts) != 2 {
		return EINVAL
	}
	pathp, e := UTF16PtrFromString(path)
	if e != nil {
		return e
	}
	h, e := CreateFile(pathp,
		FILE_WRITE_ATTRIBUTES, FILE_SHARE_WRITE, nil,
		OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0)
	if e != nil {
		return e
	}
	defer Close(h)
	a := Filetime{}
	w := Filetime{}
	if ts[0].Nsec != _UTIME_OMIT {
		a = NsecToFiletime(TimespecToNsec(ts[0]))
	}
	if ts[1].Nsec != _UTIME_OMIT {
		w = NsecToFiletime(TimespecToNsec(ts[1]))
	}
	return SetFileTime(h, nil, &a, &w)
}

func Fsync(fd Handle) (err error) {
	return FlushFileBuffers(fd)
}

func Chmod(path string, mode uint32) (err error) {
	p, e := UTF16PtrFromString(path)
	if e != nil {
		return e
	}
	attrs, e := GetFileAttributes(p)
	if e != nil {
		return e
	}
	if mode&S_IWRITE != 0 {
		attrs &^= FILE_ATTRIBUTE_READONLY
	} else {
		attrs |= FILE_ATTRIBUTE_READONLY
	}
	return SetFileAttributes(p, attrs)
}

func LoadCancelIoEx() error {
	return procCancelIoEx.Find()
}

func LoadSetFileCompletionNotificationModes() error {
	return procSetFileCompletionNotificationModes.Find()
}

// net api calls

const socket_error = uintptr(^uint32(0))

//sys	WSAStartup(verreq uint32, data *WSAData) (sockerr error) = ws2_32.WSAStartup
//sys	WSACleanup() (err error) [failretval==socket_error] = ws2_32.WSACleanup
//sys	WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) [failretval==socket_error] = ws2_32.WSAIoctl
//sys	socket(af int32, typ int32, protocol int32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.socket
//sys	Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) [failretval==socket_error] = ws2_32.setsockopt
//sys	Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) [failretval==socket_error] = ws2_32.getsockopt
//sys	bind(s Handle, name unsafe.Pointer, namelen int32) (err error) [failretval==socket_error] = ws2_32.bind
//sys	connect(s Handle, name unsafe.Pointer, namelen int32) (err error) [failretval==socket_error] = ws2_32.connect
//sys	getsockname(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) [failretval==socket_error] = ws2_32.getsockname
//sys	getpeername(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) [failretval==socket_error] = ws2_32.getpeername
//sys	listen(s Handle, backlog int32) (err error) [failretval==socket_error] = ws2_32.listen
//sys	shutdown(s Handle, how int32) (err error) [failretval==socket_error] = ws2_32.shutdown
//sys	Closesocket(s Handle) (err error) [failretval==socket_error] = ws2_32.closesocket
//sys	AcceptEx(ls Handle, as Handle, buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, recvd *uint32, overlapped *Overlapped) (err error) = mswsock.AcceptEx
//sys	GetAcceptExSockaddrs(buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, lrsa **RawSockaddrAny, lrsalen *int32, rrsa **RawSockaddrAny, rrsalen *int32) = mswsock.GetAcceptExSockaddrs
//sys	WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSARecv
//sys	WSASend(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSASend
//sys	WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32,  from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSARecvFrom
//sys	WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32,  overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSASendTo
//sys	GetHostByName(name string) (h *Hostent, err error) [failretval==nil] = ws2_32.gethostbyname
//sys	GetServByName(name string, proto string) (s *Servent, err error) [failretval==nil] = ws2_32.getservbyname
//sys	Ntohs(netshort uint16) (u uint16) = ws2_32.ntohs
//sys	GetProtoByName(name string) (p *Protoent, err error) [failretval==nil] = ws2_32.getprotobyname
//sys	DnsQuery(name string, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) = dnsapi.DnsQuery_W
//sys	DnsRecordListFree(rl *DNSRecord, freetype uint32) = dnsapi.DnsRecordListFree
//sys	DnsNameCompare(name1 *uint16, name2 *uint16) (same bool) = dnsapi.DnsNameCompare_W
//sys	GetAddrInfoW(nodename *uint16, servicename *uint16, hints *AddrinfoW, result **AddrinfoW) (sockerr error) = ws2_32.GetAddrInfoW
//sys	FreeAddrInfoW(addrinfo *AddrinfoW) = ws2_32.FreeAddrInfoW
//sys	GetIfEntry(pIfRow *MibIfRow) (errcode error) = iphlpapi.GetIfEntry
//sys	GetAdaptersInfo(ai *IpAdapterInfo, ol *uint32) (errcode error) = iphlpapi.GetAdaptersInfo
//sys	SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error) = kernel32.SetFileCompletionNotificationModes
//sys	WSAEnumProtocols(protocols *int32, protocolBuffer *WSAProtocolInfo, bufferLength *uint32) (n int32, err error) [failretval==-1] = ws2_32.WSAEnumProtocolsW

// For testing: clients can set this flag to force
// creation of IPv6 sockets to return [EAFNOSUPPORT].
var SocketDisableIPv6 bool

type RawSockaddrInet4 struct {
	Family uint16
	Port   uint16
	Addr   [4]byte /* in_addr */
	Zero   [8]uint8
}

type RawSockaddrInet6 struct {
	Family   uint16
	Port     uint16
	Flowinfo uint32
	Addr     [16]byte /* in6_addr */
	Scope_id uint32
}

type RawSockaddr struct {
	Family uint16
	Data   [14]int8
}

type RawSockaddrAny struct {
	Addr RawSockaddr
	Pad  [100]int8
}

type Sockaddr interface {
	sockaddr() (ptr unsafe.Pointer, len int32, err error) // lowercase; only we can define Sockaddrs
}

type SockaddrInet4 struct {
	Port int
	Addr [4]byte
	raw  RawSockaddrInet4
}

func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, int32, error) {
	if sa.Port < 0 || sa.Port > 0xFFFF {
		return nil, 0, EINVAL
	}
	sa.raw.Family = AF_INET
	p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
	p[0] = byte(sa.Port >> 8)
	p[1] = byte(sa.Port)
	sa.raw.Addr = sa.Addr
	return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil
}

type SockaddrInet6 struct {
	Port   int
	ZoneId uint32
	Addr   [16]byte
	raw    RawSockaddrInet6
}

func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, int32, error) {
	if sa.Port < 0 || sa.Port > 0xFFFF {
		return nil, 0, EINVAL
	}
	sa.raw.Family = AF_INET6
	p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port))
	p[0] = byte(sa.Port >> 8)
	p[1] = byte(sa.Port)
	sa.raw.Scope_id = sa.ZoneId
	sa.raw.Addr = sa.Addr
	return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil
}

type RawSockaddrUnix struct {
	Family uint16
	Path   [UNIX_PATH_MAX]int8
}

type SockaddrUnix struct {
	Name string
	raw  RawSockaddrUnix
}

func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, int32, error) {
	name := sa.Name
	n := len(name)
	if n > len(sa.raw.Path) {
		return nil, 0, EINVAL
	}
	// Abstract addresses start with NUL.
	// '@' is also a valid way to specify abstract addresses.
	isAbstract := n > 0 && (name[0] == '@' || name[0] == '\x00')

	// Non-abstract named addresses are NUL terminated.
	// The length can't use the full capacity as we need to add NUL.
	if n == len(sa.raw.Path) && !isAbstract {
		return nil, 0, EINVAL
	}
	sa.raw.Family = AF_UNIX
	for i := 0; i < n; i++ {
		sa.raw.Path[i] = int8(name[i])
	}
	// Length is family + name (+ NUL if non-abstract).
	// Family is of type uint16 (2 bytes).
	sl := int32(2 + n)
	if isAbstract {
		// Abstract addresses are not NUL terminated.
		// We rewrite '@' prefix to NUL here.
		sa.raw.Path[0] = 0
	} else if n > 0 {
		// Add NUL for non-abstract named addresses.
		sl++
	}

	return unsafe.Pointer(&sa.raw), sl, nil
}

func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, error) {
	switch rsa.Addr.Family {
	case AF_UNIX:
		pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa))
		sa := new(SockaddrUnix)
		if pp.Path[0] == 0 {
			// "Abstract" Unix domain socket.
			// Rewrite leading NUL as @ for textual display.
			// (This is the standard convention.)
			// Not friendly to overwrite in place,
			// but the callers below don't care.
			pp.Path[0] = '@'
		}

		// Assume path ends at NUL.
		// This is not technically the Linux semantics for
		// abstract Unix domain sockets--they are supposed
		// to be uninterpreted fixed-size binary blobs--but
		// everyone uses this convention.
		n := 0
		for n < len(pp.Path) && pp.Path[n] != 0 {
			n++
		}
		sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
		return sa, nil

	case AF_INET:
		pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa))
		sa := new(SockaddrInet4)
		p := (*[2]byte)(unsafe.Pointer(&pp.Port))
		sa.Port = int(p[0])<<8 + int(p[1])
		sa.Addr = pp.Addr
		return sa, nil

	case AF_INET6:
		pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa))
		sa := new(SockaddrInet6)
		p := (*[2]byte)(unsafe.Pointer(&pp.Port))
		sa.Port = int(p[0])<<8 + int(p[1])
		sa.ZoneId = pp.Scope_id
		sa.Addr = pp.Addr
		return sa, nil
	}
	return nil, EAFNOSUPPORT
}

func Socket(domain, typ, proto int) (fd Handle, err error) {
	if domain == AF_INET6 && SocketDisableIPv6 {
		return InvalidHandle, EAFNOSUPPORT
	}
	return socket(int32(domain), int32(typ), int32(proto))
}

func SetsockoptInt(fd Handle, level, opt int, value int) (err error) {
	v := int32(value)
	return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&v)), int32(unsafe.Sizeof(v)))
}

func Bind(fd Handle, sa Sockaddr) (err error) {
	ptr, n, err := sa.sockaddr()
	if err != nil {
		return err
	}
	return bind(fd, ptr, n)
}

func Connect(fd Handle, sa Sockaddr) (err error) {
	ptr, n, err := sa.sockaddr()
	if err != nil {
		return err
	}
	return connect(fd, ptr, n)
}

func Getsockname(fd Handle) (sa Sockaddr, err error) {
	var rsa RawSockaddrAny
	l := int32(unsafe.Sizeof(rsa))
	if err = getsockname(fd, &rsa, &l); err != nil {
		return
	}
	return rsa.Sockaddr()
}

func Getpeername(fd Handle) (sa Sockaddr, err error) {
	var rsa RawSockaddrAny
	l := int32(unsafe.Sizeof(rsa))
	if err = getpeername(fd, &rsa, &l); err != nil {
		return
	}
	return rsa.Sockaddr()
}

func Listen(s Handle, n int) (err error) {
	return listen(s, int32(n))
}

func Shutdown(fd Handle, how int) (err error) {
	return shutdown(fd, int32(how))
}

func WSASendto(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to Sockaddr, overlapped *Overlapped, croutine *byte) (err error) {
	var rsa unsafe.Pointer
	var len int32
	if to != nil {
		rsa, len, err = to.sockaddr()
		if err != nil {
			return err
		}
	}
	r1, _, e1 := Syscall9(procWSASendTo.Addr(), 9, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(rsa)), uintptr(len), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
	if r1 == socket_error {
		if e1 != 0 {
			err = errnoErr(e1)
		} else {
			err = EINVAL
		}
	}
	return err
}

func wsaSendtoInet4(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *SockaddrInet4, overlapped *Overlapped, croutine *byte) (err error) {
	rsa, len, err := to.sockaddr()
	if err != nil {
		return err
	}
	r1, _, e1 := Syscall9(procWSASendTo.Addr(), 9, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(rsa)), uintptr(len), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
	if r1 == socket_error {
		if e1 != 0 {
			err = errnoErr(e1)
		} else {
			err = EINVAL
		}
	}
	return err
}

func wsaSendtoInet6(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *SockaddrInet6, overlapped *Overlapped, croutine *byte) (err error) {
	rsa, len, err := to.sockaddr()
	if err != nil {
		return err
	}
	r1, _, e1 := Syscall9(procWSASendTo.Addr(), 9, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(rsa)), uintptr(len), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)))
	if r1 == socket_error {
		if e1 != 0 {
			err = errnoErr(e1)
		} else {
			err = EINVAL
		}
	}
	return err
}

func LoadGetAddrInfo() error {
	return procGetAddrInfoW.Find()
}

var connectExFunc struct {
	once sync.Once
	addr uintptr
	err  error
}

func LoadConnectEx() error {
	connectExFunc.once.Do(func() {
		var s Handle
		s, connectExFunc.err = Socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)
		if connectExFunc.err != nil {
			return
		}
		defer CloseHandle(s)
		var n uint32
		connectExFunc.err = WSAIoctl(s,
			SIO_GET_EXTENSION_FUNCTION_POINTER,
			(*byte)(unsafe.Pointer(&WSAID_CONNECTEX)),
			uint32(unsafe.Sizeof(WSAID_CONNECTEX)),
			(*byte)(unsafe.Pointer(&connectExFunc.addr)),
			uint32(unsafe.Sizeof(connectExFunc.addr)),
			&n, nil, 0)
	})
	return connectExFunc.err
}

func connectEx(s Handle, name unsafe.Pointer, namelen int32, sendBuf *byte, sendDataLen uint32, bytesSent *uint32, overlapped *Overlapped) (err error) {
	r1, _, e1 := Syscall9(connectExFunc.addr, 7, uintptr(s), uintptr(name), uintptr(namelen), uintptr(unsafe.Pointer(sendBuf)), uintptr(sendDataLen), uintptr(unsafe.Pointer(bytesSent)), uintptr(unsafe.Pointer(overlapped)), 0, 0)
	if r1 == 0 {
		if e1 != 0 {
			err = error(e1)
		} else {
			err = EINVAL
		}
	}
	return
}

func ConnectEx(fd Handle, sa Sockaddr, sendBuf *byte, sendDataLen uint32, bytesSent *uint32, overlapped *Overlapped) error {
	err := LoadConnectEx()
	if err != nil {
		return errorspkg.New("failed to find ConnectEx: " + err.Error())
	}
	ptr, n, err := sa.sockaddr()
	if err != nil {
		return err
	}
	return connectEx(fd, ptr, n, sendBuf, sendDataLen, bytesSent, overlapped)
}

// Invented structures to support what package os expects.
type Rusage struct {
	CreationTime Filetime
	ExitTime     Filetime
	KernelTime   Filetime
	UserTime     Filetime
}

type WaitStatus struct {
	ExitCode uint32
}

func (w WaitStatus) Exited() bool { return true }

func (w WaitStatus) ExitStatus() int { return int(w.ExitCode) }

func (w WaitStatus) Signal() Signal { return -1 }

func (w WaitStatus) CoreDump() bool { return false }

func (w WaitStatus) Stopped() bool { return false }

func (w WaitStatus) Continued() bool { return false }

func (w WaitStatus) StopSignal() Signal { return -1 }

func (w WaitStatus) Signaled() bool { return false }

func (w WaitStatus) TrapCause() int { return -1 }

// Timespec is an invented structure on Windows, but here for
// consistency with the syscall package for other operating systems.
type Timespec struct {
	Sec  int64
	Nsec int64
}

func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }

func NsecToTimespec(nsec int64) (ts Timespec) {
	ts.Sec = nsec / 1e9
	ts.Nsec = nsec % 1e9
	return
}

// TODO(brainman): fix all needed for net

func Accept(fd Handle) (nfd Handle, sa Sockaddr, err error) { return 0, nil, EWINDOWS }
func Recvfrom(fd Handle, p []byte, flags int) (n int, from Sockaddr, err error) {
	return 0, nil, EWINDOWS
}
func Sendto(fd Handle, p []byte, flags int, to Sockaddr) (err error)       { return EWINDOWS }
func SetsockoptTimeval(fd Handle, level, opt int, tv *Timeval) (err error) { return EWINDOWS }

// The Linger struct is wrong but we only noticed after Go 1.
// sysLinger is the real system call structure.

// BUG(brainman): The definition of Linger is not appropriate for direct use
// with Setsockopt and Getsockopt.
// Use SetsockoptLinger instead.

type Linger struct {
	Onoff  int32
	Linger int32
}

type sysLinger struct {
	Onoff  uint16
	Linger uint16
}

type IPMreq struct {
	Multiaddr [4]byte /* in_addr */
	Interface [4]byte /* in_addr */
}

type IPv6Mreq struct {
	Multiaddr [16]byte /* in6_addr */
	Interface uint32
}

func GetsockoptInt(fd Handle, level, opt int) (int, error) {
	optval := int32(0)
	optlen := int32(unsafe.Sizeof(optval))
	err := Getsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&optval)), &optlen)
	return int(optval), err
}

func SetsockoptLinger(fd Handle, level, opt int, l *Linger) (err error) {
	sys := sysLinger{Onoff: uint16(l.Onoff), Linger: uint16(l.Linger)}
	return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&sys)), int32(unsafe.Sizeof(sys)))
}

func SetsockoptInet4Addr(fd Handle, level, opt int, value [4]byte) (err error) {
	return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&value[0])), 4)
}
func SetsockoptIPMreq(fd Handle, level, opt int, mreq *IPMreq) (err error) {
	return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(mreq)), int32(unsafe.Sizeof(*mreq)))
}
func SetsockoptIPv6Mreq(fd Handle, level, opt int, mreq *IPv6Mreq) (err error) {
	return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(mreq)), int32(unsafe.Sizeof(*mreq)))
}

func Getpid() (pid int) { return int(getCurrentProcessId()) }

func FindFirstFile(name *uint16, data *Win32finddata) (handle Handle, err error) {
	// NOTE(rsc): The Win32finddata struct is wrong for the system call:
	// the two paths are each one uint16 short. Use the correct struct,
	// a win32finddata1, and then copy the results out.
	// There is no loss of expressivity here, because the final
	// uint16, if it is used, is supposed to be a NUL, and Go doesn't need that.
	// For Go 1.1, we might avoid the allocation of win32finddata1 here
	// by adding a final Bug [2]uint16 field to the struct and then
	// adjusting the fields in the result directly.
	var data1 win32finddata1
	handle, err = findFirstFile1(name, &data1)
	if err == nil {
		copyFindData(data, &data1)
	}
	return
}

func FindNextFile(handle Handle, data *Win32finddata) (err error) {
	var data1 win32finddata1
	err = findNextFile1(handle, &data1)
	if err == nil {
		copyFindData(data, &data1)
	}
	return
}

func getProcessEntry(pid int) (*ProcessEntry32, error) {
	snapshot, err := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0)
	if err != nil {
		return nil, err
	}
	defer CloseHandle(snapshot)
	var procEntry ProcessEntry32
	procEntry.Size = uint32(unsafe.Sizeof(procEntry))
	if err = Process32First(snapshot, &procEntry); err != nil {
		return nil, err
	}
	for {
		if procEntry.ProcessID == uint32(pid) {
			return &procEntry, nil
		}
		err = Process32Next(snapshot, &procEntry)
		if err != nil {
			return nil, err
		}
	}
}

func Getppid() (ppid int) {
	pe, err := getProcessEntry(Getpid())
	if err != nil {
		return -1
	}
	return int(pe.ParentProcessID)
}

func fdpath(fd Handle, buf []uint16) ([]uint16, error) {
	const (
		FILE_NAME_NORMALIZED = 0
		VOLUME_NAME_DOS      = 0
	)
	for {
		n, err := getFinalPathNameByHandle(fd, &buf[0], uint32(len(buf)), FILE_NAME_NORMALIZED|VOLUME_NAME_DOS)
		if err == nil {
			buf = buf[:n]
			break
		}
		if err != _ERROR_NOT_ENOUGH_MEMORY {
			return nil, err
		}
		buf = append(buf, make([]uint16, n-uint32(len(buf)))...)
	}
	return buf, nil
}

func Fchdir(fd Handle) (err error) {
	var buf [MAX_PATH + 1]uint16
	path, err := fdpath(fd, buf[:])
	if err != nil {
		return err
	}
	// When using VOLUME_NAME_DOS, the path is always prefixed by "\\?\".
	// That prefix tells the Windows APIs to disable all string parsing and to send
	// the string that follows it straight to the file system.
	// Although SetCurrentDirectory and GetCurrentDirectory do support the "\\?\" prefix,
	// some other Windows APIs don't. If the prefix is not removed here, it will leak
	// to Getwd, and we don't want such a general-purpose function to always return a
	// path with the "\\?\" prefix after Fchdir is called.
	// The downside is that APIs that do support it will parse the path and try to normalize it,
	// when it's already normalized.
	if len(path) >= 4 && path[0] == '\\' && path[1] == '\\' && path[2] == '?' && path[3] == '\\' {
		path = path[4:]
	}
	return SetCurrentDirectory(&path[0])
}

// TODO(brainman): fix all needed for os
func Link(oldpath, newpath string) (err error) { return EWINDOWS }
func Symlink(path, link string) (err error)    { return EWINDOWS }

func Fchmod(fd Handle, mode uint32) (err error)        { return EWINDOWS }
func Chown(path string, uid int, gid int) (err error)  { return EWINDOWS }
func Lchown(path string, uid int, gid int) (err error) { return EWINDOWS }
func Fchown(fd Handle, uid int, gid int) (err error)   { return EWINDOWS }

func Getuid() (uid int)                  { return -1 }
func Geteuid() (euid int)                { return -1 }
func Getgid() (gid int)                  { return -1 }
func Getegid() (egid int)                { return -1 }
func Getgroups() (gids []int, err error) { return nil, EWINDOWS }

type Signal int

func (s Signal) Signal() {}

func (s Signal) String() string {
	if 0 <= s && int(s) < len(signals) {
		str := signals[s]
		if str != "" {
			return str
		}
	}
	return "signal " + itoa.Itoa(int(s))
}

func LoadCreateSymbolicLink() error {
	return procCreateSymbolicLinkW.Find()
}

// Readlink returns the destination of the named symbolic link.
func Readlink(path string, buf []byte) (n int, err error) {
	fd, err := CreateFile(StringToUTF16Ptr(path), GENERIC_READ, 0, nil, OPEN_EXISTING,
		FILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKUP_SEMANTICS, 0)
	if err != nil {
		return -1, err
	}
	defer CloseHandle(fd)

	rdbbuf := make([]byte, MAXIMUM_REPARSE_DATA_BUFFER_SIZE)
	var bytesReturned uint32
	err = DeviceIoControl(fd, FSCTL_GET_REPARSE_POINT, nil, 0, &rdbbuf[0], uint32(len(rdbbuf)), &bytesReturned, nil)
	if err != nil {
		return -1, err
	}

	rdb := (*reparseDataBuffer)(unsafe.Pointer(&rdbbuf[0]))
	var s string
	switch rdb.ReparseTag {
	case IO_REPARSE_TAG_SYMLINK:
		data := (*symbolicLinkReparseBuffer)(unsafe.Pointer(&rdb.reparseBuffer))
		p := (*[0xffff]uint16)(unsafe.Pointer(&data.PathBuffer[0]))
		s = UTF16ToString(p[data.SubstituteNameOffset/2 : (data.SubstituteNameOffset+data.SubstituteNameLength)/2])
		if data.Flags&_SYMLINK_FLAG_RELATIVE == 0 {
			if len(s) >= 4 && s[:4] == `\??\` {
				s = s[4:]
				switch {
				case len(s) >= 2 && s[1] == ':': // \??\C:\foo\bar
					// do nothing
				case len(s) >= 4 && s[:4] == `UNC\`: // \??\UNC\foo\bar
					s = `\\` + s[4:]
				default:
					// unexpected; do nothing
				}
			} else {
				// unexpected; do nothing
			}
		}
	case _IO_REPARSE_TAG_MOUNT_POINT:
		data := (*mountPointReparseBuffer)(unsafe.Pointer(&rdb.reparseBuffer))
		p := (*[0xffff]uint16)(unsafe.Pointer(&data.PathBuffer[0]))
		s = UTF16ToString(p[data.SubstituteNameOffset/2 : (data.SubstituteNameOffset+data.SubstituteNameLength)/2])
		if len(s) >= 4 && s[:4] == `\??\` { // \??\C:\foo\bar
			s = s[4:]
		} else {
			// unexpected; do nothing
		}
	default:
		// the path is not a symlink or junction but another type of reparse
		// point
		return -1, ENOENT
	}
	n = copy(buf, []byte(s))

	return n, nil
}

// Deprecated: CreateIoCompletionPort has the wrong function signature. Use x/sys/windows.CreateIoCompletionPort.
func CreateIoCompletionPort(filehandle Handle, cphandle Handle, key uint32, threadcnt uint32) (Handle, error) {
	return createIoCompletionPort(filehandle, cphandle, uintptr(key), threadcnt)
}

// Deprecated: GetQueuedCompletionStatus has the wrong function signature. Use x/sys/windows.GetQueuedCompletionStatus.
func GetQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uint32, overlapped **Overlapped, timeout uint32) error {
	var ukey uintptr
	var pukey *uintptr
	if key != nil {
		ukey = uintptr(*key)
		pukey = &ukey
	}
	err := getQueuedCompletionStatus(cphandle, qty, pukey, overlapped, timeout)
	if key != nil {
		*key = uint32(ukey)
		if uintptr(*key) != ukey && err == nil {
			err = errorspkg.New("GetQueuedCompletionStatus returned key overflow")
		}
	}
	return err
}

// Deprecated: PostQueuedCompletionStatus has the wrong function signature. Use x/sys/windows.PostQueuedCompletionStatus.
func PostQueuedCompletionStatus(cphandle Handle, qty uint32, key uint32, overlapped *Overlapped) error {
	return postQueuedCompletionStatus(cphandle, qty, uintptr(key), overlapped)
}

// newProcThreadAttributeList allocates a new [procThreadAttributeListContainer], with the requested maximum number of attributes.
func newProcThreadAttributeList(maxAttrCount uint32) (*procThreadAttributeListContainer, error) {
	var size uintptr
	err := initializeProcThreadAttributeList(nil, maxAttrCount, 0, &size)
	if err != ERROR_INSUFFICIENT_BUFFER {
		if err == nil {
			return nil, errorspkg.New("unable to query buffer size from InitializeProcThreadAttributeList")
		}
		return nil, err
	}
	const LMEM_FIXED = 0
	alloc, err := localAlloc(LMEM_FIXED, uint32(size))
	if err != nil {
		return nil, err
	}
	// size is guaranteed to be ≥1 by InitializeProcThreadAttributeList.
	al := &procThreadAttributeListContainer{data: (*_PROC_THREAD_ATTRIBUTE_LIST)(unsafe.Pointer(alloc))}
	err = initializeProcThreadAttributeList(al.data, maxAttrCount, 0, &size)
	if err != nil {
		return nil, err
	}
	al.pointers = make([]unsafe.Pointer, 0, maxAttrCount)
	return al, err
}

// Update modifies the ProcThreadAttributeList using UpdateProcThreadAttribute.
func (al *procThreadAttributeListContainer) update(attribute uintptr, value unsafe.Pointer, size uintptr) error {
	al.pointers = append(al.pointers, value)
	return updateProcThreadAttribute(al.data, 0, attribute, value, size, nil, nil)
}

// Delete frees ProcThreadAttributeList's resources.
func (al *procThreadAttributeListContainer) delete() {
	deleteProcThreadAttributeList(al.data)
	LocalFree(Handle(unsafe.Pointer(al.data)))
	al.data = nil
	al.pointers = nil
}

// List returns the actual ProcThreadAttributeList to be passed to StartupInfoEx.
func (al *procThreadAttributeListContainer) list() *_PROC_THREAD_ATTRIBUTE_LIST {
	return al.data
}

// RegEnumKeyEx enumerates the subkeys of an open registry key.
// Each call retrieves information about one subkey. name is
// a buffer that should be large enough to hold the name of the
// subkey plus a null terminating character. nameLen is its
// length. On return, nameLen will contain the actual length of the
// subkey.
//
// Should name not be large enough to hold the subkey, this function
// will return ERROR_MORE_DATA, and must be called again with an
// appropriately sized buffer.
//
// reserved must be nil. class and classLen behave like name and nameLen
// but for the class of the subkey, except that they are optional.
// lastWriteTime, if not nil, will be populated with the time the subkey
// was last written.
//
// The caller must enumerate all subkeys in order. That is
// RegEnumKeyEx must be called with index starting at 0, incrementing
// the index until the function returns ERROR_NO_MORE_ITEMS, or with
// the index of the last subkey (obtainable from RegQueryInfoKey),
// decrementing until index 0 is enumerated.
//
// Successive calls to this API must happen on the same OS thread,
// so call [runtime.LockOSThread] before calling this function.
func RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) {
	return regEnumKeyEx(key, index, name, nameLen, reserved, class, classLen, lastWriteTime)
}

func GetStartupInfo(startupInfo *StartupInfo) error {
	getStartupInfo(startupInfo)
	return nil
}

func CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile int32) (handle Handle, err error) {
	handle, err = createFile(name, access, mode, sa, createmode, attrs, templatefile)
	if handle != InvalidHandle {
		// CreateFileW can return ERROR_ALREADY_EXISTS with a valid handle.
		// We only want to return an error if the handle is invalid.
		err = nil
	}
	return handle, err
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Dec 2025 9.30 PM
root / root
0755
js
--
16 Dec 2025 9.30 PM
root / root
0755
asm9_unix2_amd64.s
1.188 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_aix_ppc64.s
0.527 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_darwin_amd64.s
2.931 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_darwin_arm64.s
2.829 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_freebsd_arm.s
2.96 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_freebsd_arm64.s
2.795 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_freebsd_riscv64.s
2.764 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_386.s
3.084 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_amd64.s
1.327 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_arm.s
1.766 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_arm64.s
0.895 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_loong64.s
0.925 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_mips64x.s
0.962 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_mipsx.s
1.746 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_ppc64x.s
0.892 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_riscv64.s
0.841 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_linux_s390x.s
2.151 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_netbsd_arm.s
2.849 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_netbsd_arm64.s
2.885 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_openbsd_386.s
1.038 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_openbsd_amd64.s
1.041 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_openbsd_arm.s
1.038 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_openbsd_arm64.s
1.041 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_openbsd_mips64.s
2.846 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_openbsd_ppc64.s
1.041 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_openbsd_riscv64.s
1.043 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_plan9_386.s
3.141 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_plan9_amd64.s
3.355 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_plan9_arm.s
3.249 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_solaris_amd64.s
1.802 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_unix_386.s
2.735 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_unix_amd64.s
2.15 KB
4 Dec 2025 6.06 PM
root / root
0644
badlinkname_unix.go
0.591 KB
4 Dec 2025 6.06 PM
root / root
0644
bpf_bsd.go
4.034 KB
4 Dec 2025 6.06 PM
root / root
0644
const_plan9.go
1.359 KB
4 Dec 2025 6.06 PM
root / root
0644
dir_plan9.go
5.242 KB
4 Dec 2025 6.06 PM
root / root
0644
dirent.go
2.407 KB
4 Dec 2025 6.06 PM
root / root
0644
dll_windows.go
7.733 KB
4 Dec 2025 6.06 PM
root / root
0644
env_unix.go
2.579 KB
4 Dec 2025 6.06 PM
root / root
0644
env_windows.go
1.964 KB
4 Dec 2025 6.06 PM
root / root
0644
errors_plan9.go
1.609 KB
4 Dec 2025 6.06 PM
root / root
0644
exec_bsd.go
8.097 KB
4 Dec 2025 6.06 PM
root / root
0644
exec_freebsd.go
8.58 KB
4 Dec 2025 6.06 PM
root / root
0644
exec_libc.go
8.314 KB
4 Dec 2025 6.06 PM
root / root
0644
exec_libc2.go
8.337 KB
4 Dec 2025 6.06 PM
root / root
0644
exec_linux.go
27.037 KB
4 Dec 2025 6.06 PM
root / root
0644
exec_plan9.go
13.262 KB
4 Dec 2025 6.06 PM
root / root
0644
exec_unix.go
8.732 KB
4 Dec 2025 6.06 PM
root / root
0644
exec_windows.go
10.211 KB
4 Dec 2025 6.06 PM
root / root
0644
flock_aix.go
0.557 KB
4 Dec 2025 6.06 PM
root / root
0644
flock_bsd.go
0.464 KB
4 Dec 2025 6.06 PM
root / root
0644
flock_linux.go
0.632 KB
4 Dec 2025 6.06 PM
root / root
0644
flock_linux_32bit.go
0.411 KB
4 Dec 2025 6.06 PM
root / root
0644
forkpipe.go
0.59 KB
4 Dec 2025 6.06 PM
root / root
0644
forkpipe2.go
2.604 KB
4 Dec 2025 6.06 PM
root / root
0644
fs_js.go
11.322 KB
4 Dec 2025 6.06 PM
root / root
0644
fs_wasip1.go
24.118 KB
4 Dec 2025 6.06 PM
root / root
0644
linkname_bsd.go
0.416 KB
4 Dec 2025 6.06 PM
root / root
0644
linkname_darwin.go
0.457 KB
4 Dec 2025 6.06 PM
root / root
0644
linkname_libc.go
0.296 KB
4 Dec 2025 6.06 PM
root / root
0644
linkname_openbsd.go
0.318 KB
4 Dec 2025 6.06 PM
root / root
0644
linkname_unix.go
0.52 KB
4 Dec 2025 6.06 PM
root / root
0644
lsf_linux.go
2.123 KB
4 Dec 2025 6.06 PM
root / root
0644
mkall.sh
14.594 KB
4 Dec 2025 6.06 PM
root / root
0755
mkasm.go
1.885 KB
4 Dec 2025 6.06 PM
root / root
0644
mkerrors.sh
10.711 KB
4 Dec 2025 6.06 PM
root / root
0755
mkpost.go
2.279 KB
4 Dec 2025 6.06 PM
root / root
0644
mksyscall.pl
10.272 KB
4 Dec 2025 6.06 PM
root / root
0755
mksyscall_libc.pl
8.016 KB
4 Dec 2025 6.06 PM
root / root
0755
mksyscall_windows.go
1.988 KB
4 Dec 2025 6.06 PM
root / root
0644
mksysctl_openbsd.pl
5.039 KB
4 Dec 2025 6.06 PM
root / root
0755
mksysnum_dragonfly.pl
0.846 KB
4 Dec 2025 6.06 PM
root / root
0755
mksysnum_freebsd.pl
1.348 KB
4 Dec 2025 6.06 PM
root / root
0755
mksysnum_linux.pl
1.262 KB
4 Dec 2025 6.06 PM
root / root
0755
mksysnum_netbsd.pl
1.011 KB
4 Dec 2025 6.06 PM
root / root
0755
mksysnum_openbsd.pl
0.852 KB
4 Dec 2025 6.06 PM
root / root
0755
mksysnum_plan9.sh
0.448 KB
4 Dec 2025 6.06 PM
root / root
0755
net.go
1.193 KB
4 Dec 2025 6.06 PM
root / root
0644
net_fake.go
0.862 KB
4 Dec 2025 6.06 PM
root / root
0644
net_js.go
1.384 KB
4 Dec 2025 6.06 PM
root / root
0644
net_wasip1.go
1.776 KB
4 Dec 2025 6.06 PM
root / root
0644
netlink_linux.go
4.771 KB
4 Dec 2025 6.06 PM
root / root
0644
os_wasip1.go
0.246 KB
4 Dec 2025 6.06 PM
root / root
0644
pwd_plan9.go
2.271 KB
4 Dec 2025 6.06 PM
root / root
0644
rlimit.go
1.904 KB
4 Dec 2025 6.06 PM
root / root
0644
rlimit_darwin.go
0.579 KB
4 Dec 2025 6.06 PM
root / root
0644
rlimit_stub.go
0.33 KB
4 Dec 2025 6.06 PM
root / root
0644
route_bsd.go
9.104 KB
4 Dec 2025 6.06 PM
root / root
0644
route_darwin.go
2.01 KB
4 Dec 2025 6.06 PM
root / root
0644
route_dragonfly.go
2.613 KB
4 Dec 2025 6.06 PM
root / root
0644
route_freebsd.go
2.673 KB
4 Dec 2025 6.06 PM
root / root
0644
route_freebsd_32bit.go
1.14 KB
4 Dec 2025 6.06 PM
root / root
0644
route_freebsd_64bit.go
0.744 KB
4 Dec 2025 6.06 PM
root / root
0644
route_netbsd.go
1.429 KB
4 Dec 2025 6.06 PM
root / root
0644
route_openbsd.go
1.457 KB
4 Dec 2025 6.06 PM
root / root
0644
security_windows.go
10.011 KB
4 Dec 2025 6.06 PM
root / root
0644
setuidgid_32_linux.go
0.425 KB
4 Dec 2025 6.06 PM
root / root
0644
setuidgid_linux.go
0.411 KB
4 Dec 2025 6.06 PM
root / root
0644
sockcmsg_dragonfly.go
0.534 KB
4 Dec 2025 6.06 PM
root / root
0644
sockcmsg_linux.go
1.119 KB
4 Dec 2025 6.06 PM
root / root
0644
sockcmsg_unix.go
2.509 KB
4 Dec 2025 6.06 PM
root / root
0644
sockcmsg_unix_other.go
1.085 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall.go
3.781 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_aix.go
17.948 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_aix_ppc64.go
0.396 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_bsd.go
13.63 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_darwin.go
10.971 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_darwin_amd64.go
1.906 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_darwin_arm64.go
1.822 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_dragonfly.go
8.55 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_dragonfly_amd64.go
1.117 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_freebsd.go
8.723 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_freebsd_386.go
1.438 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_freebsd_amd64.go
1.117 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_freebsd_arm.go
1.158 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_freebsd_arm64.go
1.117 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_freebsd_riscv64.go
1.117 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_illumos.go
0.599 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_js.go
6.752 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux.go
36.403 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_386.go
8.586 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_amd64.go
4.455 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_arm.go
5.302 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_arm64.go
5.313 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_loong64.go
6.619 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_mips64x.go
5.925 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_mipsx.go
5.099 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_ppc64x.go
4.29 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_riscv64.go
5.45 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_linux_s390x.go
7.581 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_netbsd.go
7.783 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_netbsd_386.go
0.699 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_netbsd_amd64.go
0.692 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_netbsd_arm.go
0.699 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_netbsd_arm64.go
0.692 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd.go
6.968 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd1.go
0.521 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd_386.go
0.698 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd_amd64.go
0.685 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd_arm.go
0.698 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd_arm64.go
0.885 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd_libc.go
3.611 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd_mips64.go
0.947 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd_ppc64.go
0.885 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_openbsd_riscv64.go
0.885 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_plan9.go
9.372 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_solaris.go
15.664 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_solaris_amd64.go
0.476 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_solarisonly.go
0.297 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_unix.go
12.238 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_wasip1.go
9.408 KB
4 Dec 2025 6.06 PM
root / root
0644
syscall_windows.go
55.782 KB
4 Dec 2025 6.06 PM
root / root
0644
tables_js.go
19.175 KB
4 Dec 2025 6.06 PM
root / root
0644
tables_wasip1.go
6.569 KB
4 Dec 2025 6.06 PM
root / root
0644
time_fake.go
0.661 KB
4 Dec 2025 6.06 PM
root / root
0644
time_nofake.go
0.343 KB
4 Dec 2025 6.06 PM
root / root
0644
timestruct.go
0.936 KB
4 Dec 2025 6.06 PM
root / root
0644
types_aix.go
3.352 KB
4 Dec 2025 6.06 PM
root / root
0644
types_darwin.go
5.033 KB
4 Dec 2025 6.06 PM
root / root
0644
types_dragonfly.go
5.046 KB
4 Dec 2025 6.06 PM
root / root
0644
types_freebsd.go
6.722 KB
4 Dec 2025 6.06 PM
root / root
0644
types_illumos_amd64.go
0.37 KB
4 Dec 2025 6.06 PM
root / root
0644
types_linux.go
10.904 KB
4 Dec 2025 6.06 PM
root / root
0644
types_netbsd.go
4.768 KB
4 Dec 2025 6.06 PM
root / root
0644
types_openbsd.go
5.039 KB
4 Dec 2025 6.06 PM
root / root
0644
types_solaris.go
4.879 KB
4 Dec 2025 6.06 PM
root / root
0644
types_windows.go
28.503 KB
4 Dec 2025 6.06 PM
root / root
0644
types_windows_386.go
0.466 KB
4 Dec 2025 6.06 PM
root / root
0644
types_windows_amd64.go
0.466 KB
4 Dec 2025 6.06 PM
root / root
0644
types_windows_arm.go
0.466 KB
4 Dec 2025 6.06 PM
root / root
0644
types_windows_arm64.go
0.466 KB
4 Dec 2025 6.06 PM
root / root
0644
wtf8_windows.go
2.672 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_aix_ppc64.go
47.156 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_darwin_amd64.go
55.262 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_darwin_arm64.go
55.77 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_dragonfly_amd64.go
59.601 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_freebsd_386.go
67.339 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_freebsd_amd64.go
67.383 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_freebsd_arm.go
67.329 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_freebsd_arm64.go
67.383 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_freebsd_riscv64.go
67.383 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_386.go
57.338 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_amd64.go
57.375 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_arm.go
57.862 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_arm64.go
68.552 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_loong64.go
82.466 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_mips.go
69.192 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_mips64.go
68.512 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_mips64le.go
68.512 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_mipsle.go
69.192 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_ppc64.go
70.867 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_ppc64le.go
71.827 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_riscv64.go
70.814 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_linux_s390x.go
73.289 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_netbsd_386.go
67.463 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_netbsd_amd64.go
67.053 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_netbsd_arm.go
66.477 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_netbsd_arm64.go
67.053 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_openbsd_386.go
62.732 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_openbsd_amd64.go
62.688 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_openbsd_arm.go
62.679 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_openbsd_arm64.go
66.359 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_openbsd_mips64.go
66.66 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_openbsd_ppc64.go
67.14 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_openbsd_riscv64.go
67.101 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_solaris_amd64.go
50.742 KB
4 Dec 2025 6.06 PM
root / root
0644
zerrors_windows.go
9.967 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_aix_ppc64.go
41.748 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_darwin_amd64.go
51.716 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_darwin_amd64.s
8.698 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_darwin_arm64.go
51.669 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_darwin_arm64.s
8.675 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_dragonfly_amd64.go
31.669 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_freebsd_386.go
31.21 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_freebsd_amd64.go
31.066 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_freebsd_arm.go
31.234 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_freebsd_arm64.go
31.066 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_freebsd_riscv64.go
31.072 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_386.go
34.16 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_amd64.go
38.979 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_arm.go
38.068 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_arm64.go
37.294 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_loong64.go
37.083 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_mips.go
39.819 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_mips64.go
39.837 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_mips64le.go
39.841 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_mipsle.go
39.823 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_ppc64.go
40.468 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_ppc64le.go
40.472 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_riscv64.go
37.325 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_linux_s390x.go
34.788 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_netbsd_386.go
30.11 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_netbsd_amd64.go
29.966 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_netbsd_arm.go
30.115 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_netbsd_arm64.go
29.966 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_386.go
47.133 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_386.s
7.947 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_amd64.go
46.991 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_amd64.s
7.949 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_arm.go
47.157 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_arm.s
7.947 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_arm64.go
46.991 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_arm64.s
7.949 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_mips64.go
30.049 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_ppc64.go
46.991 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_ppc64.s
8.629 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_riscv64.go
46.997 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_openbsd_riscv64.s
7.951 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_plan9_386.go
6.172 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_plan9_amd64.go
6.176 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_plan9_arm.go
6.172 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_solaris_amd64.go
37.563 KB
4 Dec 2025 6.06 PM
root / root
0644
zsyscall_windows.go
57.064 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysctl_openbsd.go
11.389 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_darwin_amd64.go
14.524 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_darwin_arm64.go
14.361 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_dragonfly_amd64.go
22.913 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_freebsd_386.go
25.433 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_freebsd_amd64.go
25.433 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_freebsd_arm.go
25.433 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_freebsd_arm64.go
35.759 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_freebsd_riscv64.go
35.759 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_386.go
11.243 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_amd64.go
10.081 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_arm.go
11.527 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_arm64.go
8.923 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_loong64.go
10.282 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_mips.go
12.103 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_mips64.go
10.926 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_mips64le.go
10.926 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_mipsle.go
12.103 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_ppc64.go
11.439 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_ppc64le.go
11.461 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_riscv64.go
8.884 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_linux_s390x.go
10.642 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_netbsd_386.go
25.665 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_netbsd_amd64.go
25.665 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_netbsd_arm.go
25.665 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_netbsd_arm64.go
25.665 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_openbsd_386.go
14.13 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_openbsd_amd64.go
14.13 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_openbsd_arm.go
14.433 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_openbsd_arm64.go
14.725 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_openbsd_mips64.go
14.93 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_openbsd_ppc64.go
15.829 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_openbsd_riscv64.go
15.675 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_plan9.go
1.028 KB
4 Dec 2025 6.06 PM
root / root
0644
zsysnum_solaris_amd64.go
0.258 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_aix_ppc64.go
4.17 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_darwin_amd64.go
6.949 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_darwin_arm64.go
6.949 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_dragonfly_amd64.go
6.701 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_freebsd_386.go
7.976 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_freebsd_amd64.go
7.997 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_freebsd_arm.go
8.005 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_freebsd_arm64.go
7.997 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_freebsd_riscv64.go
7.997 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_386.go
11.59 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_amd64.go
11.953 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_arm.go
11.479 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_arm64.go
10.143 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_loong64.go
10.769 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_mips.go
9.991 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_mips64.go
10.114 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_mips64le.go
10.114 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_mipsle.go
9.991 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_ppc64.go
10.248 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_ppc64le.go
10.381 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_riscv64.go
10.263 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_linux_s390x.go
10.453 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_netbsd_386.go
5.992 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_netbsd_amd64.go
6.172 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_netbsd_arm.go
6.134 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_netbsd_arm64.go
6.172 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_openbsd_386.go
6.733 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_openbsd_amd64.go
6.889 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_openbsd_arm.go
6.836 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_openbsd_arm64.go
6.658 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_openbsd_mips64.go
6.658 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_openbsd_ppc64.go
6.692 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_openbsd_riscv64.go
6.692 KB
4 Dec 2025 6.06 PM
root / root
0644
ztypes_solaris_amd64.go
5.566 KB
4 Dec 2025 6.06 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF