mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
Update.
* time/strftime.c (my_strftime): Add compatibility code for use outside glibc. Patch by Jim Meyering <meyering@ascend.com>.
This commit is contained in:
parent
db7dc81100
commit
e668889af2
@ -1,5 +1,8 @@
|
|||||||
2000-08-30 Ulrich Drepper <drepper@redhat.com>
|
2000-08-30 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* time/strftime.c (my_strftime): Add compatibility code for use
|
||||||
|
outside glibc. Patch by Jim Meyering <meyering@ascend.com>.
|
||||||
|
|
||||||
* sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
|
* sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
|
||||||
return 0 for success but always < 0 on failure.
|
return 0 for success but always < 0 on failure.
|
||||||
|
|
||||||
|
@ -83,6 +83,10 @@ extern char *tzname[];
|
|||||||
# include <stddef.h>
|
# include <stddef.h>
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
# include <string.h>
|
# include <string.h>
|
||||||
|
#else
|
||||||
|
# ifndef HAVE_MEMCPY
|
||||||
|
# define memcpy(d, s, n) bcopy ((s), (d), (n))
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef COMPILE_WIDE
|
#ifdef COMPILE_WIDE
|
||||||
@ -816,6 +820,14 @@ my_strftime (s, maxsize, format, tp ut_argument)
|
|||||||
char *u = ufmt;
|
char *u = ufmt;
|
||||||
char ubuf[1024]; /* enough for any single format in practice */
|
char ubuf[1024]; /* enough for any single format in practice */
|
||||||
size_t len;
|
size_t len;
|
||||||
|
/* Make sure we're calling the actual underlying strftime.
|
||||||
|
In some cases, config.h contains something like
|
||||||
|
"#define strftime rpl_strftime". */
|
||||||
|
# ifdef strftime
|
||||||
|
# undef strftime
|
||||||
|
size_t strftime ();
|
||||||
|
# endif
|
||||||
|
|
||||||
*u++ = '%';
|
*u++ = '%';
|
||||||
if (modifier != 0)
|
if (modifier != 0)
|
||||||
*u++ = modifier;
|
*u++ = modifier;
|
||||||
|
Loading…
Reference in New Issue
Block a user