From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5017 Path: news.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: ctime, timezone? Date: Thu, 1 May 2014 16:37:16 -0400 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3b5dcab009704f85ca252 X-Trace: ger.gmane.org 1398976676 14626 80.91.229.3 (1 May 2014 20:37:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 20:37:56 +0000 (UTC) To: musl Original-X-From: musl-return-5021-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 01 22:37:49 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Wfxjp-0000OT-5R for gllmg-musl@plane.gmane.org; Thu, 01 May 2014 22:37:49 +0200 Original-Received: (qmail 15441 invoked by uid 550); 1 May 2014 20:37:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 15433 invoked from network); 1 May 2014 20:37:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=69Pih8RbtM5GmcivWe/u1adJpYlCcnqDIsWEP1R1Yig=; b=kj4vgoHOZnyocGimHL2azB5ynpqgz+Km5ZGs6KDbAErtl+qjriagOUFsM9EIHMvFCA xJpnd5iOM1eo6vLpE+K+laoLR0Gb+XvQV8z2h+AoWx/I+zYg+axGk0BXd4QBf12eqJCw m5PHHtV6yZf6z7F1ERerynw8cMmO5YXnikhKLS+bd+J2GE07Ul2X5jOwbTnwlRbvpkFS f6mJQqKx1MKGJ99G8NK2NKj3ijyBXDwM92tVv2xlNGQHaqZD8DTnFb2G+/0ar8TZ3GlY Qq/g35Jsb32iDZ4lAemp/SFjpOPGNElL9Wc2N1SxfIqtCygd0UWP0RpyzL85EeYFVDW8 e4Mg== X-Received: by 10.112.13.35 with SMTP id e3mr2537742lbc.44.1398976656636; Thu, 01 May 2014 13:37:36 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:5017 Archived-At: --001a11c3b5dcab009704f85ca252 Content-Type: text/plain; charset=ISO-8859-1 Am I doing something wrong? I expected roughly the same time when running the musl version. $ cat test_ctime.c #include #include int main() { time_t t = time(0); printf("%s", ctime(&t)); } $ $ gcc test_ctime.c -o test_ctime $ test_ctime Thu May 1 16:33:16 2014 $ $ musl-gcc -fno-stack-protector test_ctime.c -o test_ctime $ test_ctime Thu May 1 20:33:46 2014 $ --001a11c3b5dcab009704f85ca252 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Am I doing something wrong? I expected roughly the same ti= me when running the musl version.


$ = cat test_ctime.c=A0
#include <stdio.h>
#include &= lt;time.h>

int main()
{
=A0 =A0 time_t t =3D t= ime(0);
=A0 =A0 printf("%s", ctime(&t));
= }
$=A0


$ gcc = =A0test_ctime.c =A0 -o test_ctime
$ test_ctime
Thu May =A01 16:33:16 2014
$=A0
=


$ musl-gcc -fno-stack-protect= or =A0 =A0test_ctime.c =A0 -o test_ctime
$ test_ctime
T= hu May =A01 20:33:46 2014
$
--001a11c3b5dcab009704f85ca252--