1
0
forked from cory/tildefriends

libuv 1.42.0.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3650 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-07-27 22:08:18 +00:00
parent 5197eb91f7
commit da51e87774
183 changed files with 4013 additions and 1768 deletions
Makefile
deps/libuv
.github
.mailmap.readthedocs.yamlAUTHORSCMakeLists.txtCONTRIBUTING.mdChangeLogLINKS.mdMAINTAINERS.mdMakefile.amREADME.mdSUPPORTED_PLATFORMS.mdconfigure.ac
docs
include
src
test
benchmark-async-pummel.cbenchmark-async.cbenchmark-million-async.cbenchmark-million-timers.cbenchmark-multi-accept.cbenchmark-pound.cbenchmark-pump.cbenchmark-tcp-write-batch.cbenchmark-udp-pummel.cblackhole-server.cdns-server.cecho-server.crun-benchmarks.crun-tests.crunner-unix.crunner.ctask.htest-active.ctest-async.ctest-callback-stack.ctest-close-fd.ctest-close-order.ctest-default-loop-close.ctest-delayed-accept.ctest-dlerror.ctest-error.ctest-fs-copyfile.ctest-fs-event.ctest-fs-poll.ctest-fs-readdir.ctest-fs.ctest-get-currentexe.ctest-get-passwd.ctest-getaddrinfo.ctest-getnameinfo.ctest-getsockname.ctest-getters-setters.ctest-idna.ctest-ipc-heavy-traffic-deadlock-bug.ctest-ipc.ctest-list.htest-loop-handles.ctest-multiple-listen.ctest-not-readable-nor-writable-on-read-error.ctest-not-readable-on-eof.ctest-not-writable-after-shutdown.ctest-ping-pong.ctest-pipe-bind-error.ctest-pipe-connect-error.ctest-pipe-connect-prepare.ctest-pipe-getsockname.ctest-pipe-server-close.ctest-pipe-set-non-blocking.ctest-platform-output.ctest-poll-multiple-handles.ctest-poll.ctest-ref.ctest-shutdown-eof.ctest-shutdown-simultaneous.ctest-signal-multiple-loops.ctest-signal-pending-on-close.ctest-spawn.ctest-tcp-alloc-cb-fail.ctest-tcp-bind-error.ctest-tcp-bind6-error.ctest-tcp-close.ctest-tcp-connect-error.ctest-tcp-connect-timeout.ctest-tcp-connect6-error.ctest-tcp-create-socket-early.ctest-tcp-open.ctest-tcp-write-fail.ctest-tcp-write-to-half-open-connection.ctest-tcp-writealot.ctest-thread.ctest-threadpool-cancel.ctest-timer-again.ctest-timer.ctest-tty-duplicate-key.ctest-tty-escape-sequence-processing.ctest-tty.ctest-udp-alloc-cb-fail.ctest-udp-connect.ctest-udp-mmsg.ctest-udp-multicast-interface.ctest-udp-multicast-interface6.ctest-udp-multicast-join.ctest-udp-multicast-join6.ctest-udp-multicast-ttl.ctest-udp-open.ctest-udp-send-and-recv.ctest-udp-send-hang-loop.ctest-udp-send-immediate.ctest-udp-send-unreachable.ctest-udp-try-send.c
tools

@ -194,37 +194,37 @@ int uv__recvmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) {
ssize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt, int64_t offset) {
#if defined(__NR_preadv)
return syscall(__NR_preadv, fd, iov, iovcnt, (long)offset, (long)(offset >> 32));
#else
#if !defined(__NR_preadv) || defined(__ANDROID_API__) && __ANDROID_API__ < 24
return errno = ENOSYS, -1;
#else
return syscall(__NR_preadv, fd, iov, iovcnt, (long)offset, (long)(offset >> 32));
#endif
}
ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt, int64_t offset) {
#if defined(__NR_pwritev)
return syscall(__NR_pwritev, fd, iov, iovcnt, (long)offset, (long)(offset >> 32));
#else
#if !defined(__NR_pwritev) || defined(__ANDROID_API__) && __ANDROID_API__ < 24
return errno = ENOSYS, -1;
#else
return syscall(__NR_pwritev, fd, iov, iovcnt, (long)offset, (long)(offset >> 32));
#endif
}
int uv__dup3(int oldfd, int newfd, int flags) {
#if defined(__NR_dup3)
return syscall(__NR_dup3, oldfd, newfd, flags);
#else
#if !defined(__NR_dup3) || defined(__ANDROID_API__) && __ANDROID_API__ < 21
return errno = ENOSYS, -1;
#else
return syscall(__NR_dup3, oldfd, newfd, flags);
#endif
}
ssize_t
uv__fs_copy_file_range(int fd_in,
ssize_t* off_in,
off_t* off_in,
int fd_out,
ssize_t* off_out,
off_t* off_out,
size_t len,
unsigned int flags)
{
@ -247,21 +247,18 @@ int uv__statx(int dirfd,
int flags,
unsigned int mask,
struct uv__statx* statxbuf) {
/* __NR_statx make Android box killed by SIGSYS.
* That looks like a seccomp2 sandbox filter rejecting the system call.
*/
#if defined(__NR_statx) && !defined(__ANDROID__)
return syscall(__NR_statx, dirfd, path, flags, mask, statxbuf);
#else
#if !defined(__NR_statx) || defined(__ANDROID_API__) && __ANDROID_API__ < 30
return errno = ENOSYS, -1;
#else
return syscall(__NR_statx, dirfd, path, flags, mask, statxbuf);
#endif
}
ssize_t uv__getrandom(void* buf, size_t buflen, unsigned flags) {
#if defined(__NR_getrandom)
return syscall(__NR_getrandom, buf, buflen, flags);
#else
#if !defined(__NR_getrandom) || defined(__ANDROID_API__) && __ANDROID_API__ < 28
return errno = ENOSYS, -1;
#else
return syscall(__NR_getrandom, buf, buflen, flags);
#endif
}