diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-12-15 16:47:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-12-15 16:47:38 +0000 |
commit | e9dcb080809726a5531d2b5932b7f47e61d4bc49 (patch) | |
tree | 623dd875878dbf351ee16604ac5acddbcb9eb6cf /time/strptime.c | |
parent | 5a7cb1a2c7ba6bc3524a26f63c50ca7cf0740769 (diff) | |
download | glibc-e9dcb080809726a5531d2b5932b7f47e61d4bc49.zip glibc-e9dcb080809726a5531d2b5932b7f47e61d4bc49.tar.gz glibc-e9dcb080809726a5531d2b5932b7f47e61d4bc49.tar.bz2 |
Update.
* sysdeps/unix/sysv/linux/msgctl.c: Use INLINE_SYSCALL.
* sysdeps/unix/sysv/linux/msgget.c: Likewise.
* sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
* sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
* sysdeps/unix/sysv/linux/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/semget.c: Likewise.
* sysdeps/unix/sysv/linux/semop.c: Likewise.
* sysdeps/unix/sysv/linux/shmat.c: Likewise.
* sysdeps/unix/sysv/linux/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/shmdt.c: Likewise.
* sysdeps/unix/sysv/linux/shmget.c: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Remove ipc syscall here.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add ipc syscall here.
* time/strftime.c: Remove 'f' format.
* time/strptime.c (get_number): Ignore trailing whitespace.
(strptime_internal): Handle 'F' and 'k' formats.
Diffstat (limited to 'time/strptime.c')
-rw-r--r-- | time/strptime.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/time/strptime.c b/time/strptime.c index 315af83..f4b954d 100644 --- a/time/strptime.c +++ b/time/strptime.c @@ -86,6 +86,8 @@ localtime_r (t, tp) #define get_number(from, to) \ do { \ val = 0; \ + while (*rp == ' ') \ + ++rp; \ if (*rp < '0' || *rp > '9') \ return NULL; \ do { \ @@ -405,6 +407,12 @@ strptime_internal (buf, format, tm, decided) /* Match day of month. */ get_number (1, 31); tm->tm_mday = val; + want_xday = 1; + break; + case 'F': + if (!recursive ("%Y-%m-%d")) + return NULL; + want_xday = 1; break; case 'x': #ifdef _NL_CURRENT @@ -433,6 +441,7 @@ strptime_internal (buf, format, tm, decided) return NULL; want_xday = 1; break; + case 'k': case 'H': /* Match hour in 24-hour clock. */ get_number (0, 23); |