From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20090301045847.GUUC18213.eastrmmtao106.cox.net@eastrmimpo03.cox.net> References: <20090301045847.GUUC18213.eastrmmtao106.cox.net@eastrmimpo03.cox.net> Date: Mon, 2 Mar 2009 14:02:44 -0500 Message-ID: <3aaafc130903021102y8899e3dn1a87c1eb4cf06879@mail.gmail.com> From: "J.R. Mauro" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] my /dev/time for Linux Topicbox-Message-UUID: abc35f54-ead4-11e9-9d60-3106f5b1d025 Two things. First, I had to include to get this to build on my machine with 2.6.28 and second, do you have any plans to get this accepted upstream? Thanks for putting the time into this! On Sat, Feb 28, 2009 at 11:57 PM, Chris Brannon wrote: > I wrote a module that emulates Plan 9's /dev/time under Linux. > Reading /dev/time yields 4 decimal numbers: seconds since start of epoch, > nanoseconds since start of epoch, jiffies since boot, and jiffies per sec= ond. > As with Plan 9, one can set the clock by writing a decimal number to the > device. =A0The value represents the number of seconds > since the start of the epoch. > The interesting aspect is that users other than root can set the clock > if they have write access to /dev/time. > > The code is here: http://members.cox.net/cmbrannon/devtime.tgz > It may have issues. =A0Read it before using. =A0Comments are welcome. > > -- Chris > >