Re: [PATCH] Add timegm POSIX call

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Aug 14 12:49, Joel Sherrill wrote:
> On Tue, Aug 14, 2018 at 10:42 AM, Corinna Vinschen <[email protected]>
> wrote:
> 
> > On Aug 13 18:17, Andrew Russell via newlib wrote:
> > > >From e182faa79c35984b667029ef7b6e4a8ce7329897 Mon Sep 17 00:00:00 2001
> > > From: Andrew Russell <[email protected]>
> > > Date: Fri, 10 Aug 2018 12:14:18 -0700
> > > Subject: [PATCH 1/4] Start of mktime.c copy to timegm.c
> > >
> > > I am proposing to add the timegm POSIX call to
> > > Newlib. Part of this refactors some of the code in libc/time/local.h and
> > > libc/time/mktime.c, per this discussion:
> > >
> > > https://sourceware.org/ml/newlib/2018/msg00186.html
> >
> > I'm looking for comments from other (non-Cygwin) devs here.
> >
> 
> >From my perspective, I don't mind having common methods that
> are not in libc or POSIX in newlib or RTEMS. Ultimately, the wider
> set of methods makes packages easier to port.
> 
> I would ask that the method is documented using the newlib markup
> and that its historical origin is noted. The Linux man page is clearly
> discouraging:
> 
> CONFORMING TO
>        These functions are nonstandard GNU extensions that are also present
> on
>        the BSDs.  Avoid their use; see NOTES.
> 
> But overall, improving cross-platform compatibility is good even
> when it means adding extensions that have no impact when not
> used.
> 
> --joel

The new functions are ok to go in, I was more interested in people
testing the code.  Sorry if I was unclear!


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAltz6lMACgkQ9TYGna5E
T6Ch4g//RT8ufkMRq7SiAOgczV1QNcZAmvggC+Fng9l37EAC6+vimldtk2109h5w
IQ3tnt/FkroNuOH6gNtNJpmE1ye/qkDt5B/mqww+xZKGherPHtdYLXRjzHwYlWMV
FKQV1+UpSaxBip/HziYs8OCHKbPuRRsnElSi8Bf1wpT/UtAhsvtKnO6MExrdQMoz
Y6O43WDWJ8Ne3pjRcHfW6MlYUZh0m0zD/oTffO7jwX8FPVqRPb4enghet4TKYxnC
YxuHNJxiw8CoXL794YOCIQTGkHaG+fKKIq55VGzG7Wv+gERcWWyM3FE2oGKmWfVo
vGNUeOrpYW9T9T5BFv1j8t24T5cX1AyzPn0nqS1cEbWzPUM8gByfQ+iE/vp+0A6R
qsmolM/g3+0XXTLQDl6oDfSuI1R2TbFl07+U11GGNMgNIU3WDPnh4LYyyGwdYs6j
SByJGBpgcDKuxN1ynDH/Ipu3tP8pqTG5/sG/hB8inyNDgbJXmFjg9i7OrUMl7xZC
bs51wT5QMygZ6sUDMjQ+1aB3QzqJERZmcSWTko9Ho8MhgxONZ3Pfr+IKe3e5F2eW
/n/7Qge4Vi+gBRSPbfcCoGHec6WYFNE6w9JnTXpFD/MA3MNjD1rE+yaovEtFpJH/
Yk35in52/2e5SOz7M6/vNpHbheeU4f5h98NsoQlYbZ2tLjRaL3E=
=sqrR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.