mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 17:13:13 -05:00
fcntl and sceKernelFcntl read a third argument as a 64-bit integer for every command on a non-socket descriptor. F_GETFD and F_GETFL pass no third argument, and the commands that take one pass an int or a pointer. They now read nothing, an int or a pointer, by command. An int read as a 64-bit value kept whatever the caller left in the upper half of the register, so F_READAHEAD -1 enabled read-ahead instead of disabling it.