mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Cc: Jaydeep Patil <Jaydeep.Patil@imgtec.com>,
	Mahesh Bodapati <Mahesh.Bodapati@imgtec.com>
Subject: Re: mips n64 porting review
Date: Thu, 25 Feb 2016 13:31:09 -0500	[thread overview]
Message-ID: <20160225183109.GW9349@brightrain.aerifal.cx> (raw)
In-Reply-To: <20160225182336.GC29662@port70.net>

On Thu, Feb 25, 2016 at 07:23:36PM +0100, Szabolcs Nagy wrote:
> * dalias@libc.org <dalias@libc.org> [2016-02-25 13:01:50 -0500]:
> > On Thu, Feb 25, 2016 at 12:05:33PM +0000, Jaydeep Patil wrote:
> > > and all st_*tim members are of 16 bytes
> > 
> > Uhg. Does mips64 actually use a 32-bit time_t? If so I think with
> 
> i think time_t is always __kernel_long_t in linux uapi.
> (which is surely 64bit on mips64)

Okay, that's good to know. Apparently their 'struct stat' is just
completely unusable from userspace without conversion because the
types are wrong. This is also going to lead to a nasty hidden Y2038
bug where the system looks Y2038-ready but the kernel returns
truncated file timestamps. Fixing dynamic-linked programs will be easy
(just upgrade libc.so to use whatever new syscall the kernel adds) but
for static-linked ones the bug will remain buried until it blows up..
(unless you use strace to check for it)

Rich


  parent reply	other threads:[~2016-02-25 18:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22 10:06 Mahesh Bodapati
2016-02-22 14:16 ` Bobby Bingham
2016-02-23  3:32 ` Rich Felker
     [not found]   ` <CAKd0kD+qQhvhiuaQ483ds2KyGD5qFjqJg4pOT6GyqCaoR9_auA@mail.gmail.com>
     [not found]     ` <DE16056458B9894F9D46202EC1BBB28B3BE16033@PUMAIL01.pu.imgtec.org>
2016-02-24 10:11       ` Jaydeep Patil
2016-02-24 17:53         ` dalias
2016-02-25  8:21           ` Jaydeep Patil
     [not found]     ` <DE16056458B9894F9D46202EC1BBB28B3BE162B3@PUMAIL01.pu.imgtec.org>
2016-02-25 12:05       ` Jaydeep Patil
2016-02-25 18:01         ` dalias
2016-02-25 18:22           ` dalias
2016-02-26  3:58             ` Jaydeep Patil
2016-02-25 18:23           ` Szabolcs Nagy
2016-02-25 18:29             ` Szabolcs Nagy
2016-02-25 18:31             ` Rich Felker [this message]
     [not found] <DE16056458B9894F9D46202EC1BBB28B3BDC3210@PUMAIL01.pu.imgtec.org>
2016-02-03 23:36 ` Rich Felker
2016-02-04  0:45 ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160225183109.GW9349@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=Jaydeep.Patil@imgtec.com \
    --cc=Mahesh.Bodapati@imgtec.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).