version 1.173, 2001/09/28 19:22:46
|
version 1.174, 2001/10/06 23:35:13
|
Line 95 extern char* strcpy2(char*a,char*b);
|
Line 95 extern char* strcpy2(char*a,char*b);
|
#define rdtscl(low) \ |
#define rdtscl(low) \ |
__asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") |
__asm__ __volatile__ ("rdtsc" : "=a" (low) : : "edx") |
|
|
|
#if 0 |
int traverse(const char* file, const struct stat* sb, int flag) { |
int traverse(const char* file, const struct stat* sb, int flag) { |
__write1("found "); |
__write1("found "); |
__write1(file); |
__write1(file); |
__write1("\n"); |
__write1("\n"); |
return 0; |
return 0; |
} |
} |
|
#endif |
|
|
int main(int argc,char *argv[]) { |
int main(int argc,char *argv[]) { |
#if 0 |
#if 0 |
Line 323 int main(int argc,char *argv[]) {
|
Line 325 int main(int argc,char *argv[]) {
|
#if 1 |
#if 1 |
char buf[1024]; |
char buf[1024]; |
struct hostent* r; |
struct hostent* r; |
r=gethostbyname("borg"); |
r=gethostbyname("xorn.qontinuum"); |
|
if (!r) { |
|
printf("dns error: %s\n",hstrerror(h_errno)); |
|
} |
{ |
{ |
/* while (r=gethostent_r(buf,1024)) { */ |
/* while (r=gethostent_r(buf,1024)) { */ |
if (r && r->h_name) { |
if (r && r->h_name) { |
Line 332 int main(int argc,char *argv[]) {
|
Line 337 int main(int argc,char *argv[]) {
|
for (i=0; i<8; ++i) |
for (i=0; i<8; ++i) |
if (r->h_aliases[i]) { |
if (r->h_aliases[i]) { |
printf("alias \"%s\"; ",r->h_aliases[i]); |
printf("alias \"%s\"; ",r->h_aliases[i]); |
} |
} else break; |
if ((r->h_addr_list)[0]) { |
if ((r->h_addr_list)[0]) { |
struct in_addr address; |
struct in_addr address; |
address = *((struct in_addr *) (r->h_addr_list)[0]); |
address = *((struct in_addr *) (r->h_addr_list)[0]); |