Hi Maurizio,

sure thing! There will be probably quite a lot of stuff like this in libposix 
that is specified by the C standard and could be moved without big problems. 
Btw. man pages are not a definitive source of information, its always good to 
check the standard itself - you can find links to C99 and C1x standards here: 
http://trac.helenos.org/wiki/DeveloperDocs

Checked C99 and indeed it defines these functions. I am not sure though, how 
much the implementations in libposix are correct/tested, so beware of possible 
problems :-)

Cheers
-Jiri

Maurizio wrote:
> Hi list,
> 
> According to the FreeBSD man page:
> <<The asctime(), ctime(), difftime(), gmtime(), localtime(), and
> mktime() functions conform to ISO/IEC 9899:1990 (``ISO C90'')
> and conform to ISO/IEC 9945-1:1996 (``POSIX.1'')>>
> 
> I suggest to move them from libposix to libc since they are not
> posix-only functions.
> 
> I need mktime in the rtc driver to normalize the content of the tm structure.
> Are there any objections?

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to