| To: | "H. Peter Anvin" <hpa@xxxxxxxxx> |
|---|---|
| Subject: | Re: [RFC 11/32] xfs: convert to struct inode_time |
| From: | Theodore Ts'o <tytso@xxxxxxx> |
| Date: | Mon, 2 Jun 2014 19:32:12 -0400 |
| Cc: | Chuck Lever <chuck.lever@xxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Nicolas Pitre <nicolas.pitre@xxxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, LKML Kernel <linux-kernel@xxxxxxxxxxxxxxx>, linux-arch@xxxxxxxxxxxxxxx, joseph@xxxxxxxxxxxxxxxx, john.stultz@xxxxxxxxxx, Christoph Hellwig <hch@xxxxxxxxxxxxx>, tglx@xxxxxxxxxxxxx, geert@xxxxxxxxxxxxxx, lftan@xxxxxxxxxx, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx, Linux NFS Mailing List <linux-nfs@xxxxxxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=vjUN2kYJtzcZcFomQ6ac87QTu2EfeRU1YFzK2l9gVaQ=; b=Y8+bFZBz+UdnKzHi/MsnT36ngyMgjcabqlQzB+5Eabm55eavLSjFW7zpVR6jXaDSHTzSFB9lQLUF/sP30fJ+4LM7pyVC01XtzKrEeKftWgRL+s1Zvl51QdrFlUhSjWcqo18Xi9pNSsaUn82NE+S/Q4TW3rg6dPe+9Djime5TwRc=; |
| In-reply-to: | <538CFB83.20703@xxxxxxxxx> |
| Mail-followup-to: | Theodore Ts'o <tytso@xxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Chuck Lever <chuck.lever@xxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Nicolas Pitre <nicolas.pitre@xxxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, LKML Kernel <linux-kernel@xxxxxxxxxxxxxxx>, linux-arch@xxxxxxxxxxxxxxx, joseph@xxxxxxxxxxxxxxxx, john.stultz@xxxxxxxxxx, Christoph Hellwig <hch@xxxxxxxxxxxxx>, tglx@xxxxxxxxxxxxx, geert@xxxxxxxxxxxxxx, lftan@xxxxxxxxxx, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx, Linux NFS Mailing List <linux-nfs@xxxxxxxxxxxxxxx> |
| References: | <1401480116-1973111-1-git-send-email-arnd@xxxxxxxx> <8618458.1EVJCoVbkH@wuerfel> <alpine.LFD.2.11.1406012121430.17310@xxxxxxxxxxx> <4178301.j9kWdGCRLC@wuerfel> <6868F108-F0B2-423F-AE31-90DF86A5B7DD@xxxxxxxxxx> <20140602153124.GH30598@xxxxxxxxx> <538CB085.5000502@xxxxxxxxx> <20140602222954.GA29690@xxxxxxxxx> <538CFB83.20703@xxxxxxxxx> |
| User-agent: | Mutt/1.5.23 (2014-03-12) |
On Mon, Jun 02, 2014 at 03:32:35PM -0700, H. Peter Anvin wrote:
> On 06/02/2014 03:29 PM, Theodore Ts'o wrote:
> >
> > And since we are already returning (time_t) -1 in some cases, we might
> > as well try to make things a bit more formal.
> >
>
> Are we? I am not aware of *Linux* actually using that.
Linux's time(2) can return (time_t) -1 and set errno to EFAULT, per
the Posix specification:
SYSCALL_DEFINE1(time, time_t __user *, tloc)
{
time_t i = get_seconds();
if (tloc) {
if (put_user(i,tloc))
return -EFAULT;
}
force_successful_syscall_return();
return i;
}
Cheers,
- Ted
|
| Previous by Date: | Re: [RFC 11/32] xfs: convert to struct inode_time, H. Peter Anvin |
|---|---|
| Next by Date: | Re: [RFC 11/32] xfs: convert to struct inode_time, H. Peter Anvin |
| Previous by Thread: | Re: [RFC 11/32] xfs: convert to struct inode_time, H. Peter Anvin |
| Next by Thread: | Re: [RFC 11/32] xfs: convert to struct inode_time, H. Peter Anvin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |