patch-1.3.99 linux/Documentation/rtc.txt
Next file: linux/MAGIC
Previous file: linux/Documentation/ramdisk.txt
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Tue May 7 08:18:50 1996
- Orig file:
v1.3.98/linux/Documentation/rtc.txt
- Orig date:
Sun May 5 08:51:57 1996
diff -u --recursive --new-file v1.3.98/linux/Documentation/rtc.txt linux/Documentation/rtc.txt
@@ -9,7 +9,7 @@
However it can also be used to generate signals from a slow 2Hz to a
relatively fast 8192Hz, in increments of powers of two. These signals
-are reported by interrupt number 8. (Oh! So *thats* what IRQ 8 is
+are reported by interrupt number 8. (Oh! So *that* is what IRQ 8 is
for...) It can also function as a 24hr alarm, raising IRQ 8 when the
alarm goes off. The alarm can also be programmed to only check any
subset of the three programmable values, meaning that it could be set to
@@ -88,13 +88,12 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
-#include <time.h>
void main(void) {
int i, fd, retval, irqcount = 0;
unsigned long tmp, data;
-struct tm rtc_tm;
+struct rtc_time rtc_tm;
fd = open ("/dev/rtc", O_RDONLY);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this