diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 0589dc23..a1446df1 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -89,12 +89,16 @@ read(fd fd, buf buffer[out], count len[buf]) pread64(fd fd, buf buffer[out], count len[buf], pos fileoff) readv(fd fd, vec ptr[in, array[iovec_out]], vlen len[vec]) preadv(fd fd, vec ptr[in, array[iovec_out]], vlen len[vec], off fileoff) +preadv2(fd fd, vec ptr[in, array[iovec_out]], vlen len[vec], off fileoff, flags flags[rwf_flags]) write(fd fd, buf buffer[in], count len[buf]) pwrite64(fd fd, buf buffer[in], count len[buf], pos fileoff) writev(fd fd, vec ptr[in, array[iovec_in]], vlen len[vec]) pwritev(fd fd, vec ptr[in, array[iovec_in]], vlen len[vec], off fileoff) +pwritev2(fd fd, vec ptr[in, array[iovec_in]], vlen len[vec], off fileoff, flags flags[rwf_flags]) lseek(fd fd, offset fileoff, whence flags[seek_whence]) +rwf_flags = RWF_DSYNC, RWF_HIPRI, RWF_SYNC, RWF_NOWAIT, RWF_APPEND + dup(oldfd fd) fd dup2(oldfd fd, newfd fd) fd dup3(oldfd fd, newfd fd, flags flags[dup_flags]) fd diff --git a/sys/linux/sys_386.const b/sys/linux/sys_386.const index d06e7811..ddb64ebf 100644 --- a/sys/linux/sys_386.const +++ b/sys/linux/sys_386.const @@ -459,6 +459,11 @@ RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2 RUSAGE_CHILDREN = 18446744073709551615 RUSAGE_SELF = 0 RUSAGE_THREAD = 1 +RWF_APPEND = 16 +RWF_DSYNC = 2 +RWF_HIPRI = 1 +RWF_NOWAIT = 8 +RWF_SYNC = 4 RWF_WRITE_LIFE_NOT_SET = 0 RWH_WRITE_LIFE_EXTREME = 5 RWH_WRITE_LIFE_LONG = 4 @@ -724,6 +729,7 @@ __NR_poll = 168 __NR_ppoll = 309 __NR_pread64 = 180 __NR_preadv = 333 +__NR_preadv2 = 378 __NR_prlimit64 = 340 __NR_process_madvise = 443 __NR_process_vm_readv = 347 @@ -732,6 +738,7 @@ __NR_pselect6 = 308 __NR_ptrace = 26 __NR_pwrite64 = 181 __NR_pwritev = 334 +__NR_pwritev2 = 379 __NR_quotactl = 131 __NR_read = 3 __NR_readahead = 225 diff --git a/sys/linux/sys_amd64.const b/sys/linux/sys_amd64.const index 8dcbcb1d..ec1d8f7f 100644 --- a/sys/linux/sys_amd64.const +++ b/sys/linux/sys_amd64.const @@ -459,6 +459,11 @@ RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2 RUSAGE_CHILDREN = 18446744073709551615 RUSAGE_SELF = 0 RUSAGE_THREAD = 1 +RWF_APPEND = 16 +RWF_DSYNC = 2 +RWF_HIPRI = 1 +RWF_NOWAIT = 8 +RWF_SYNC = 4 RWF_WRITE_LIFE_NOT_SET = 0 RWH_WRITE_LIFE_EXTREME = 5 RWH_WRITE_LIFE_LONG = 4 @@ -724,6 +729,7 @@ __NR_poll = 7 __NR_ppoll = 271 __NR_pread64 = 17 __NR_preadv = 295 +__NR_preadv2 = 327 __NR_prlimit64 = 302 __NR_process_madvise = 443 __NR_process_vm_readv = 310 @@ -732,6 +738,7 @@ __NR_pselect6 = 270 __NR_ptrace = 101 __NR_pwrite64 = 18 __NR_pwritev = 296 +__NR_pwritev2 = 328 __NR_quotactl = 179 __NR_read = 0 __NR_readahead = 187 diff --git a/sys/linux/sys_arm.const b/sys/linux/sys_arm.const index 255b09c6..20644bea 100644 --- a/sys/linux/sys_arm.const +++ b/sys/linux/sys_arm.const @@ -459,6 +459,11 @@ RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2 RUSAGE_CHILDREN = 18446744073709551615 RUSAGE_SELF = 0 RUSAGE_THREAD = 1 +RWF_APPEND = 16 +RWF_DSYNC = 2 +RWF_HIPRI = 1 +RWF_NOWAIT = 8 +RWF_SYNC = 4 RWF_WRITE_LIFE_NOT_SET = 0 RWH_WRITE_LIFE_EXTREME = 5 RWH_WRITE_LIFE_LONG = 4 @@ -724,6 +729,7 @@ __NR_poll = 168 __NR_ppoll = 336 __NR_pread64 = 180 __NR_preadv = 361 +__NR_preadv2 = 392 __NR_prlimit64 = 369 __NR_process_madvise = 443 __NR_process_vm_readv = 376 @@ -732,6 +738,7 @@ __NR_pselect6 = 335 __NR_ptrace = 26 __NR_pwrite64 = 181 __NR_pwritev = 362 +__NR_pwritev2 = 393 __NR_quotactl = 131 __NR_read = 3 __NR_readahead = 225 diff --git a/sys/linux/sys_arm64.const b/sys/linux/sys_arm64.const index 6d6ca220..95fcd5ba 100644 --- a/sys/linux/sys_arm64.const +++ b/sys/linux/sys_arm64.const @@ -459,6 +459,11 @@ RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2 RUSAGE_CHILDREN = 18446744073709551615 RUSAGE_SELF = 0 RUSAGE_THREAD = 1 +RWF_APPEND = 16 +RWF_DSYNC = 2 +RWF_HIPRI = 1 +RWF_NOWAIT = 8 +RWF_SYNC = 4 RWF_WRITE_LIFE_NOT_SET = 0 RWH_WRITE_LIFE_EXTREME = 5 RWH_WRITE_LIFE_LONG = 4 @@ -724,6 +729,7 @@ __NR_pkey_mprotect = 288 __NR_ppoll = 73 __NR_pread64 = 67 __NR_preadv = 69 +__NR_preadv2 = 286 __NR_prlimit64 = 261 __NR_process_madvise = 443 __NR_process_vm_readv = 270 @@ -732,6 +738,7 @@ __NR_pselect6 = 72 __NR_ptrace = 117 __NR_pwrite64 = 68 __NR_pwritev = 70 +__NR_pwritev2 = 287 __NR_quotactl = 60 __NR_read = 63 __NR_readahead = 213 diff --git a/sys/linux/sys_mips64le.const b/sys/linux/sys_mips64le.const index a9c01db8..ab0afef8 100644 --- a/sys/linux/sys_mips64le.const +++ b/sys/linux/sys_mips64le.const @@ -459,6 +459,11 @@ RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2 RUSAGE_CHILDREN = 18446744073709551615 RUSAGE_SELF = 0 RUSAGE_THREAD = 1 +RWF_APPEND = 16 +RWF_DSYNC = 2 +RWF_HIPRI = 1 +RWF_NOWAIT = 8 +RWF_SYNC = 4 RWF_WRITE_LIFE_NOT_SET = 0 RWH_WRITE_LIFE_EXTREME = 5 RWH_WRITE_LIFE_LONG = 4 @@ -724,6 +729,7 @@ __NR_poll = 5007 __NR_ppoll = 5261 __NR_pread64 = 5016 __NR_preadv = 5289 +__NR_preadv2 = 5321 __NR_prlimit64 = 5297 __NR_process_madvise = 5443 __NR_process_vm_readv = 5304 @@ -732,6 +738,7 @@ __NR_pselect6 = 5260 __NR_ptrace = 5099 __NR_pwrite64 = 5017 __NR_pwritev = 5290 +__NR_pwritev2 = 5322 __NR_quotactl = 5172 __NR_read = 5000 __NR_readahead = 5179 diff --git a/sys/linux/sys_ppc64le.const b/sys/linux/sys_ppc64le.const index e43cfe38..7da3b667 100644 --- a/sys/linux/sys_ppc64le.const +++ b/sys/linux/sys_ppc64le.const @@ -459,6 +459,11 @@ RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2 RUSAGE_CHILDREN = 18446744073709551615 RUSAGE_SELF = 0 RUSAGE_THREAD = 1 +RWF_APPEND = 16 +RWF_DSYNC = 2 +RWF_HIPRI = 1 +RWF_NOWAIT = 8 +RWF_SYNC = 4 RWF_WRITE_LIFE_NOT_SET = 0 RWH_WRITE_LIFE_EXTREME = 5 RWH_WRITE_LIFE_LONG = 4 @@ -724,6 +729,7 @@ __NR_poll = 167 __NR_ppoll = 281 __NR_pread64 = 179 __NR_preadv = 320 +__NR_preadv2 = 380 __NR_prlimit64 = 325 __NR_process_madvise = 443 __NR_process_vm_readv = 351 @@ -732,6 +738,7 @@ __NR_pselect6 = 280 __NR_ptrace = 26 __NR_pwrite64 = 180 __NR_pwritev = 321 +__NR_pwritev2 = 381 __NR_quotactl = 131 __NR_read = 3 __NR_readahead = 191 diff --git a/sys/linux/sys_riscv64.const b/sys/linux/sys_riscv64.const index 0c758c9b..2eb0ae33 100644 --- a/sys/linux/sys_riscv64.const +++ b/sys/linux/sys_riscv64.const @@ -459,6 +459,11 @@ RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2 RUSAGE_CHILDREN = 18446744073709551615 RUSAGE_SELF = 0 RUSAGE_THREAD = 1 +RWF_APPEND = 16 +RWF_DSYNC = 2 +RWF_HIPRI = 1 +RWF_NOWAIT = 8 +RWF_SYNC = 4 RWF_WRITE_LIFE_NOT_SET = 0 RWH_WRITE_LIFE_EXTREME = 5 RWH_WRITE_LIFE_LONG = 4 @@ -724,6 +729,7 @@ __NR_pkey_mprotect = 288 __NR_ppoll = 73 __NR_pread64 = 67 __NR_preadv = 69 +__NR_preadv2 = 286 __NR_prlimit64 = 261 __NR_process_madvise = 443 __NR_process_vm_readv = 270 @@ -732,6 +738,7 @@ __NR_pselect6 = 72 __NR_ptrace = 117 __NR_pwrite64 = 68 __NR_pwritev = 70 +__NR_pwritev2 = 287 __NR_quotactl = 60 __NR_read = 63 __NR_readahead = 213 diff --git a/sys/linux/sys_s390x.const b/sys/linux/sys_s390x.const index 42a11116..d743ee3e 100644 --- a/sys/linux/sys_s390x.const +++ b/sys/linux/sys_s390x.const @@ -459,6 +459,11 @@ RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL = 2 RUSAGE_CHILDREN = 18446744073709551615 RUSAGE_SELF = 0 RUSAGE_THREAD = 1 +RWF_APPEND = 16 +RWF_DSYNC = 2 +RWF_HIPRI = 1 +RWF_NOWAIT = 8 +RWF_SYNC = 4 RWF_WRITE_LIFE_NOT_SET = 0 RWH_WRITE_LIFE_EXTREME = 5 RWH_WRITE_LIFE_LONG = 4 @@ -724,6 +729,7 @@ __NR_poll = 168 __NR_ppoll = 302 __NR_pread64 = 180 __NR_preadv = 328 +__NR_preadv2 = 376 __NR_prlimit64 = 334 __NR_process_madvise = 443 __NR_process_vm_readv = 340 @@ -732,6 +738,7 @@ __NR_pselect6 = 301 __NR_ptrace = 26 __NR_pwrite64 = 181 __NR_pwritev = 329 +__NR_pwritev2 = 377 __NR_quotactl = 131 __NR_read = 3 __NR_readahead = 222