Mercurial > hg > freeDiameter
view 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 source
#!/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