blob: 019681b3a1ae6a5122f3909dbec4e22ed8412536 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
set -e
cd -- "$(dirname -- "$0")"
cat ../print.c | \
sed '1,/^print_accept4_flags\s*(/d;1,/^\s*FLAGS_BEGIN\b/d;/^\s*FLAGS_END\b/q' | \
sed '$d' | tr \(\) ,, | cut -d , -f 2 | sort \
> .accept4-flags.old
cat /usr/include/bits/socket_type.h | tr '\t' ' ' | \
grep ' *SOCK_.*= *0[0-9x]' | grep -o 'SOCK_[^ =]*' | sort \
> .accept4-flags.new
exec diff -u .accept4-flags.old .accept4-flags.new
|