Posix time.h patch.

View: New views
3 Messages — Rating Filter:   Alert me  

Posix time.h patch.

by Daniele Basile :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,
I have port some posix library functions on avr target, like:
- mktime
- asctime
- gmtime

We test these function on avr target and all works.
These functions are posix compliant, but to work on avr target we have put some
limitation:
- we could not specify the time zone, but is fix on UTC zone.
- we not manage daylight fixing it to 0.

Generally we think isn't important for an embedded target to know time zone
because we want only manage time structures so in most case refer time zone to
UTC is enough.

If you want I can post the code, and contribute it to avr libc.

Let me know what you think.

Regards,
Daniele.

--
|  [D]-o Ing. Daniele Basile - asterix@...
|   ||}-o  Develer S.r.l., R&D dept.
|  [B]-o  http://www.develer.com - http://www.bertos.org


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Re: Posix time.h patch.

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As Daniele Basile wrote:

> If you want I can post the code, and contribute it to avr libc.
>
> Let me know what you think.

Sounds interesting.  Please submit it as a patch here:

https://savannah.nongnu.org/patch/?group=avr-libc

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

RE: Posix time.h patch.

by Weddington, Eric :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

> -----Original Message-----
> From:
> avr-libc-dev-bounces+eric.weddington=atmel.com@...
> [mailto:avr-libc-dev-bounces+eric.weddington=atmel.com@nongnu.
> org] On Behalf Of Joerg Wunsch
> Sent: Sunday, October 18, 2009 2:33 PM
> To: avr-libc-dev@...
> Subject: Re: [avr-libc-dev] Posix time.h patch.
>
> As Daniele Basile wrote:
>
> > If you want I can post the code, and contribute it to avr libc.
> >
> > Let me know what you think.
>
> Sounds interesting.  Please submit it as a patch here:
>
> https://savannah.nongnu.org/patch/?group=avr-libc
>

Oh, and please note the license of avr-libc. Of course, you must be willing to submit the code under the same license.


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev