lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070710163625.GH32503@enneenne.com>
Date:	Tue, 10 Jul 2007 18:36:25 +0200
From:	Rodolfo Giometti <giometti@...eenne.com>
To:	Lennart Sorensen <lsorense@...lub.uwaterloo.ca>
Cc:	Stephen Rothwell <sfr@...b.auug.org.au>,
	David Woodhouse <dwmw2@...radead.org>,
	linux-kernel@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] LinuxPPS (with new syscalls API) - new version

On Tue, Jul 10, 2007 at 12:01:51PM -0400, Lennart Sorensen wrote:
> On Sun, Jul 01, 2007 at 09:24:41PM +0200, Rodolfo Giometti wrote:
> >     struct pps_timedata_s {
> >        __32 sec;
> >        __32 nsec;
> >     }
> > 
> > Ok? I think 32 bits are enought for keeping seconds... :)
> 
> You want to purposely define an API that will break in 23 years (or is
> that 83 years since you made it unsigned potentially)?  Why not 64bit
> for seconds and 32bit for nsec.  That should cover it for long enough.
> When the unix time format was created 37 years ago, I could see thinking
> 32bit seemed reasonable, but why do it now.  We have ram enough for
> 64bits.

Sorry I wrote wrong. I meant __u32.

I can use __u64 for seconds but doing this there could be problems for
32 bits platforms? =:-o

Rodolfo (not a 64 bits guru :)

-- 

GNU/Linux Solutions                  e-mail:    giometti@...eenne.com
Linux Device Driver                             giometti@...dd.com
Embedded Systems                     		giometti@...ux.it
UNIX programming                     phone:     +39 349 2432127
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ