Mercurial > hg > freeDiameter
diff contrib/signalent.h.sh @ 235:8773740401a5
Centralized signal handlers management in the library
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 05 Mar 2010 19:01:48 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/signalent.h.sh Fri Mar 05 19:01:48 2010 +0900 @@ -0,0 +1,9 @@ +#!/bin/bash + +# The goal here is to regenerate a file signalent.h if it is missing. This file contains only a list of the signals abbreviations. + +# This script needs to be improved... +cpp -dM /usr/include/signal.h \ + | tr -s '\t ' ' ' \ + | sed 's:#define \(SIG[A-Z]\+[0-9]*\) \([0-9]\+\):\2 \1:p;d' \ + | sort -n --unique