X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..31e2a93e08a0e68d71e37f9697564d26936b5819:/lib/signame.c?ds=sidebyside
diff --git a/lib/signame.c b/lib/signame.c
index 212ebee..27f9509 100644
--- a/lib/signame.c
+++ b/lib/signame.c
@@ -15,7 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
+/** @file lib/signame.c
+ * @brief Signal names
+ */
#include "common.h"
#include
@@ -132,6 +134,10 @@ static const struct sigtable {
#undef S
};
+/** @brief Map a signal name to its number
+ * @param s Signal name e.g. "SIGINT"
+ * @return Signal value or -1 if not found
+ */
int find_signal(const char *s) {
int n;