- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 175 for nosys (0.13 sec)
-
src/internal/syscall/unix/getrandom.go
if len(p) == 0 { return 0, nil } if getrandomUnsupported.Load() { return 0, syscall.ENOSYS } r1, _, errno := syscall.Syscall(getrandomTrap, uintptr(unsafe.Pointer(&p[0])), uintptr(len(p)), uintptr(flags)) if errno != 0 { if errno == syscall.ENOSYS { getrandomUnsupported.Store(true) } return 0, errno } return int(r1), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:54:02 UTC 2023 - 862 bytes - Viewed (0) -
src/cmd/go/internal/toolchain/path_unix.go
if v == "" { return "", false } // Mimicking exec.findExecutable here. // ENOSYS means Eaccess is not available or not implemented. // EPERM can be returned by Linux containers employing seccomp. // In both cases, fall back to checking the permission bits. err := unix.Eaccess(filepath.Join(dir, de.Name()), unix.X_OK) if (err == syscall.ENOSYS || err == syscall.EPERM) && info.Mode()&0111 != 0 { err = nil } if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 31 15:15:19 UTC 2023 - 1.2K bytes - Viewed (0) -
src/internal/syscall/unix/getrandom_solaris.go
if len(p) == 0 { return 0, nil } if getrandomUnsupported.Load() { return 0, syscall.ENOSYS } r1, _, errno := syscall6(uintptr(unsafe.Pointer(&procGetrandom)), 3, uintptr(unsafe.Pointer(&p[0])), uintptr(len(p)), uintptr(flags), 0, 0, 0) if errno != 0 { if errno == syscall.ENOSYS { getrandomUnsupported.Store(true) } return 0, errno } return int(r1), nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:54:02 UTC 2023 - 1.2K bytes - Viewed (0) -
src/crypto/rand/rand_getrandom.go
} altGetRandom = batched(getRandom, maxGetRandomRead) } // If the kernel is too old to support the getrandom syscall(), // unix.GetRandom will immediately return ENOSYS and we will then fall back to // reading from /dev/urandom in rand_unix.go. unix.GetRandom caches the ENOSYS // result so we only suffer the syscall overhead once in this case. // If the kernel supports the getrandom() syscall, unix.GetRandom will block
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:26:43 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
*funcref = impl_Flistxattr } else { *funcref = error_Flistxattr } return (*funcref)(fd, dest) } func error_Flistxattr(fd int, dest []byte) (sz int, err error) { sz = -1 err = ENOSYS return } // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func impl_Fremovexattr(fd int, attr string) (err error) { var _p0 *byte _p0, err = BytePtrFromString(attr) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 88.2K bytes - Viewed (0) -
src/internal/poll/sendfile_bsd.go
n, err = syscall.Sendfile(dst, src, &pos1, n) if n > 0 { pos += int64(n) written += int64(n) remain -= int64(n) } if err == syscall.EINTR { continue } // This includes syscall.ENOSYS (no kernel // support) and syscall.EINVAL (fd types which // don't implement sendfile), and other errors. // We should end the loop when there is no error // returned from sendfile(2) or it is not a retryable error.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 1.5K bytes - Viewed (0) -
src/internal/poll/sendfile_linux.go
} n, err = syscall.Sendfile(dst, src, nil, n) if n > 0 { written += int64(n) remain -= int64(n) continue } else if err != syscall.EAGAIN && err != syscall.EINTR { // This includes syscall.ENOSYS (no kernel // support) and syscall.EINVAL (fd types which // don't implement sendfile), and other errors. // We should end the loop when there is no error // returned from sendfile(2) or it is not a retryable error.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/ioctl_zos.go
// // The req value is expected to be TCSETS, TCSETSW, or TCSETSF func IoctlSetTermios(fd int, req int, value *Termios) error { if (req != TCSETS) && (req != TCSETSW) && (req != TCSETSF) { return ENOSYS } err := Tcsetattr(fd, int(req), value) runtime.KeepAlive(value) return err } // IoctlGetInt performs an ioctl operation which gets an integer value // from fd, using the specified request number. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2K bytes - Viewed (0) -
src/internal/poll/sendfile_solaris.go
n = int(pos1 - pos) } if n > 0 { pos += int64(n) written += int64(n) remain -= int64(n) continue } else if err != syscall.EAGAIN && err != syscall.EINTR { // This includes syscall.ENOSYS (no kernel // support) and syscall.EINVAL (fd types which // don't implement sendfile), and other errors. // We should end the loop when there is no error // returned from sendfile(2) or it is not a retryable error.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 1.8K bytes - Viewed (0) -
src/os/exec/lp_unix.go
} m := d.Mode() if m.IsDir() { return syscall.EISDIR } err = unix.Eaccess(file, unix.X_OK) // ENOSYS means Eaccess is not available or not implemented. // EPERM can be returned by Linux containers employing seccomp. // In both cases, fall back to checking the permission bits. if err == nil || (err != syscall.ENOSYS && err != syscall.EPERM) { return err } if m&0111 != 0 { return nil } return fs.ErrPermission
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 2.4K bytes - Viewed (0)