From ab5c381b13d71bff20166a1c0b1d4e8ea1ebefec Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 26 Nov 2023 18:46:14 +0100 Subject: Add system calls and scripts for finding new and extended system calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dev/new-accept4-flags | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 dev/new-accept4-flags (limited to 'dev/new-accept4-flags') diff --git a/dev/new-accept4-flags b/dev/new-accept4-flags new file mode 100755 index 0000000..019681b --- /dev/null +++ b/dev/new-accept4-flags @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2