public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/17651] New: Expose thread-safe timezone API
@ 2014-11-26 16:14 maxim.yegorushkin at gmail dot com
  2014-11-26 17:01 ` [Bug libc/17651] " joseph at codesourcery dot com
  2015-08-27 22:25 ` [Bug time/17651] " jsm28 at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: maxim.yegorushkin at gmail dot com @ 2014-11-26 16:14 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17651

            Bug ID: 17651
           Summary: Expose thread-safe timezone API
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: maxim.yegorushkin at gmail dot com
                CC: drepper.fsp at gmail dot com

Upstream tz project exposes the functions required for easy and thread-safe
timezone conversions, see
https://github.com/eggert/tz/blob/master/private.h#L409

    /*
    ** Define functions that are ABI compatible with NetBSD but have
    ** better prototypes.  NetBSD 6.1.4 defines a pointer type timezone_t
    ** and labors under the misconception that 'const timezone_t' is a
    ** pointer to a constant.  This use of 'const' is ineffective, so it
    ** is not done here.  What we call 'struct state' NetBSD calls
    ** 'struct __state', but this is a private name so it doesn't matter.
    */
    #if NETBSD_INSPIRED

    typedef struct state *timezone_t;
    struct tm *localtime_rz(timezone_t restrict, time_t const* restrict, struct
tm* restrict);
    time_t mktime_z(timezone_t restrict, struct tm *restrict);
    timezone_t tzalloc(char const *);
    void tzfree(timezone_t);

    /* ... */
    #endif

Would it be possible to expose these NETBSD_INSPIRED 4 functions in glibc?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/17651] Expose thread-safe timezone API
  2014-11-26 16:14 [Bug libc/17651] New: Expose thread-safe timezone API maxim.yegorushkin at gmail dot com
@ 2014-11-26 17:01 ` joseph at codesourcery dot com
  2015-08-27 22:25 ` [Bug time/17651] " jsm28 at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: joseph at codesourcery dot com @ 2014-11-26 17:01 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17651

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
Please propose new APIs on libc-alpha, not in Bugzilla (and expect to take 
a lead in driving the discussion to consensus, and in producing a complete 
implementation, including documentation and testcases, if a consensus is 
reached that the APIs are appropriate to add to glibc).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug time/17651] Expose thread-safe timezone API
  2014-11-26 16:14 [Bug libc/17651] New: Expose thread-safe timezone API maxim.yegorushkin at gmail dot com
  2014-11-26 17:01 ` [Bug libc/17651] " joseph at codesourcery dot com
@ 2015-08-27 22:25 ` jsm28 at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:25 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17651

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |time

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-27 22:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-26 16:14 [Bug libc/17651] New: Expose thread-safe timezone API maxim.yegorushkin at gmail dot com
2014-11-26 17:01 ` [Bug libc/17651] " joseph at codesourcery dot com
2015-08-27 22:25 ` [Bug time/17651] " jsm28 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).