bug-gnulib
[Top][All Lists]
Advanced

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

new module 'sigdescr_np'


From: Bruno Haible
Subject: new module 'sigdescr_np'
Date: Sat, 22 Aug 2020 02:32:29 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; )

sigdescr_np is another new function in glibc 2.32. Although I doubt that it's
practically useful (since it doesn't support internationalization), here is
a module to make this function usable in portable code.

I took the freedom to improve on some system's messages. For example:

Signal        Original description          Gnulib description

SIGFPE        "Floating point exception"    "Arithmetic exception"

SIGPOLL       "Pollable event"              "I/O possible"

SIGTRAP       "Trace/BPT trap"              "Trace/breakpoint trap"

SIGXCPU       "Cpu limit exceeded"          "CPU time limit exceeded"

SIGEMT        "EMT trap"                    "Instruction emulation needed"

SIGLOST       "Resource lost"               "File lock lost"

SIGSAK        "Secure attention"            "Secure Attention Key"

SIGWINCH      "Window changed"              "Window size changed"


2020-08-21  Bruno Haible  <bruno@clisp.org>

        sigdescr_np: Add tests.
        * tests/test-sigdescr_np.c: New file.
        * modules/sigdescr_np-tests: New file.

        sigdescr_np: New module.
        * lib/string.in.h (sigdescr_np): New declaration.
        * lib/sigdescr_np.c: New file.
        * m4/sigdescr_np.m4: New file.
        * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
        declared.
        (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
        HAVE_SIGDESCR_NP.
        * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
        HAVE_SIGDESCR_NP.
        * modules/sigdescr_np: New file.
        * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
        * doc/glibc-functions/sigdescr_np.texi: Mention the new module.

Attachment: 0001-sigdescr_np-New-module.patch
Description: Text Data

Attachment: 0002-sigdescr_np-Add-tests.patch
Description: Text Data


reply via email to

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