#!/bin/sh
cat /usr/include/bits/signum.h |grep -v SIGRT |egrep "^#define[ 	]+SIG[A-Z]" |perl -pi -e "s,^#define[ 	]+SIG,,;s,/\*.*,," |while read name num; do
	if expr $num + 1 &>/dev/null; then
		echo "{ $num, \"$name\" },"
		eval "SIG${name}=${num}"
	fi
done
