From: Ben Gras Date: Tue, 22 Jun 2010 21:42:49 +0000 (+0000) Subject: strptime() for minix. X-Git-Tag: v3.1.8~385 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.png?a=commitdiff_plain;h=ddc3f6229071ba46754220e658ff00001814d0fc;p=minix.git strptime() for minix. --- diff --git a/include/time.h b/include/time.h index fe2970dd9..7dc7de459 100644 --- a/include/time.h +++ b/include/time.h @@ -66,6 +66,8 @@ _PROTOTYPE( struct tm *localtime_r, (const time_t *const timep, struct tm *tmp) ); _PROTOTYPE( size_t strftime, (char *_s, size_t _max, const char *_fmt, const struct tm *_timep) ); +_PROTOTYPE(char *strptime, (const char *buf, const char *format, + struct tm *timeptr) ); #ifdef _POSIX_SOURCE _PROTOTYPE( void tzset, (void) ); diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc index 518de68f9..7588617d7 100644 --- a/lib/libc/stdtime/Makefile.inc +++ b/lib/libc/stdtime/Makefile.inc @@ -5,4 +5,5 @@ SRCS+= \ ftime.c \ asctime.c \ localtime.c \ - strftime.c + strftime.c \ + strptime.c diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c index 59eacbcc7..968283a7e 100644 --- a/lib/libc/stdtime/strptime.c +++ b/lib/libc/stdtime/strptime.c @@ -34,10 +34,18 @@ #include #endif #include +#ifdef __minix +#include +#include +#include +#endif + +#ifndef __minix #include "roken.h" __RCSID("$Heimdal: strptime.c,v 1.2 1999/11/12 15:29:55 assar Exp $" "$NetBSD: strptime.c,v 1.1.1.3 2002/09/12 12:41:42 joda Exp $"); +#endif static const char *abb_weekdays[] = { "Sun",