亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ansitime.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* ansiTime.c - ANSI `time' documentation *//* Copyright 1992-2001 Wind River Systems, Inc. *//*modification history--------------------01p,05oct01,dcb  Fix SPR 9814, SPR 7736, SPR 62831 and SPR 7191.01o,12mar99,p_m  Fixed SPR 8225 by putting asctime output in uppercase.01n,11jul97,dgp  doc: SPR 7651 need list of non-reentrant functions01m,20jan97,dbt  modified comment for tm_sec (SPR #4436).01l,15oct96,dbt  Used reentrant version of ldiv in getTime (fixed SPR #3795).01k,04oct96,dbt  reworked the fix for SPR #7277.01j,03oct96,dbt  use memcpy with 'strlen + 1' instead of 'strlen' (SPR #7277)01i,12aug96,dbt  modified __getTime to treat time_t as an unsigned (SPR #6178).01h,30jul96,dbt  In function mktime, if tm_isdst flag is true substract one 		 hour from timeIs (SPR #6954). 		 Updated copyright.01g,25jul96,dbt  modified function __jullday (for leap year just test month > 1)	       	 modified call to jullday in __getTime in order to give it a	         year as found in a tm structure, e.g. "96" (SPR #4251)		 corrected localtime_r (SPR #2521).                 timeBuffer must be initialized before a call of __getDstInfo. 		 corrected __getDstInfo() (spr 2521)		 Updated copyright.01h,25jul96,dbt  fixed warnings in mktime.c.01g,16feb95,rhp  doc tweaks, and synch with subsidiary files01f,15sep94,rhp  fixed TIMEZONE example in comment (related to SPR #3490);		 reduced duplication between man page and comments01e,17aug93,dvs  changed TIME to TIMEO to fix conflicting defines (SPR #2249)01d,13mar93,jdi  doc tweak.01c,05feb93,jdi  doc: clarified TIMEZONE string - SPR 1977;		 clarified that TIMEZONE is environment variable - SPR 1974.01b,13nov92,dnw  changed slong_t decls to long01a,24oct92,smb  written.*//*  DESCRIPTION  The header time.h defines two macros and declares four types and severalfunctions for manipulating time.  Many functions deal with a `calendar time'that represents the current date (according to the Gregorian calendar)and time.  Some functions deal with `local time', which is the calendartime expressed for some specific time zone, and with Daylight Saving Time,which is a temporary change in the algorithm for determining local time.The local time zone and Daylight Saving Time are implementation-defined..SS MacrosThe macros defined are NULL and:.iP `CLOCKS_PER_SEC' 12the number of ticks per second..LP.SS TypesThe types declared are `size_t' and:.iP "`clock_t', `time_t'" 12arithmetic types capable of representing times..iP "`struct tm'"holds the components of a calendar time in what is known as "broken-down time." The structure contains at least the following members, in any order.The semantics of the members and their normal ranges are expressed in thecomments..TStab(|);l1p9f3 l1 l.int tm_sec;   | seconds after the minute | - [0, 59]int tm_min;   | minutes after the hour   | - [0, 59]int tm_hour;  | hours after midnight     | - [0, 23]int tm_mday;  | day of the month         | - [1, 31]int tm_mon;   | months since January     | - [0, 11]int tm_year;  | years since 1900int tm_wday;  | days since Sunday        | - [0, 6]int tm_yday;  | days since January 1     | - [0, 365] int tm_isdst; | Daylight Saving Time flag.TEThe value of `tm_isdst' is positive if Daylight Saving Time is in effect, zeroif Daylight Saving Time is not in effect, and negative if the informationis not available..LPIf the environment variable TIMEZONE is set, the information is retrieved fromthis variable, otherwise from the locale information.TIMEZONE is of the form:.ft CB    <name_of_zone>:<(unused)>:<time_in_minutes_from_UTC>:<daylight_start>:<daylight_end>.ft 1To calculate local time, the value of <time_in_minutes_from_UTC> is subtractedfrom UTC; <time_in_minutes_from_UTC> must be positive.Daylight information is expressed as mmddhh (month-day-hour), forexample:.CS    UTC::0:040102:100102.CEREENTRANCYWhere there is a pair of routines, such as div() and div_r(), only the routinexxx_r() is reentrant.  The xxx() routine is not reentrant. INCLUDE FILES: time.hSEE ALSO: ansiLocale, American National Standard X3.159-1989 *//*Documentation for the ANSI C time library.========================================== Locale Information------------------ The time locale information is stored in the file __timeloc.c. Thisstructure consists of        + The days of the week in abbreviated form        + The days of the week        + Months of the year in abbreviated form        + Months of the year        + date and time representation for this locale        + representation for AM.PM        + Time zone information (discussed below )        + Day light saving information (discussed below )If you want to, for example, use the french translation for the daysof the week, then this file could be copied into another filee.g. __frtimeloc.c and the days and months representation in french. Afull compile is neccessary.  This means that when using strftime orasctime the days and months will be in French!Maintaining a table of the possible locale variations would mean largelinked lists of tables and is not appropriate for this system.Maybe later we can provide a mechanism for replacing this table by atable defined by the user at system initialisation.The zone and daylight information may also be set to represent thelocal environment.ZONE & Daylight Saving----------------------The first three fields of TIMEZONE are represented in the locale structureby the time zone information area and the day light saving area of thelocale structure is of the same form as the last two fields.The TIMEZONE environment variable can be set by the user to reflect the localeenvironment.SEE ALSO: American National Standard X3.159-1989 NOMANUALINTERNALThis documentation module is built by appending the following files:    asctime.c    clock.c    ctime.c    difftime.c    gmtime.c    localtime.c    mktime.c    strftime.c    time.c*//* asctime.c - asctime file for time.h *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01c,05feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,25jul92,smb  written.*//* DESCRIPTION  INCLUDE FILE: time.h  SEE ALSO: American National Standard X3.159-1989NOMANUAL*/ #include "vxWorks.h"#include "time.h"#include "private/timeP.h"/****************************************************************************** asctime - convert broken-down time into a string (ANSI)** This routine converts the broken-down time pointed to by <timeptr> into a* string of the form:* .CS*	SUN SEP 16 01:03:52 1973\en\e0* .CE** This routine is not reentrant.  For a reentrant version, see asctime_r().** INCLUDE FILES: time.h** RETURNS: A pointer to the created string.*/char * asctime    (    const struct tm *timeptr	/* broken-down time */    )    {    size_t           len = sizeof (ASCBUF);    static char      asctimeBuf [sizeof (ASCBUF)];    asctime_r (timeptr, asctimeBuf, &len);    return (asctimeBuf);    }/****************************************************************************** asctime_r - convert broken-down time into a string (POSIX)** This routine converts the broken-down time pointed to by <timeptr> into a* string of the form:* .CS*	SUN SEP 16 01:03:52 1973\en\e0* .CE* The string is copied to <asctimeBuf>.** This routine is the POSIX re-entrant version of asctime().** INCLUDE FILES: time.h** RETURNS: The size of the created string.*/int asctime_r    (    const struct tm *timeptr,		/* broken-down time */    char *           asctimeBuf,	/* buffer to contain string */    size_t *         buflen		/* size of buffer */    )    {    size_t           size;    size = strftime (asctimeBuf,              	     *buflen,             	     "%a %b %d %H:%M:%S %Y\n\0",              	     timeptr);    return ((int) size);    }/* clock.c - clock file for time.h *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01d,05oct01,dcb  Fix SPR 9814 and SPR 7736.01c,05feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,25jul92,smb  written.*//*  DESCRIPTION    INCLUDE FILE: time.h     SEE ALSO: American National Standard X3.159-1989 NOMANUAL*/#include "vxWorks.h"#include "time.h"/******************************************************************************** clock - determine the processor time in use (ANSI)** This routine returns the implementation's best approximation of* the processor time used by the program since the beginning of an* implementation-defined era related only to the program invocation.* To determine the time in seconds, the value returned by clock()* should be divided by the value of the macro CLOCKS_PER_SEC.  If the* processor time used is not available or its value cannot be* represented, clock() returns -1.** NOTE:* This routine always returns -1 in VxWorks.  VxWorks does not track* per-task time or system idle time.  There is no method of determining* how long a task or the entire system has been doing work.  tickGet()* can be used to query the number of system ticks since system start.* clock_gettime() can be used to get the current clock time.** INCLUDE FILES: time.h** RETURNS: -1** SEE ALSO: tickGet(), clock_gettime()*/clock_t clock (void)    {    return ((clock_t) -1);    }/* ctime.c - ctime file for time *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01c,05feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,25jul92,smb  written.*//*  DESCRIPTION    INCLUDE FILE: time.h   SEE ALSO: American National Standard X3.159-1989 NOMANUAL*/#include "vxWorks.h"#include "time.h"#include "private/timeP.h"/********************************************************************************* ctime - convert time in seconds into a string (ANSI)** This routine converts the calendar time pointed to by <timer> into local* time in the form of a string.  It is equivalent to:* .CS*     asctime (localtime (timer));* .CE** This routine is not reentrant.  For a reentrant version, see ctime_r().** INCLUDE FILES: time.h** RETURNS:* The pointer returned by asctime() with local broken-down time as the* argument.** SEE ALSO: asctime(), localtime()*/char * ctime    (     const time_t *timer 	/* calendar time in seconds */    )    {    size_t len = sizeof (ASCBUF);    static char asctimeBuf [sizeof (ASCBUF)];    return (ctime_r (timer, asctimeBuf, &len));    }/********************************************************************************* ctime_r - convert time in seconds into a string (POSIX)** This routine converts the calendar time pointed to by <timer> into local* time in the form of a string.  It is equivalent to:* .CS*     asctime (localtime (timer));* .CE** This routine is the POSIX re-entrant version of ctime().** INCLUDE FILES: time.h** RETURNS:* The pointer returned by asctime() with local broken-down time as the* argument.** SEE ALSO: asctime(), localtime()*/char * ctime_r    (     const time_t * timer,		/* calendar time in seconds */    char *         asctimeBuf,		/* buffer to contain the string */    size_t *       buflen		/* size of the buffer */    )    {    asctime_r (localtime (timer), asctimeBuf, buflen);    return (asctimeBuf);    }/* difftime.c - difftime file for time *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01d,04oct01,dcb  Fix SPR 7191.  Cast time1 and time2 before subtracting.01c,05feb93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,25jul92,smb  written.*//*  DESCRIPTION    INCLUDE FILE: time.h   SEE ALSO: American National Standard X3.159-1989 NOMANUAL*/#include "vxWorks.h"#include "time.h"/********************************************************************************* difftime - compute the difference between two calendar times (ANSI)** This routine computes the  difference between two calendar times: * <time1> - <time0>.** INCLUDE FILES: time.h** RETURNS: The time difference in seconds, expressed as a double.*/  double difftime    (    time_t time1,		/* later time, in seconds */    time_t time0		/* earlier time, in seconds */    )    {    /* This function assumes that sizeof(time_t) is <= sizeof(double). */        return (double)time1 - (double)time0;    }/* gmtime.c - gmtime file for time *//* Copyright 1992-1996 Wind River Systems, Inc. *//*modification history--------------------01g,15oct96,dbt Used reentrant version of ldiv in getTime (fixed SPR #3795).01f,12aug96,dbt modified __getTime to treat time_t as an unsigned (SPR #6178).  01e,21jun96,dbt modified function __jullday (for leap year just test month > 1)		modified call to jullday in __getTime in order to give it a 		year as found in a tm structure, e.g. "96" (SPR #4251)		Updated copyright.01f,24aug94,ism	fixed problem with bus error in time conversion (SPR #3542)			-fixed problem with negative time values			-fixed problem with leap year in negative years (SPR #3576)01e,24sep93,jmm  __julday() now checks for february 29th as a leap year 01d,05feb93,jdi  documentation cleanup for 5.1.01c,13nov92,dnw  changed slong_t decls to long01b,20sep92,smb  documentation additions01a,25jul92,smb  written.*//*  DESCRIPTION    INCLUDE FILE: time.h, stdlib.h   SEE ALSO: American National Standard X3.159-1989 NOMANUAL*/#include "vxWorks.h"#include "time.h"#include "stdlib.h"#include "private/timeP.h"/****************************************************************************** gmtime - convert calendar time into UTC broken-down time (ANSI)** This routine converts the calendar time pointed to by <timer> into* broken-down time, expressed as Coordinated Universal Time (UTC).** This routine is not reentrant.  For a reentrant version, see gmtime_r().** INCLUDE FILES: time.h** RETURNS:* A pointer to a broken-down time structure (`tm'), or a null pointer* if UTC is not available.*/struct tm *gmtime    (    const time_t *timer		/* calendar time in seconds */    )    {    static struct tm timeBuffer;    gmtime_r (timer, &timeBuffer);    return (&timeBuffer);    }/****************************************************************************** gmtime_r - convert calendar time into broken-down time (POSIX)** This routine converts the calendar time pointed to by <timer> into* broken-down time, expressed as Coordinated Universal Time (UTC).* The broken-down time is stored in <timeBuffer>.** This routine is the POSIX re-entrant version of gmtime().** INCLUDE FILES: time.h** RETURNS: OK.*/int gmtime_r    (    const time_t *timer,	/* calendar time in seconds */    struct tm *   timeBuffer	/* buffer for broken down time */    )    {    return (__getTime (*timer, timeBuffer));    }/************************************************************************** __getTime - convert calendar time into broken-down time ** internal routine.** RETURNS: OK* NOMANUAL*/int __getTime    (

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜免费视频| 久久成人综合网| av在线这里只有精品| 国产精品久久久久7777按摩| a亚洲天堂av| 一区二区三区日韩在线观看| 在线视频综合导航| 美腿丝袜亚洲色图| 久久久久99精品一区| thepron国产精品| 亚洲一区二区欧美日韩| 8v天堂国产在线一区二区| 久久国产尿小便嘘嘘| 国产精品欧美综合在线| 日本韩国一区二区三区| 日本亚洲三级在线| 亚洲国产精品高清| 欧美日韩国产一级| 国产成人自拍网| 亚洲一区二区三区中文字幕在线| 日韩精品在线一区| 99视频在线精品| 日韩制服丝袜av| 国产精品午夜在线| 91精选在线观看| 成人av综合在线| 日本伊人精品一区二区三区观看方式| 久久免费的精品国产v∧| 在线精品视频免费观看| 国产精一区二区三区| 亚洲va韩国va欧美va精品| 久久九九久久九九| 91精品福利在线一区二区三区| 成人综合在线网站| 美国十次综合导航| 亚洲精品ww久久久久久p站| 亚洲精品一区二区三区99| 在线免费一区三区| 国产高清视频一区| 蜜桃一区二区三区四区| 亚洲精品国产视频| 国产亚洲福利社区一区| 欧美一级精品在线| 欧美在线看片a免费观看| 国产成人精品免费看| 人人超碰91尤物精品国产| 亚洲欧美乱综合| 国产精品视频一区二区三区不卡| 在线播放欧美女士性生活| 色综合中文字幕国产| 久久精品99国产精品日本| 亚洲精品视频在线看| 国产精品乱码人人做人人爱| 久久女同互慰一区二区三区| 日韩一二三四区| 91精品国产综合久久久蜜臀粉嫩| 色偷偷一区二区三区| 成人免费视频国产在线观看| 激情av综合网| 国模无码大尺度一区二区三区| 日韩精品每日更新| 天堂在线亚洲视频| 日韩中文字幕1| 午夜精品国产更新| 亚洲二区视频在线| 亚洲免费在线看| 亚洲另类色综合网站| 自拍偷拍国产精品| 亚洲人成网站影音先锋播放| 亚洲欧洲综合另类在线| 亚洲色图20p| 夜夜揉揉日日人人青青一国产精品 | 欧美欧美欧美欧美首页| 91成人免费网站| 欧美日韩在线直播| 欧美三级电影在线看| 欧美日韩国产天堂| 91精品国产福利在线观看| 91精品黄色片免费大全| 91精品在线麻豆| 91精品国产综合久久精品性色| 7777女厕盗摄久久久| 欧美一区二区成人| 26uuu色噜噜精品一区| 久久久久久电影| 日本一区二区久久| 成人欧美一区二区三区白人| 一区二区三区自拍| 日韩中文字幕亚洲一区二区va在线| 日韩vs国产vs欧美| 国内精品国产三级国产a久久| 免费看精品久久片| 日欧美一区二区| 黄网站免费久久| 粉嫩一区二区三区在线看| 99久久伊人精品| 欧美日韩亚洲丝袜制服| 日韩欧美中文字幕一区| 国产欧美日韩激情| 亚洲男人都懂的| 免费三级欧美电影| 成人高清视频在线| 欧美性受极品xxxx喷水| 日韩女优av电影在线观看| 欧美国产日韩亚洲一区| 亚洲一区二区在线观看视频| 毛片av一区二区三区| 高清beeg欧美| 在线播放亚洲一区| 欧美国产成人精品| 偷拍自拍另类欧美| 高清成人免费视频| 欧美精品一二三四| 国产亚洲欧美日韩日本| 亚洲一区二区三区视频在线 | 国产一区二区三区在线观看精品| jlzzjlzz亚洲女人18| 欧美欧美午夜aⅴ在线观看| 国产欧美一区二区精品性色| 香蕉加勒比综合久久| 成人免费黄色在线| 欧美一级在线免费| 亚洲乱码国产乱码精品精小说| 韩国毛片一区二区三区| 欧洲国产伦久久久久久久| 久久免费看少妇高潮| 亚洲第一av色| 91小视频在线| 国产视频一区二区在线观看| 三级一区在线视频先锋| 99国内精品久久| 国产亚洲精品7777| 毛片一区二区三区| 欧美精品一卡两卡| 亚洲精品久久7777| 99久久99久久精品免费观看| 精品国产一区二区三区av性色| 亚洲国产精品久久人人爱蜜臀| 99热这里都是精品| 国产亚洲成av人在线观看导航| 日韩国产一二三区| 欧美日韩一区二区在线观看| 亚洲欧美一区二区三区极速播放| 国产一区二区在线影院| 日韩精品最新网址| 视频一区欧美精品| 欧美在线一区二区三区| 亚洲精品国产精华液| av不卡免费电影| 国产精品嫩草99a| 国产成人av资源| 国产亚洲精品福利| 国产精品一线二线三线精华| 精品999在线播放| 经典三级一区二区| 欧美成人激情免费网| 另类中文字幕网| 欧美sm美女调教| 麻豆一区二区三| 欧美成人午夜电影| 韩日欧美一区二区三区| 精品久久国产老人久久综合| 免费精品视频最新在线| 日韩欧美电影一区| 久久99深爱久久99精品| 精品日韩在线观看| 国产又粗又猛又爽又黄91精品| 久久新电视剧免费观看| 国产美女娇喘av呻吟久久| 久久一二三国产| 粉嫩aⅴ一区二区三区四区五区| 国产欧美精品在线观看| av资源站一区| 亚洲一区二区三区美女| 91精品国产综合久久精品麻豆| 免费观看30秒视频久久| 欧美电视剧免费全集观看| 精品亚洲成a人| 中文在线一区二区| 一本色道综合亚洲| 亚洲电影在线播放| 精品少妇一区二区三区免费观看| 狠狠久久亚洲欧美| 中文字幕中文字幕在线一区| 日本乱码高清不卡字幕| 日本不卡一区二区三区 | 国产福利精品导航| 国产精品久久久久久久久晋中| 91亚洲永久精品| 日韩激情av在线| 欧美精品一区二区高清在线观看| 高清不卡一区二区在线| 亚洲一区二区欧美| 精品国产乱码久久久久久牛牛| 成人美女在线视频| 亚洲成人激情自拍| 久久综合久久综合亚洲| 在线看不卡av| 国产成人在线看| 亚洲成人一二三|