LIBC - add strptime()

Jonathan Larmour jifl@eCosCentric.com
Tue Jan 28 00:41:00 GMT 2003


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



More information about the Ecos-patches mailing list