AnyPS5/core/libs/prx/libkernel/File/include
Zurisen 6daf7df9ae fix(libkernel): give flock BSD semantics on Windows
flock mapped each call straight onto LockFileEx/UnlockFileEx, whose
byte-range locks stack per handle. LOCK_UN without a lock failed with
ERROR_NOT_LOCKED and aborted the process, a repeated LOCK_EX blocked
forever, converting between shared and exclusive failed, and a repeated
LOCK_SH needed as many unlocks.

Track the one lock each descriptor holds: a repeated mode and LOCK_UN
without a lock succeed, a conversion releases the old lock before taking
the new one, and close forgets the descriptor's lock.
2026-10-10 06:49:20 +02:00
..
DirectoryDescriptor.hpp style: drop the branch's code comments per CONVENTIONS.md 2026-09-29 21:25:29 +03:00
File.hpp fix(kernel): keep the file offset in Windows AIO reads and writes 2026-10-10 00:22:22 +02:00
FileFlags.hpp feat(libkernel): libkernel file functions impl 2026-09-13 12:07:47 +03:00
FileLock.hpp fix(libkernel): give flock BSD semantics on Windows 2026-10-10 06:49:20 +02:00
NativeStat.hpp feat(libkernel): implement lstat 2026-10-09 17:30:43 -04:00
WindowsFileTime.hpp fix(libkernel): preserve Windows file timestamp precision 2026-10-10 01:51:56 +02:00