| To: | yyyyyyyyyyyyyy@xxxxxxxxxxxxx |
|---|---|
| Subject: | Re: Proposed submissions for the revision from The Open Group |
| From: | David Hopwood <yyyyyyyyyyyyyyyyyyyy@xxxxxxxxxxxxxxxx> |
| Date: | Tue, 10 Jan 2006 02:46:03 +0000 |
| References: | <1060109184758.ZM17257@skye.rdg.opengroup.org> <17346.48571.685761.731503@khavrinen.csail.mit.edu> |
Garrett Wollman wrote: > <<On Mon, 9 Jan 2006 18:47:58 GMT, Andrew Josey <yyyyyy@xxxxxxxxxxxxxxxxx> >said: > >><string.h> >>stpcpy() >>stpncpy() > > Rather odd functions of questionable utility. Why these and not > strlcpy()/strlcat() from OpenBSD, which seem to have a wide following > and actually has improved semantics over the functions on which they > are based? I agree with this comment. >>strsignal() > > Should be part of the base standard. It's always been something of a > wart that we have had perror()/strerror() and not psignal()/strsignal(), > given that the two indicators are otherwise very similar in > construction and both are needed for correct implementation of a shell. The strsignal() function returns a string describing the signal number passed in the argument sig. The string can only be used until the next call to strsignal(). This is not threadsafe. Please fix that; POSIX shouldn't be adding more non-threadsafe APIs. Since there are only a small number of constant signal names, it would be sufficient to keep the signature the same, but guarantee that the returned string can be used indefinitely. -- David Hopwood <yyyyyyyyyyyyyyyyyyyy@xxxxxxxxxxxxxxxx> |
| Previous by Date: | Re: Proposed submissions for the revision from The Open Group, Andrew Josey |
|---|---|
| Next by Date: | inconsistent names for new openat-style functions, Jim Meyering |
| Previous by Thread: | Re: Proposed submissions for the revision from The Open Group, Andrew Josey |
| Next by Thread: | Re: Proposed submissions for the revision from The Open Group, Paul Eggert |
| Indexes: | [Date] [Thread] [All Lists] |