mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* include/stdio.h (__fxprintf): Remove wfmt argument.
* stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h. (__fxprintf): Remove wfmt argument, create wfmt format string on the fly from fmt. * argp/argp-fmtstream.c: Adjust all __fxprintf callers. * argp/argp-help.c: Likewise. * assert/assert-perr.c: Likewise. * assert/assert.c: Likewise. * gmon/gmon.c: Likewise. * inet/rcmd.c: Likewise. * malloc/obstack.c: Likewise. * misc/error.c: Likewise. * misc/getpass.c: Likewise. * posix/getopt.c: Likewise. * resolv/res_hconf.c: Likewise. * stdio-common/perror.c: Likewise. * stdio-common/psignal.c: Likewise. * stdlib/fmtmsg.c: Likewise. * sunrpc/auth_unix.c: Likewise. * sunrpc/clnt_perr.c: Likewise. * sunrpc/clnt_tcp.c: Likewise. * sunrpc/clnt_udp.c: Likewise. * sunrpc/clnt_unix.c: Likewise. * sunrpc/svc_simple.c: Likewise. * sunrpc/svc_tcp.c: Likewise. * sunrpc/svc_udp.c: Likewise. * sunrpc/svc_unix.c: Likewise. * sunrpc/xdr.c: Likewise. * sunrpc/xdr_array.c: Likewise. * sunrpc/xdr_rec.c: Likewise. * sunrpc/xdr_ref.c: Likewise. * sysdeps/generic/wordexp.c: Likewise.
This commit is contained in:
@ -47,17 +47,16 @@ psignal (int sig, const char *s)
|
||||
colon = ": ";
|
||||
|
||||
if (sig >= 0 && sig < NSIG && (desc = INTUSE(_sys_siglist)[sig]) != NULL)
|
||||
(void) __fxprintf (NULL, L"%s%s%s\n", "%s%s%s\n", s, colon, _(desc));
|
||||
(void) __fxprintf (NULL, "%s%s%s\n", s, colon, _(desc));
|
||||
else
|
||||
{
|
||||
char *buf;
|
||||
|
||||
if (__asprintf (&buf, _("%s%sUnknown signal %d\n"), s, colon, sig) < 0)
|
||||
(void) __fxprintf (NULL, "%s%s%s\n", L"%s%s%s\n",
|
||||
s, colon, _("Unknown signal"));
|
||||
(void) __fxprintf (NULL, "%s%s%s\n", s, colon, _("Unknown signal"));
|
||||
else
|
||||
{
|
||||
(void) __fxprintf (NULL, L"%s", "%s", buf);
|
||||
(void) __fxprintf (NULL, "%s", buf);
|
||||
|
||||
free (buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user