[patch #6951] Time posix patch.

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

[patch #6951] Time posix patch.

by anonymous-98 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


URL:
  <http://savannah.nongnu.org/patch/?6951>

                 Summary: Time posix patch.
                 Project: AVR C Runtime Library
            Submitted by: asterix
            Submitted on: lun 19 ott 2009 16:04:59 CEST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I ported some posix time library functions on avr target, like:
- mktime
- asctime
- gmtime

This patch could be apply to this version:
avr-libc-1.6.7.tar.bz2                 01-Jul-2009 17:33  1.2M


Note: patch's code license is BSD modified, but most code I have taken form
the newlib (BSD modified to) and adapted for avr target. If this is a problem
I can rewrite the code to not have any license issue.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: lun 19 ott 2009 16:04:59 CEST  Name: time.patch  Size: 141kB   By:
asterix

<http://savannah.nongnu.org/patch/download.php?file_id=18901>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6951>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.nongnu.org/



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

[patch #6951] Time posix patch.

by anonymous-98 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #1, patch #6951 (project avr-libc):

Please point out which code was taken from newlib, and from which files in
newlib. We will need to double-check the license to make sure that it matches
and that it can be used in avr-libc.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6951>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



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

[patch #6951] Time posix patch.

by anonymous-98 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #2, patch #6951 (project avr-libc):

The code was taken from these files:
newlib/libc/time/
- asctime.c
- asctime_r.c
- local.h
- gmtime_r.c
- gmtime.c
- mktm_r.c
- mktime.c
newlib/libc/include
- time.h

the newlib version is: 2008-12-22: newlib-1.17.0

The licenses of newlib is:
http://sources.redhat.com/newlib/COPYING.NEWLIB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6951>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.nongnu.org/



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

[patch #6951] Time posix patch.

by anonymous-98 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #3, patch #6951 (project avr-libc):

there are some updates on mine time.h posix patch proposal?


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6951>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.nongnu.org/



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

RE: [patch #6951] Time posix patch.

by Weddington, Eric :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

> -----Original Message-----
> From: Daniele Basile [mailto:INVALID.NOREPLY@...]
> Sent: Monday, November 02, 2009 2:51 AM
> To: joerg_wunsch@...; Daniele Basile;
> Weddington, Eric; avr-libc-dev@...
> Subject: [patch #6951] Time posix patch.
>
>
> Follow-up Comment #3, patch #6951 (project avr-libc):
>
> there are some updates on mine time.h posix patch proposal?

You will know when there are updates on your proposal, because we'll either make comments on the patch tracker item, or we will commit it and close the patch tracker. Right now I think all of the developers are busy with other things at the moment.


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

[patch #6951] Time posix patch.

by anonymous-98 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of patch #6951 (project avr-libc):

                  Status:                    None => In Progress            
             Assigned to:                    None => dmix                  

    _______________________________________________________

Follow-up Comment #4:

After a few obvious changes (merge day/month names in one
string, replace macroses to normal functions) the size is reduced
(without called library functions):
  asctime(): 104 --> 69 words
  gmtime(): 339 --> 280 words
  mktime(): 632 --> 461 words
(Note, the sprintf() usage in asctime() is doubtful.)
In progress...


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6951>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



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

[patch #6951] Time posix patch.

by anonymous-98 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #5, patch #6951 (project avr-libc):

Hi Dmitry,

We cannot commit this code until we verify that the licenses for these
specific modules match the license of avr-libc.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6951>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



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

[patch #6951] Time posix patch.

by anonymous-98 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #6, patch #6951 (project avr-libc):

OK, I shall not hurry.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6951>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



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