@@ -1415,7 +1415,7 @@ The permissions associated with the file.
1415
1415
1416
1416
#### <a href =" #pread " name =" pread " ></a > ` pread(fd: fd, iovs: iovec_array, offset: filesize) -> (errno, size) `
1417
1417
Read from a file descriptor, without using and updating the file descriptor's offset.
1418
- Note: This is similar to ` preadv ` in POSIX .
1418
+ Note: This is similar to ` preadv ` in Linux (and other Unix-es) .
1419
1419
1420
1420
##### Params
1421
1421
- <a href =" #pread.fd " name =" pread.fd " ></a > ` fd ` : [ ` fd ` ] ( #fd )
@@ -1469,7 +1469,11 @@ A buffer into which to write the preopened directory name.
1469
1469
1470
1470
#### <a href =" #pwrite " name =" pwrite " ></a > ` pwrite(fd: fd, iovs: ciovec_array, offset: filesize) -> (errno, size) `
1471
1471
Write to a file descriptor, without using and updating the file descriptor's offset.
1472
- Note: This is similar to ` pwritev ` in POSIX.
1472
+ Note: This is similar to ` pwritev ` in Linux (and other Unix-es).
1473
+
1474
+ Like Linux (and other Unix-es), any calls of [ ` pwrite ` ] ( #pwrite ) (and other
1475
+ functions to read or write) for a regular file by other threads in the
1476
+ WASI process should not be interleaved while [ ` pwrite ` ] ( #pwrite ) is executed.
1473
1477
1474
1478
##### Params
1475
1479
- <a href =" #pwrite.fd " name =" pwrite.fd " ></a > ` fd ` : [ ` fd ` ] ( #fd )
@@ -1616,6 +1620,10 @@ The current offset of the file descriptor, relative to the start of the file.
1616
1620
Write to a file descriptor.
1617
1621
Note: This is similar to ` writev ` in POSIX.
1618
1622
1623
+ Like POSIX, any calls of [ ` write ` ] ( #write ) (and other functions to read or write)
1624
+ for a regular file by other threads in the WASI process should not be
1625
+ interleaved while [ ` write ` ] ( #write ) is executed.
1626
+
1619
1627
##### Params
1620
1628
- <a href =" #write.fd " name =" write.fd " ></a > ` fd ` : [ ` fd ` ] ( #fd )
1621
1629
0 commit comments