/* *Similartothestructtminuserspace<time.h>,butitneedstobehereso *thatthekernelsourceisselfcontained.
*/ struct tm { /* *thenumberofsecondsaftertheminute,normallyintherange *0to59,butcanbeupto60toallowforleapseconds
*/ int tm_sec; /* the number of minutes after the hour, in the range 0 to 59*/ int tm_min; /* the number of hours past midnight, in the range 0 to 23 */ int tm_hour; /* the day of the month, in the range 1 to 31 */ int tm_mday; /* the number of months since January, in the range 0 to 11 */ int tm_mon; /* the number of years since 1900 */ long tm_year; /* the number of days since Sunday, in the range 0 to 6 */ int tm_wday; /* the number of days since January 1, in the range 0 to 365 */ int tm_yday;
};
void time64_to_tm(time64_t totalsecs, int offset, struct tm *result);
# include <linux/time32.h>
staticinlinebool itimerspec64_valid(conststruct itimerspec64 *its)
{ if (!timespec64_valid(&(its->it_interval)) ||
!timespec64_valid(&(its->it_value))) returnfalse;
returntrue;
}
/** *time_after32-comparetwo32-bitrelativetimes *@a:thetimewhichmaybeafter@b *@b:thetimewhichmaybebefore@a * *time_after32(a,b)returnstrueifthetime@aisaftertime@b. *time_before32(b,a)returnstrueifthetime@bisbeforetime@a. * *Similartotime_after(),comparetwo32-bittimestampsforrelative *times.Thisisusefulforcomparing32-bitsecondsvaluesthatcan't *beconvertedto64-bitvalues(e.g.duetodiskformatorwireprotocol *issues)whenitisknownthatthetimesarelessthan68yearsapart.
*/ #define time_after32(a, b) ((s32)((u32)(b) - (u32)(a)) < 0) #define time_before32(b, a) time_after32(a, b)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.