mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Update.
* libio/tst_swprintf.c (main): Add test for string argument with zero precision.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2001-12-13 Ulrich Drepper <drepper@redhat.com>
|
2001-12-13 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* libio/tst_swprintf.c (main): Add test for string argument with
|
||||||
|
zero precision.
|
||||||
* stdio-common/Makefile (tests): Add tst-sprintf.
|
* stdio-common/Makefile (tests): Add tst-sprintf.
|
||||||
* stdio-common/tst-sprintf.c: New file.
|
* stdio-common/tst-sprintf.c: New file.
|
||||||
|
|
||||||
|
@@ -68,8 +68,24 @@ main (int argc, char *argv[])
|
|||||||
result = 1;
|
result = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") OK\n",
|
printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") OK\n",
|
||||||
tests[n].n, tests[n].str);
|
tests[n].n, tests[n].str);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (swprintf (buf, nbuf, L"%.0s", "foo") != 0
|
||||||
|
|| wcslen (buf) != 0)
|
||||||
|
{
|
||||||
|
printf ("swprintf (buf, %Zu, L\"%%.0s\", \"foo\") create some output\n",
|
||||||
|
nbuf);
|
||||||
|
result = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (swprintf (buf, nbuf, L"%.0ls", L"foo") != 0
|
||||||
|
|| wcslen (buf) != 0)
|
||||||
|
{
|
||||||
|
printf ("swprintf (buf, %Zu, L\"%%.0ls\", L\"foo\") create some output\n",
|
||||||
|
nbuf);
|
||||||
|
result = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2001-12-13 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* specific.c (pthread_key_delete): Don't contact the thread
|
||||||
|
manager if no threads have been created yet.
|
||||||
|
|
||||||
2001-12-12 NIIBE Yutaka <gniibe@.m17n.org>
|
2001-12-12 NIIBE Yutaka <gniibe@.m17n.org>
|
||||||
|
|
||||||
* sysdeps/sh/pt-machine.h (INIT_THREAD_SELF): Added __volatile__
|
* sysdeps/sh/pt-machine.h (INIT_THREAD_SELF): Added __volatile__
|
||||||
@@ -15,8 +20,7 @@
|
|||||||
|
|
||||||
2001-11-29 Andreas Jaeger <aj@suse.de>
|
2001-11-29 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
* sysdeps/x86_64/pt-machine.h: Use %gs as thread specific
|
* sysdeps/x86_64/pt-machine.h: Use %gs as thread specific register.
|
||||||
register.
|
|
||||||
(THREAD_SELF): New.
|
(THREAD_SELF): New.
|
||||||
(INIT_THREAD_SELF): New.
|
(INIT_THREAD_SELF): New.
|
||||||
(THREAD_GETMEM): New.
|
(THREAD_GETMEM): New.
|
||||||
|
Reference in New Issue
Block a user