#!/usr/bin/perl -w use strict; my %syscalls = (); while (<>) { if (/^#define (__NR_\w+) /) { $syscalls{$1} = 1; } } print <