AnyPS5/core/libs/prx/libkernel/File
LeandroLP23 d3011ae113 fix(libkernel): share the directory state between duplicated descriptors on Windows
dup and dup2 of a Windows directory descriptor threw. FreeBSD's
kern_dup makes both descriptors refer to one open file, so they share
the read position; the duplicate now points at the same DirectoryState,
which getdents and lseek go through, and keeps it after the original
is closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 21:01:33 +02:00
..
include fix(libkernel): share the directory state between duplicated descriptors on Windows 2026-10-12 21:01:33 +02:00
src fix(libkernel): share the directory state between duplicated descriptors on Windows 2026-10-12 21:01:33 +02:00