Files
AnyPS5/docs/dev/debt/changes/docs-libkernel-termios-console-1160.md
2026-11-17 07:35:59 +01:00

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 gets EADDRNOTAVAIL for AF_INET and EOPNOTSUPP otherwise, as FreeBSD's in_control and pru_control_notsupp answer a termios ioctl (a payload process on firmware 11.60 got from tcgetattr EADDRNOTAVAIL for descriptors 0 to 2, EBADF for -1 and 999, ENOTTY for /dev/null and pipe ends and EOPNOTSUPP for a local socket pair, and the buffer stayed unchanged; tcsetattr is 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.