[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sig2str and str2sig use in C++

From: Daniel J Sebald
Subject: sig2str and str2sig use in C++
Date: Sat, 01 Jun 2013 22:14:45 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

Hello gnulib folks,

Please consider placing extern "C" around the sig2str and str2sig declarations inside sig2str.h similar to the attached diff/changeset. We're looking at using the sig2str routine in Octave and removing some code from that project that is similar to what sig2str but not up-to-date with all the Unix SIG definitions that might exist.

I would also like you to consider the issue of duplicate signal definitions (i.e., different SIGxxxx using the same number such as SIGCHLD and SIGCLD). Right now, sig2str will return only one string associated with the signal number (first appearance) even though internally the structure numname[] contains a complete list. If someone wants to know all definitions, then sig2str doesn't really indicate that. What do people think? Should there be a routine that provides a complete listing?

Thank you,


Attachment: gnulib-hg_sig2str_2013jun01.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]