]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - tools/testing/selftests/kselftest/prefix.pl
2 # SPDX-License-Identifier: GPL-2.0
3 # Prefix all lines with "# ", unbuffered. Command being piped in may need
4 # to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd".
16 my $bytes = sysread(STDIN
, $char, 1);
17 exit 0 if ($bytes == 0);
23 $needed = 1 if ($char eq "\n");