diff options
| author | ginsbach <ginsbach@NetBSD.org> | 2009-05-14 02:37:35 +0000 |
|---|---|---|
| committer | ginsbach <ginsbach@NetBSD.org> | 2009-05-14 02:37:35 +0000 |
| commit | c8da0e5fefd3800856b306200a18b2315c7fbb9f (patch) | |
| tree | 173eb52262b01825a95d1a0b6ccea0bca2ab4a7d /include | |
| parent | f5a0fe39db4dd34b6eecb48bdff166b5af955344 (diff) | |
Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').
Diffstat (limited to 'include')
| -rw-r--r-- | include/time.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h index 348bbecf5f6..5a29e9453e6 100644 --- a/include/time.h +++ b/include/time.h @@ -1,4 +1,4 @@ -/* $NetBSD: time.h,v 1.38 2009/01/11 03:04:12 christos Exp $ */ +/* $NetBSD: time.h,v 1.39 2009/05/14 02:37:36 ginsbach Exp $ */ /* * Copyright (c) 1989, 1993 @@ -131,6 +131,12 @@ char *strptime(const char * __restrict, const char * __restrict, struct tm * __restrict); #endif +#if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ + defined(_NETBSD_SOURCE) +struct tm *getdate(const char *); +extern int getdate_err; +#endif + #if (_POSIX_C_SOURCE - 0) >= 199309L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #include <sys/time.h> /* XXX for struct timespec */ |
