Server IP : 15.235.198.142 / Your IP : 216.73.216.17 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/src/linux-headers-6.8.0-45/tools/testing/selftests/kselftest/ |
Upload File : |
#!/usr/bin/env perl # SPDX-License-Identifier: GPL-2.0 # Prefix all lines with "# ", unbuffered. Command being piped in may need # to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd". use strict; use IO::Handle; binmode STDIN; binmode STDOUT; STDOUT->autoflush(1); my $needed = 1; while (1) { my $char; my $bytes = sysread(STDIN, $char, 1); exit 0 if ($bytes == 0); if ($needed) { print "# "; $needed = 0; } print $char; $needed = 1 if ($char eq "\n"); }