bug-gnulib
[Top][All Lists]
Advanced

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

strsignal module


From: Colin Watson
Subject: strsignal module
Date: Sun, 6 Jan 2008 09:46:49 +0000
User-agent: Mutt/1.5.13 (2006-08-11)

I use strsignal in man-db, and would like a Gnulib module to cope with
its portability problems. Here's one which seems to be doing the right
thing for me so far. This is my first attempt at writing a Gnulib module
from scratch, so I'd appreciate any comments, style or otherwise.

The main practical problem I have so far is that this implementation
uses snprintf, which drags in rather a lot of dependencies (importing
strsignal into man-db, which was already using quite a bit of Gnulib,
adds 40 new files). I'd rather use something lighter if possible.
Unfortunately strsignal can't really use asprintf because the glibc
version writes into a static buffer and I'd like to behave the same way.
Does anyone have any suggestions?

This implementation is based on glibc's. I've attached the diff against
current CVS for the files in question.

Thanks,

-- 
Colin Watson                                       address@hidden

Attachment: gnulib.strsignal.diff
Description: Text Data

Attachment: gnulib.strsignal-vs-libc.diff
Description: Text Data


reply via email to

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