]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Time/Time.c
Add Socket Libraries.
[mirror_edk2.git] / StdLib / LibC / Time / Time.c
index 5cb93477526778a7ee395963fef841e7f75f5c0e..e3eccb593bae3cd144426d7239ecf44678fc83b7 100644 (file)
@@ -82,7 +82,6 @@ static void
 localsub(const time_t * const timep, const long   offset, struct tm * const tmp);\r
 \r
 clock_t\r
-EFIAPI\r
 __getCPS(void)\r
 {\r
   return gMD->ClocksPerSecond;\r
@@ -183,7 +182,7 @@ timesub(
 \r
 /** The clock function determines the processor time used.\r
 \r
-    @return   The clock function returns the implementation\92s best\r
+    @return   The clock function returns the implementation's best\r
               approximation to the processor time used by the program since the\r
               beginning of an implementation-defined era related only to the\r
               program invocation.  To determine the time in seconds, the value\r
@@ -196,7 +195,6 @@ timesub(
               CPU TimeStamp Counter ticks since the appliation started.\r
 **/\r
 clock_t\r
-EFIAPI\r
 clock(void)\r
 {\r
 #ifndef NT32dvm\r
@@ -213,7 +211,6 @@ clock(void)
 /**\r
 **/\r
 double\r
-EFIAPI\r
 difftime(time_t time1, time_t time0)\r
 {\r
   return (double)(time1 - time0);\r
@@ -429,7 +426,7 @@ time2sub(
   return t;\r
 }\r
 \r
-static time_t\r
+time_t\r
 time2(struct tm * const tmp, void (* const funcp)(const time_t*, long, struct tm*),\r
       const long offset, int * const okayp)\r
 {\r
@@ -542,7 +539,6 @@ time1(
               represented, the function returns the value (time_t)(-1).\r
 **/\r
 time_t\r
-EFIAPI\r
 mktime(struct tm *timeptr)\r
 {\r
   /* From NetBSD */\r
@@ -558,14 +554,13 @@ mktime(struct tm *timeptr)
 /** The time function determines the current calendar time.  The encoding of\r
     the value is unspecified.\r
 \r
-    @return   The time function returns the implementation\92s best approximation\r
+    @return   The time function returns the implementation's best approximation\r
               to the current calendar time.  The value (time_t)(-1) is returned\r
               if the calendar time is not available.  If timer is not a null\r
               pointer, the return value is also assigned to the object it\r
               points to.\r
 **/\r
 time_t\r
-EFIAPI\r
 time(time_t *timer)\r
 {\r
   time_t      CalTime;\r
@@ -633,7 +628,6 @@ time(time_t *timer)
     @return   The asctime function returns a pointer to the string.\r
 **/\r
 char *\r
-EFIAPI\r
 asctime(const struct tm *timeptr)\r
 {\r
   register const char * wn;\r
@@ -663,7 +657,6 @@ asctime(const struct tm *timeptr)
 /**\r
 **/\r
 char *\r
-EFIAPI\r
 ctime(const time_t *timer)\r
 {\r
   return asctime(localtime(timer));\r
@@ -672,7 +665,7 @@ ctime(const time_t *timer)
 /*\r
 ** gmtsub is to gmtime as localsub is to localtime.\r
 */\r
-static void\r
+void\r
 gmtsub(\r
   const time_t * const  timep,\r
   const long            offset,\r
@@ -718,7 +711,6 @@ gmtsub(
 /**\r
 **/\r
 struct tm *\r
-EFIAPI\r
 gmtime(const time_t *timer)\r
 {\r
   gmtsub(timer, 0L, &gMD->BDTime);\r
@@ -771,7 +763,6 @@ localsub(const time_t * const timep, const long   offset, struct tm * const tmp)
 /**\r
 **/\r
 struct tm *\r
-EFIAPI\r
 localtime(const time_t *timer)\r
 {\r
   tzset();\r