> s/runs/runs -- as far as you've seen --/ ? > > At least in the save-cwd module (used e.g., via openat), getcwd > is not used in the common case, but under unusual circumstances, > fall-back code does use it.
I'd say "runs" - Bruno explained that 'dup' and 'dup2' are used in auxiliary replacements from fchdir.c, and 'rewinddir' is only used in a chroot+Linux corner case which won't happen on PSP (getcwd still works in the general case). > dup() is as basic as open(), you know, and it's a one-liner to > provide a stub for it. AFAICS pspdev provides 'fnctl' with 'F_DUPFD' support, so indeed that should be easy to add (in 'newlib/libc/sys/psp/libcglue.c'), thanks for the tip! -- Sylvain
