- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for ImplementsGetwd (0.15 sec)
-
src/runtime/testdata/testprog/syscalls_linux.go
} // Check if it's a zombie thread. return !bytes.Contains(stateLine[1], []byte{'Z'}), true, nil } func getcwd() (string, error) { if !syscall.ImplementsGetwd { return "", nil } // Use the syscall to get the current working directory. // This is imperative for checking for OS thread state // after an unshare since os.Getwd might just check the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:00:09 UTC 2024 - 2.2K bytes - Viewed (0) -
src/syscall/syscall_aix.go
//sys unlinkat(dirfd int, path string, flags int) (err error) func Unlinkat(dirfd int, path string) (err error) { return unlinkat(dirfd, path, 0) } //sys getcwd(buf *byte, size uint64) (err error) const ImplementsGetwd = true func Getwd() (ret string, err error) { for len := uint64(4096); ; len *= 2 { b := make([]byte, len) err := getcwd(&b[0], len) if err == nil { i := 0 for b[i] != 0 { i++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:50:55 UTC 2024 - 17.9K bytes - Viewed (0) -
src/syscall/fs_wasip1.go
} defer Close(fd) return Ftruncate(fd, length) } func Ftruncate(fd int, length int64) error { errno := fd_filestat_set_size(int32(fd), filesize(length)) return errnoErr(errno) } const ImplementsGetwd = true func Getwd() (string, error) { return cwd, nil } func Chdir(path string) error { if path == "" { return EINVAL } dir := "/" if !isAbs(path) { dir = cwd
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24.1K bytes - Viewed (0) -
src/syscall/syscall_linux.go
} func Futimes(fd int, tv []Timeval) (err error) { // Believe it or not, this is the best we can do on Linux // (and is what glibc does). return Utimes("/proc/self/fd/"+itoa.Itoa(fd), tv) } const ImplementsGetwd = true //sys Getcwd(buf []byte) (n int, err error) func Getwd() (wd string, err error) { var buf [PathMax]byte n, err := Getcwd(buf[0:]) if err != nil { return "", err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 35.7K bytes - Viewed (0) -
src/syscall/syscall_windows.go
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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 52.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go
func Futimes(fd int, tv []Timeval) (err error) { // Believe it or not, this is the best we can do on Linux // (and is what glibc does). return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv) } const ImplementsGetwd = true //sys Getcwd(buf []byte) (n int, err error) func Getwd() (wd string, err error) { var buf [PathMax]byte n, err := Getcwd(buf[0:]) if err != nil { return "", err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 05:26:45 UTC 2024 - 77.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go
Stdout = getStdHandle(STD_OUTPUT_HANDLE) Stderr = getStdHandle(STD_ERROR_HANDLE) ) func getStdHandle(stdhandle uint32) (fd Handle) { r, _ := GetStdHandle(stdhandle) return r } const ImplementsGetwd = true func Getwd() (wd string, err error) { b := make([]uint16, 300) n, e := GetCurrentDirectory(uint32(len(b)), &b[0]) if e != nil { return "", e } return string(utf16.Decode(b[0:n])), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 82.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
return string(buffer[:zb]), nil } return "", errnoErr2(e1, e2) } //sys remove(path string) (err error) func Remove(path string) error { return remove(path) } const ImplementsGetwd = true func Getcwd(buf []byte) (n int, err error) { var p unsafe.Pointer if len(buf) > 0 { p = unsafe.Pointer(&buf[0]) } else { p = unsafe.Pointer(&_zero) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 84.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"IfmaMsghdr2.Msglen", Field, 0}, {"IfmaMsghdr2.Pad_cgo_0", Field, 0}, {"IfmaMsghdr2.Refcount", Field, 0}, {"IfmaMsghdr2.Type", Field, 0}, {"IfmaMsghdr2.Version", Field, 0}, {"ImplementsGetwd", Const, 0}, {"Inet4Pktinfo", Type, 0}, {"Inet4Pktinfo.Addr", Field, 0}, {"Inet4Pktinfo.Ifindex", Field, 0}, {"Inet4Pktinfo.Spec_dst", Field, 0}, {"Inet6Pktinfo", Type, 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)