lkml.org 
[lkml]   [1998]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectMissing ioctl() RTCGET/RTCSET?
Hi guys,

In Linux 2.0.x there used to be a file called rtc.h in /linux/include/asm,
which defined RTCGET/RTCSET for ioctl() stuff, i.e ioctl(rtc_fd, RTCGET,
&rtc_tm). It's no longer true in 2.1.x, so what's the best way of doing
this?

I'm surprised that compiled binaries from 2.0.x that uses this ioctl()
function with RTCGET/RTCSET still works on 2.1.x though. Apparently it
must be supported in the kernel then.

I've been looking at the mc146818rtc.h header, but I figure that this
isn't the best way of doing things, since I want it to be portable to
Alpha and Sparc.

Anyone care to tell me the best way of doing this?

I don't have the 2.0.x sources to hand, and rather than download the whole
archive, I'd be glad if someone could send me rtc.h from the
linux/asm-i386 in 2.0.x so I can look it over and see if I can write a
legacy header file that I can use internally with some code I'm working
upon.

Cheers,
Alex
--
/\_/\ Legalise cannabis now!
( o.o ) Grow some cannabis today!
> ^ < Peace, Love, Unity and Respect to all.

http://www.tahallah.demon.co.uk - *new* - rewritten for text browser users!

Linux tahallah 2.1.122 #42 Thu Sep 17 08:18:35 EDT 1998 i486 unknown



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.051 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site