Re: [PATCH 1/2] Add function to convert between calendar time andbroken-down time for universal use

From: Pavel Machek
Date: Sat Jul 18 2009 - 07:51:40 EST



> > +extern void gmtime(__kernel_time_t totalsecs,
> > + unsigned int *year, unsigned int *mon, unsigned int *mday,
> > + unsigned int *hour, unsigned int *min, unsigned int *sec,
> > + unsigned int *wday, unsigned int *yday);
> > +extern void localtime(__kernel_time_t totalsecs,
> > + unsigned int *year, unsigned int *mon, unsigned int *mday,
> > + unsigned int *hour, unsigned int *min, unsigned int *sec,
> > + unsigned int *wday, unsigned int *yday);


Should year/mon/.../yday be passed up as a structure?

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/