#include "ares_private.h"
#include <rtl_time.h>
Include dependency graph for ares_compat.c:
Go to the source code of this file.
Functions | |
int | gettimeofday (struct timeval *tv, struct timezone *tz) |
int | strcasecmp (const char *s1, const char *s2) |
char * | strdup (const char *s) |
time_t | time (time_t *tp) |
|
Definition at line 58 of file gettimeofday.c.
|
|
Definition at line 17 of file ares_compat.c.
00018 { 00019 register const unsigned char *p1 = (const unsigned char *) s1; 00020 register const unsigned char *p2 = (const unsigned char *) s2; 00021 unsigned char c1, c2; 00022 00023 if (p1 == p2) 00024 return 0; 00025 00026 00027 00028 00029 do 00030 { 00031 c1 = tolower (*p1++); 00032 c2 = tolower (*p2++); 00033 if (c1 == '\0') 00034 break; 00035 } 00036 while (c1 == c2); 00037 00038 return c1 - c2; 00039 } |
|
Definition at line 41 of file ares_compat.c.
|
|
Definition at line 56 of file ares_compat.c. References gettimeofday(), NULL, and time.
00057 { 00058 00059 struct timeval time; 00060 00061 // long ticks = RetrieveClock(); 00062 // long secs; 00063 00064 // secs = (ticks * 4 + ticks * 8 / 13) / 1000; 00065 00066 00067 gettimeofday(&time, NULL); 00068 00069 if(tp) 00070 *tp = (long) time.tv_sec; 00071 00072 00073 00074 return (time_t) time.tv_sec; 00075 } |
Here is the call graph for this function: