This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LIBC - add strptime()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]