mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 09:01:25 +00:00
1.7 KiB
1.7 KiB
libkernel
change [tcgetattr, tcsetattr]
- tcgetattr, tcsetattr (libkernel) - every file and pipe descriptor is taken as not a terminal (
ENOTTY), and a socket getsEADDRNOTAVAILforAF_INETandEOPNOTSUPPotherwise, as FreeBSD'sin_controlandpru_control_notsuppanswer a termios ioctl (a payload process on firmware 11.60 got fromtcgetattrEADDRNOTAVAILfor descriptors 0 to 2,EBADFfor -1 and 999,ENOTTYfor/dev/nulland pipe ends andEOPNOTSUPPfor a local socket pair, and the buffer stayed unchanged;tcsetattris unmeasured); what descriptors 0 to 2 of a title are on the console, and whether any of them is a terminal there, is unknown
change [cfsetspeed]
- cfsetspeed (libkernel, NID
C1MQ6OaXRjo) - on 11.60 (payload) both fields were set, nothing else changed; versions unmeasured. The prototype, uint32 speed and 44-byte termios layout (input speed at 36, output speed at 40) follow the public PS5 payload SDK termios.h and sys/_termios.h. The module association follows its libkernel stub table and the NID rehashes to the aerolib name. Both speed fields accept every uint32 value and no flags or control characters change, as FreeBSD 11.4 termios.c does. No terminal I/O is performed. Null pointers throw where the reference dereferences them.