- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 130 for EAGAIN (0.52 sec)
-
src/runtime/retry.go
//go:build unix package runtime // retryOnEAGAIN retries a function until it does not return EAGAIN. // It will use an increasing delay between calls, and retry up to 20 times. // The function argument is expected to return an errno value, // and retryOnEAGAIN will return any errno value other than EAGAIN. // If all retries return EAGAIN, then retryOnEAGAIN will return EAGAIN. func retryOnEAGAIN(fn func() int32) int32 { for tries := 0; tries < 20; tries++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 10 20:44:45 UTC 2022 - 760 bytes - Viewed (0) -
src/internal/poll/errno_unix.go
// Errno values. var ( errEAGAIN error = syscall.EAGAIN errEINVAL error = syscall.EINVAL errENOENT error = syscall.ENOENT ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. func errnoErr(e syscall.Errno) error { switch e { case 0: return nil case syscall.EAGAIN: return errEAGAIN case syscall.EINVAL: return errEINVAL case syscall.ENOENT:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:12:40 UTC 2023 - 696 bytes - Viewed (0) -
src/internal/poll/fd_unix.go
return 0, err } if fd.IsStream && len(p) > maxRW { p = p[:maxRW] } for { n, err := ignoringEINTRIO(syscall.Read, fd.Sysfd, p) if err != nil { n = 0 if err == syscall.EAGAIN && fd.pd.pollable() { if err = fd.pd.waitRead(fd.isFile); err == nil { continue } } } err = fd.eofError(n, err) return n, err } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 04:09:44 UTC 2024 - 17.9K bytes - Viewed (0) -
src/cmd/cgo/internal/test/sigprocmask.c
r = pthread_create(&thread, NULL, &sigthreadfunc, NULL); if (r == 0) { return pthread_join(thread, NULL); } if (r != EAGAIN) { return r; } ts.tv_sec = 0; ts.tv_nsec = (tries + 1) * 1000 * 1000; // Milliseconds. nanosleep(&ts, NULL); } return EAGAIN;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/exec.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.1K bytes - Viewed (0) -
src/syscall/tables_wasip1.go
const ( E2BIG Errno = 1 EACCES Errno = 2 EADDRINUSE Errno = 3 EADDRNOTAVAIL Errno = 4 EAFNOSUPPORT Errno = 5 EAGAIN Errno = 6 EALREADY Errno = 7 EBADF Errno = 8 EBADMSG Errno = 9 EBUSY Errno = 10 ECANCELED Errno = 11 ECHILD Errno = 12 ECONNABORTED Errno = 13
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 20:58:35 UTC 2023 - 6.5K bytes - Viewed (0) -
src/net/write_unix_test.go
cagain = 0 } switch err { case nil: case syscall.EAGAIN: if cagain == 0 { // We've written enough data to // start blocking. Set a deadline // so that we will stop. ss.SetWriteDeadline(time.Now().Add(5 * time.Millisecond)) } cagain++ if cagain > 20 { t.Error("looping on EAGAIN") return nil } if err = ss.conn.fd.pfd.WaitWrite(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.6K bytes - Viewed (0) -
src/os/rawconn_test.go
_, operr = syscall.Write(syscallDescriptor(s), []byte{'b'}) return operr != syscall.EAGAIN }) if err != nil { t.Fatal(err) } if operr != nil { t.Fatal(err) } var n int buf := make([]byte, 1) err = rconn.Read(func(s uintptr) bool { n, operr = syscall.Read(syscallDescriptor(s), buf) return operr != syscall.EAGAIN }) if err != nil { t.Fatal(err) } if operr != nil { t.Fatal(operr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 1.1K bytes - Viewed (0) -
src/internal/poll/splice_linux.go
// because it could return EAGAIN ceaselessly when the write end of the pipe is full, // but this shouldn't be a concern here, since the pipe buffer must be sufficient for // this data transmission on the basis of the workflow in Splice. n, err := splice(pipefd, sock.Sysfd, max, spliceNonblock) if err == syscall.EINTR { continue } if err != syscall.EAGAIN { return n, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 7.6K bytes - Viewed (0) -
src/runtime/defs_dragonfly.go
#include <sys/rtprio.h> #include <sys/signal.h> #include <sys/unistd.h> #include <errno.h> #include <signal.h> */ import "C" const ( EINTR = C.EINTR EFAULT = C.EFAULT EBUSY = C.EBUSY EAGAIN = C.EAGAIN ETIMEDOUT = C.ETIMEDOUT O_WRONLY = C.O_WRONLY O_NONBLOCK = C.O_NONBLOCK O_CREAT = C.O_CREAT O_TRUNC = C.O_TRUNC O_CLOEXEC = C.O_CLOEXEC PROT_NONE = C.PROT_NONE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 2.9K bytes - Viewed (0)