sys/linux: added descs for preadv2, pwritev2

This commit is contained in:
Necip Fazil Yildiran 2020-07-24 08:01:38 +00:00 committed by Dmitry Vyukov
parent 554af3885f
commit 664cf58ee8
9 changed files with 60 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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