Re: timegm()

2020-04-24 Thread Ingo Schwarze
s standardized, while timelocal(3) is not. >> >> But i don't quite see why timegm(3) should be marked as deprecated: >> sure it was never standardized, but i don't see a better portable >> way to achieve the same. >> >> Consequently, i suggest dropping millert'

Re: timegm()

2020-04-23 Thread Theo de Raadt
ve verified that they were present in SunOS 4.1.3U1, > > though that code appears to be derived from tzcode too. > > Bit Savers has scans of the SunOS 4.0 print manuals which includes > a hard-copy of the man pages. Here you can see that timegm() and > timelocal() wer

Re: timegm()

2020-04-23 Thread Todd C . Miller
> though that code appears to be derived from tzcode too. Bit Savers has scans of the SunOS 4.0 print manuals which includes a hard-copy of the man pages. Here you can see that timegm() and timelocal() were present in SunOS in 1987: archive.org/details/bitsavers_sunsunos4.erenceManual198805_78292

Re: timegm()

2020-04-22 Thread Todd C . Miller
On Thu, 23 Apr 2020 04:21:42 +0200, Ingo Schwarze wrote: > Calling timelocal(3) deprecated makes sense to me because it is > nothing but a trivial wrapper around mktime(3), and the latter > is standardized, while timelocal(3) is not. > > But i don't quite see why timegm(3) s

Re: timegm()

2020-04-22 Thread Ingo Schwarze
Hi, Theo de Raadt wrote on Wed, Apr 22, 2020 at 12:11:56AM -0600: > William Ahern wrote: >> On Tue, Apr 21, 2020 at 02:01:10PM +0200, Otto Moerbeek wrote: >>> On Tue, Apr 21, 2020 at 10:51:54AM +, Roderick wrote: >>>> Acording to the man page: "

Re: timegm()

2020-04-22 Thread Theo de Raadt
William Ahern wrote: > On Tue, Apr 21, 2020 at 02:01:10PM +0200, Otto Moerbeek wrote: > > On Tue, Apr 21, 2020 at 10:51:54AM +, Roderick wrote: > > > > > > > > Acording to the man page: "timegm() is a deprecated interface that > > > converts

Re: timegm()

2020-04-21 Thread William Ahern
On Tue, Apr 21, 2020 at 02:01:10PM +0200, Otto Moerbeek wrote: > On Tue, Apr 21, 2020 at 10:51:54AM +, Roderick wrote: > > > > > Acording to the man page: "timegm() is a deprecated interface that > > converts [...]" > > > > O.K., deprecated

Re: timegm()

2020-04-21 Thread Roderick
On Tue, 21 Apr 2020, Otto Moerbeek wrote: O.K., deprecated. And what is the alternative? The paragraph above it (discussing timelocal()) suggests it's mktime(). Thanks. I would preffer to reimplement timegm if it disappears than going trhough the locale: it should be one or two lines

Re: timegm()

2020-04-21 Thread Otto Moerbeek
On Tue, Apr 21, 2020 at 10:51:54AM +, Roderick wrote: > > Acording to the man page: "timegm() is a deprecated interface that > converts [...]" > > O.K., deprecated. And what is the alternative? > > Thanks for any hint > Rodrigo > The paragraph above

timegm()

2020-04-21 Thread Roderick
Acording to the man page: "timegm() is a deprecated interface that converts [...]" O.K., deprecated. And what is the alternative? Thanks for any hint Rodrigo