This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: LIBC - add strptime()
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Gary Thomas <gary at mlbassoc dot com>
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: Tue, 28 Jan 2003 00:41:35 +0000
- Subject: Re: LIBC - add strptime()
- References: <1043705443.24759.1032.camel@hermes.chez-thomas.org>
Gary Thomas wrote:
cdl_option CYGFUN_LIBC_TIME_POSIX {
display "POSIX time functions"
default_value 1
+ requires CYGFUN_LIBC_STRING_BSD_FUNCS
+ compile asctime_r.cxx ctime_r.cxx gmtime_r.cxx \
+ localtime_r.cxx strptime.cxx
description "
Enabling this option allows the use of the
following functions defined in POSIX 1003.1:
- asctime_r(), ctime_r(), gmtime_r(), and
+ asctime_r(), ctime_r(), gmtime_r(), strptime(), and
localtime_r()."
}
cdl_option CYGFUN_LIBC_TIME_SUS_EXTNS {
display "Single UNIX extensions"
@@ -314,11 +318,14 @@ cdl_package CYGPKG_LIBC_TIME {
cdl_option CYGPKG_LIBC_TIME_TESTS {
display "C library time and date function tests"
flavor data
no_define
- calculated { "tests/asctime tests/clock tests/ctime tests/gmtime tests/localtime tests/mktime tests/strftime tests/time" }
+ calculated {
+ "tests/asctime tests/clock tests/ctime tests/gmtime tests/localtime tests/mktime tests/strftime tests/time "
+ . (CYGSEM_LIBC_TIME_POSIX_TIME_ROUTINES ? "tests/strptime" : "")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oops! Fixed.
Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine