Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getTempPath (0.28 sec)

  1. src/os/file_windows.go

    func tempDir() string {
    	useGetTempPath2Once.Do(func() {
    		useGetTempPath2 = (windows.ErrorLoadingGetTempPath2() == nil)
    	})
    	getTempPath := syscall.GetTempPath
    	if useGetTempPath2 {
    		getTempPath = windows.GetTempPath2
    	}
    	n := uint32(syscall.MAX_PATH)
    	for {
    		b := make([]uint16, n)
    		n, _ = getTempPath(uint32(len(b)), &b[0])
    		if n > uint32(len(b)) {
    			continue
    		}
    		if n == 3 && b[1] == ':' && b[2] == '\\' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/os/file.go

    	return &PathError{Op: op, Path: f.name, Err: err}
    }
    
    // TempDir returns the default directory to use for temporary files.
    //
    // On Unix systems, it returns $TMPDIR if non-empty, else /tmp.
    // On Windows, it uses GetTempPath, returning the first non-empty
    // value from %TMP%, %TEMP%, %USERPROFILE%, or the Windows directory.
    // On Plan 9, it returns /tmp.
    //
    // The directory is neither guaranteed to exist nor have accessible
    // permissions.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. src/syscall/zsyscall_windows.go

    		err = errnoErr(e1)
    	}
    	return
    }
    
    func GetSystemTimeAsFileTime(time *Filetime) {
    	Syscall(procGetSystemTimeAsFileTime.Addr(), 1, uintptr(unsafe.Pointer(time)), 0, 0)
    	return
    }
    
    func GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) {
    	r0, _, e1 := Syscall(procGetTempPathW.Addr(), 2, uintptr(buflen), uintptr(unsafe.Pointer(buf)), 0)
    	n = uint32(r0)
    	if n == 0 {
    		err = errnoErr(e1)
    	}
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (1)
  4. src/syscall/syscall_windows.go

    //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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    //sys	waitForMultipleObjects(count uint32, handles uintptr, waitAll bool, waitMilliseconds uint32) (event uint32, err error) [failretval==0xffffffff] = WaitForMultipleObjects
    //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)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	r0, _, e1 := syscall.Syscall(procGetSystemWindowsDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
    	len = uint32(r0)
    	if len == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) {
    	r0, _, e1 := syscall.Syscall(procGetTempPathW.Addr(), 2, uintptr(buflen), uintptr(unsafe.Pointer(buf)), 0)
    	n = uint32(r0)
    	if n == 0 {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"GetServByName", Func, 0},
    		{"GetShortPathName", Func, 0},
    		{"GetStartupInfo", Func, 0},
    		{"GetStdHandle", Func, 0},
    		{"GetSystemTimeAsFileTime", Func, 0},
    		{"GetTempPath", Func, 0},
    		{"GetTimeZoneInformation", Func, 0},
    		{"GetTokenInformation", Func, 0},
    		{"GetUserNameEx", Func, 0},
    		{"GetUserProfileDirectory", Func, 0},
    		{"GetVersion", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg syscall (windows-386), func GetStdHandle(int) (Handle, error)
    pkg syscall (windows-386), func GetSystemTimeAsFileTime(*Filetime)
    pkg syscall (windows-386), func GetTempPath(uint32, *uint16) (uint32, error)
    pkg syscall (windows-386), func GetTimeZoneInformation(*Timezoneinformation) (uint32, error)
    pkg syscall (windows-386), func GetTokenInformation(Token, uint32, *uint8, uint32, *uint32) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top