- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for ImplementsGetwd (0.18 sec)
-
api/except.txt
pkg syscall (linux-arm-cgo), type Cmsghdr struct, X__cmsg_data [0]uint8 pkg syscall (netbsd-386), const ImplementsGetwd = false pkg syscall (netbsd-386-cgo), const ImplementsGetwd = false pkg syscall (netbsd-amd64), const ImplementsGetwd = false pkg syscall (netbsd-amd64-cgo), const ImplementsGetwd = false pkg syscall (netbsd-arm), const ImplementsGetwd = false pkg syscall (netbsd-arm), const SizeofIfData = 132
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:13:30 UTC 2023 - 34.6K bytes - Viewed (0) -
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_js.go
return 0, 0, ENOSYS } func Sysctl(key string) (string, error) { if key == "kern.hostname" { return "js", nil } return "", ENOSYS } const ImplementsGetwd = true func Getwd() (wd string, err error) { var buf [PathMax]byte n, err := Getcwd(buf[0:]) if err != nil { return "", err } return string(buf[:n]), nil } func Getuid() int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 6.7K bytes - Viewed (0) -
src/syscall/syscall_plan9.go
// Note that sometimes we use a lowercase //sys name and // wrap it in our own nicer implementation. package syscall import ( "errors" "internal/oserror" "runtime" "unsafe" ) const ImplementsGetwd = true const bitSize16 = 2 // ErrorString implements Error's String method by returning itself. // // ErrorString values can be tested against error values using [errors.Is]. // For example: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0) -
src/syscall/syscall_bsd.go
// used as input to mksyscall which parses the //sys // lines and generates system call stubs. package syscall import ( "runtime" "unsafe" ) const ImplementsGetwd = true func Getwd() (string, error) { var buf [pathMax]byte _, err := getcwd(buf[:]) if err != nil { return "", err } n := clen(buf[:]) if n < 1 { return "", EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 10:34:48 UTC 2023 - 13.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go
// used as input to mksyscall which parses the //sys // lines and generates system call stubs. package unix import ( "runtime" "syscall" "unsafe" ) const ImplementsGetwd = true func Getwd() (string, error) { var buf [PathMax]byte _, err := Getcwd(buf[0:]) if err != nil { return "", err } n := clen(buf[:]) if n < 1 { return "", EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 15K 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/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go
var len _Socklen = SizeofSockaddrAny if err = getsockname(fd, &rsa, &len); err != nil { return } return anyToSockaddr(fd, &rsa) } //sys getcwd(buf []byte) (err error) const ImplementsGetwd = true func Getwd() (ret string, err error) { for len := uint64(4096); ; len *= 2 { b := make([]byte, len) err := getcwd(b) if err == nil { i := 0 for b[i] != 0 { i++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 16.1K bytes - Viewed (0) -
src/syscall/syscall_solaris.go
var rsa RawSockaddrAny var len _Socklen = SizeofSockaddrAny if err = getsockname(fd, &rsa, &len); err != nil { return } return anyToSockaddr(&rsa) } const ImplementsGetwd = true //sys Getcwd(buf []byte) (n int, err error) func Getwd() (wd string, err error) { var buf [PathMax]byte // Getcwd will return an error if it failed for any reason. _, err = Getcwd(buf[0:])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 15.7K 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)