News for hackers. Stuff that matters.
Re:Source code of the file with the Zune bug (starts on line... by frisco on Friday January 02, 2009 @12:59AM (#417108)
OALIoCtlHalInitRTC -- yeah, there's a great function name.
Re:Source code of the file with the Zune bug (starts on line... by mseebach on Friday January 02, 2009 @09:00AM (#417319)
OAL is obviously a module name, though I can't figure out what it is. "Io Ctl" seems to be something with "IO control", although I can't figure out what IO has to do with it.

The rest reads "HAL (hardware abstraction layer) initialize RTC (real-time clock)".. and that's what it does.

This is from five minutes looking at the source. Very little college embedded programming. What more do you want?

Re:Source code of the file with the Zune bug (starts on line... by JesseAldridge on Friday January 02, 2009 @09:54AM (#417349)
From that function's comments:

// This function is called by WinCE OS to initialize the time after boot.

So how about calling it:

init_time

or maybe

init_time_after_boot

Re:Source code of the file with the Zune bug (starts on line... by sounddust on Friday January 02, 2009 @08:35PM (#418003)
The reason it's not calleld init_time_after_boot - well, first of all Microsoft coding standards call for CamelCase. But secondly, there are several "times", and there are several ways to "initialize" something, and there are several meanings to "boot."

You're either going to have a naming conflict, or you're going to have a bunch of idiots who wanted to initialize a different clock, who start posting to forums saying "i don't understand???! i called init_time waht's wrong???"

Sure, they could call it

SendTheIOCTLCommandToInitializeTheRealTimeClockForTheOEMAbstractionLayer

but sometimes the names of functions are going to be ugly.

Re:Source code of the file with the Zune bug (starts on line... by a-priori on Friday January 02, 2009 @09:16AM (#417327)
Re:Source code of the file with the Zune bug (starts on line... by sounddust on Friday January 02, 2009 @08:36PM (#418007)
OAL is "OEM abstraction layer" and IOCTL probably means that the RTC is set by sending an IOCTL command.