File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -358,8 +358,13 @@ The right to invoke `path_rename` with the file descriptor as the target directo
358
358
The right to invoke ` path_filestat_get ` .
359
359
360
360
- <a href =" #rights.path_filestat_set_size " name =" rights.path_filestat_set_size " ></a > ` path_filestat_set_size `
361
- The right to change a file's size (there is no ` path_filestat_set_size ` ) .
361
+ The right to change a file's size.
362
362
If ` path_open ` is set, includes the right to invoke ` path_open ` with [ ` oflags::trunc ` ] ( #oflags.trunc ) .
363
+ Note: there is no function named ` path_filestat_set_size ` . This follows POSIX design,
364
+ which only has ` ftruncate ` and does not provide ` ftruncateat ` .
365
+ While such function would be desirable from the API design perspective, there are virtually
366
+ no use cases for it since no code written for POSIX systems would use it.
367
+ Moreover, implementing it would require multiple syscalls, leading to inferior performance.
363
368
364
369
- <a href =" #rights.path_filestat_set_times " name =" rights.path_filestat_set_times " ></a > ` path_filestat_set_times `
365
370
The right to invoke ` path_filestat_set_times ` .
Original file line number Diff line number Diff line change 247
247
$path_rename_target
248
248
;;; The right to invoke `path_filestat_get`.
249
249
$path_filestat_get
250
- ;;; The right to change a file's size (there is no `path_filestat_set_size`) .
250
+ ;;; The right to change a file's size.
251
251
;;; If `path_open` is set, includes the right to invoke `path_open` with `oflags::trunc`.
252
+ ;;; Note: there is no function named `path_filestat_set_size`. This follows POSIX design,
253
+ ;;; which only has `ftruncate` and does not provide `ftruncateat`.
254
+ ;;; While such function would be desirable from the API design perspective, there are virtually
255
+ ;;; no use cases for it since no code written for POSIX systems would use it.
256
+ ;;; Moreover, implementing it would require multiple syscalls, leading to inferior performance.
252
257
$path_filestat_set_size
253
258
;;; The right to invoke `path_filestat_set_times`.
254
259
$path_filestat_set_times
You can’t perform that action at this time.
0 commit comments