[lkml]   [2009]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] /dev/time for Linux, inspired by Plan 9
On Tue 2009-03-17 11:15:09, J.R. Mauro wrote:
> On Sat, Mar 14, 2009 at 12:13 PM, Pavel Machek <> wrote:
> > On Wed 2009-03-11 10:10:23, Christopher Brannon wrote:
> >> Under Plan 9 from Bell Labs, one queries or sets the system clock by
> >> reading or writing text strings to a special file named /dev/time.
> >> I implemented such a facility for Linux.  A read of /dev/time produces
> >> four decimal numbers: epoch seconds, nanoseconds since start of epoch,
> >> nanoseconds since boot, and nanoseconds per second.  Writing a
> >> decimal number
> >
> > nanoseconds per second?! Just use 123.456 notation.
> The point is to be close to Plan 9's interface, in which column 3 is
> "something since boot" and column 4 is "somethings per second" to keep
> programs portable.

I don't think compatibility with Plan9 is worthy goal... especially
when Plan9's interface is unneccessarily ugly.
(cesky, pictures)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2009-03-21 23:05    [W:0.071 / U:1.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site