Diff for /dietlibc/t.c between versions 1.130 and 1.131

version 1.130, 2001/07/11 16:43:15 version 1.131, 2001/07/11 17:52:50
Line 76  void closelog(void) { Line 76  void closelog(void) {
 #endif  #endif
   
 int main(int argc,char *argv[]) {  int main(int argc,char *argv[]) {
   #if 0
   char* name;    char* name;
   int ptyfd,ttyfd;    int ptyfd,ttyfd;
   int i=openpty(&ptyfd,&ttyfd,0,0,0);    int i=openpty(&ptyfd,&ttyfd,0,0,0);
   if (i<0) perror("openpty");    if (i<0) perror("openpty");
   printf("%d %d\n",ptyfd,ttyfd);    printf("%d %d\n",ptyfd,ttyfd);
   printf("%s %s\n",ttyname(ptyfd),ttyname(ttyfd));    printf("%s %s\n",ttyname(ptyfd),ttyname(ttyfd));
   #endif
 #if 0  #if 0
   printf("0x%8.7lx\n",0xfefe);    printf("0x%8.7lx\n",0xfefe);
 #endif  #endif
Line 119  int main(int argc,char *argv[]) { Line 121  int main(int argc,char *argv[]) {
 #endif  #endif
 //  putchar('c');  //  putchar('c');
 //  write(1,"fnord\n",6);  //  write(1,"fnord\n",6);
 #if 0  #if 1
   struct addrinfo *ai;    struct addrinfo *ai;
   getaddrinfo("::","22",0,&ai);    getaddrinfo("nagus","22",0,&ai);
 #endif  #endif
 #if 0  #if 0
   struct hostent host,*res;    struct hostent host,*res;
   char buf[4096];    char buf[4096];
   int fnord;    int fnord;
   
   gethostbyname2_r("knuth",AF_INET,&host,buf,4096,&res,&fnord);    gethostbyname2_r("nagus",AF_INET,&host,buf,4096,&res,&fnord);
 #endif  #endif
 #if 0  #if 0
   char buf[128];    char buf[128];
Line 327  int main(int argc,char *argv[]) { Line 329  int main(int argc,char *argv[]) {
   struct hostent * host;    struct hostent * host;
   struct in_addr i;    struct in_addr i;
   
   host = gethostbyname2("knuth",AF_INET);    host = gethostbyname2("nagus",AF_INET);
   
   if (!host)    if (!host)
     printf("host null\n");      printf("host null\n");

Removed from v.1.130  
changed lines
  Added in v.1.131


LinuxTV legacy CVS <linuxtv.org/cvs>