Add XNU magnums for preadv() and writev()

Apple introduced support sometime between 2018 and 2020.
This commit is contained in:
Justine Tunney 2022-04-12 01:07:47 -07:00
parent e500e8fb48
commit f68f1789bd
5 changed files with 6 additions and 6 deletions

View file

@ -62,7 +62,7 @@ ssize_t preadv(int fd, struct iovec *iov, int iovlen, int64_t off) {
}
/*
* NT, XNU, and 2007-era Linux don't support this system call.
* NT, 2018-era XNU, and 2007-era Linux don't support this system call
*/
if (!__vforked && !once) {
err = errno;

View file

@ -66,7 +66,7 @@ ssize_t pwritev(int fd, const struct iovec *iov, int iovlen, int64_t off) {
}
/*
* NT, XNU, and 2007-era Linux don't support this system call.
* NT, 2018-era XNU, and 2007-era Linux don't support this system call
*/
if (!once) {
err = errno;

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall sys_preadv,0x12110b121ffff127,globl,hidden
.scall sys_preadv,0x12110b121221c127,globl,hidden

View file

@ -1,2 +1,2 @@
.include "o/libc/sysv/macros.internal.inc"
.scall sys_pwritev,0x12210c122ffff128,globl,hidden
.scall sys_pwritev,0x12210c122221d128,globl,hidden

View file

@ -309,8 +309,8 @@ scall sys_vmsplice 0xfffffffffffff116 globl hidden
scall migrate_pages 0xfffffffffffff100 globl # numa numa yay
scall move_pages 0xfffffffffffff117 globl # NOTE: We view Red Hat versions as "epochs" for all distros.
#──────────────────────RHEL 5.0 LIMIT──────────────────────── # ←┬─ last distro with gplv2 licensed compiler c. 2007
scall sys_preadv 0x12110b121ffff127 globl hidden # ├─ last distro with system v shell script init
scall sys_pwritev 0x12210c122ffff128 globl hidden # ├─ rob landley unleashes busybox gpl lawsuits
scall sys_preadv 0x12110b121221c127 globl hidden # ├─ last distro with system v shell script init
scall sys_pwritev 0x12210c122221d128 globl hidden # ├─ rob landley unleashes busybox gpl lawsuits
scall __sys_utimensat 0x1d3054223ffff118 globl hidden # ├─ python modules need this due to pep513
scall fallocate 0xfffffffffffff11d globl hidden # ├─ end of life 2020-11-30 (extended)
scall posix_fallocate 0xffffff212fffffff globl hidden # └─ cosmopolitan supports rhel5+