Return to gettimeofday.c CVS log | Up to [local] / prex-old / usr / lib / posix / time |
version 1.1.1.1, 2008/06/03 10:38:50 | version 1.1.1.1.2.1, 2008/08/13 17:12:41 | ||
---|---|---|---|
|
|
||
if ((fd = open("/dev/rtc", 0)) < 0) | if ((fd = open("/dev/rtc", 0)) < 0) | ||
return EPERM; | return EPERM; | ||
err = ioctl(fd, RTCIOC_GET_TIME, (u_long)tv); | err = ioctl(fd, RTCIOC_GET_TIME, tv); | ||
close(fd); | close(fd); | ||
return err; | return err; | ||
} | } |