Reject posix_getdents(2) for now.

This commit is contained in:
Jonas 'Sortie' Termansen 2024-06-23 18:06:18 +02:00
parent 95481db488
commit ae6b1ed45a
1 changed files with 22 additions and 0 deletions

View File

@ -199,6 +199,28 @@ The
.Xr ioctl 2
interface is fine and this alternative function is rejected in this operating
system as it is optional in POSIX 2024.
.Ss posix_getdents
.Xr readdir 3
should be used instead.
.Xr readdirents 2
is a similar Sortix-specific system call that will likely be replaced with
something else in the future.
This new
.Ft posix_getdents
function is due to a mess of diverent
.Fn getdents
functions.
It is unfortunate they used
.Vt struct posix_dent
instead of
.Vt struct dirent
as they did not want to mandate the addition of the common
.Vt d_type
field in
.Vt struct dirent .
However,
.Vt posix_getdents
is decent and may be implemented in the future.
.Ss printf
.Xr printf 3
is implemented, however floating point formatting is not currently implemented