chiark
/
gitweb
/
~mdw
/
adns
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d3462813cc954166b22dd415bbe40ee950557f07
[adns]
/
regress
/
fcntl-change.pl
1
s/^( fcntl fd=\d+ cmd=F_SETFL) 2050$/$1 O_NONBLOCK\|\.\.\./;
2
if ($last =~ m/^ fcntl fd=\d+ cmd=F_GETFL$/) {
3
s/^ fcntl=2$/ fcntl\=\~O_NONBLOCK\&.../;
4
}
5
if ($last =~ m/^ fcntl fd=\d+ cmd=F_SETFL /) {
6
s/^ fcntl=0$/ fcntl\=OK/;
7
}
8
$last=$_;