2 ms·
I say it again: This is a kernel mechanism. Every operating system based upon Linux provides programs with this mechanism. This is not some ioctl() introduced
by JdeBP 8y ago
I say it again: This is a kernel mechanism.
Every operating system based upon Linux provides programs with this mechanism. This is not some ioctl() introduced by a Debian patch. This is a mechanism added to Linux by Linus Torvalds on 1993-12-23.
* http://repo.or.cz/davej-history.git/commitdiff/9d0948641495169728d4074f976fd655e30afedf http://repo.or.cz/davej-history.git/commitdiff/9d09486414951...
Pete French added it to FreeBSD against his better judgement on 2010-01-04. It might have been in an earlier implementation of the terminal line discipline, too.
* https://github.com/freebsd/freebsd/commit/74b0526bbe6326adb72e26dabfe79ab1fe00ca4b https://github.com/freebsd/freebsd/commit/74b0526bbe6326adb7...
OpenBSD, which no longer implements the kernel mechanism, had had it since the initial import from NetBSD in 1995.
* https://github.com/openbsd/src/blob/df930be708d50e9715f173caa26ffe1b7599b157/sys/kern/tty.c#L847 https://github.com/openbsd/src/blob/df930be708d50e9715f173ca...
Illumos has it, and has had since at least the OpenSolaris launch.
* https://github.com/illumos/illumos-gate/blob/9a2c4685271c2f0cb4b08f4cc1192387e67af3f9/usr/src/uts/common/io/tty_common.c#L263 https://github.com/illumos/illumos-gate/blob/9a2c4685271c2f0...
It was even in 4.3BSD.