Diff for /dietlibc/t.c between versions 1.13 and 1.14

version 1.13, 2001/02/07 19:57:12 version 1.14, 2001/02/09 22:32:07
Line 11 Line 11
 #include <stdio.h>  #include <stdio.h>
 #include <arpa/inet.h>  #include <arpa/inet.h>
 #include <sys/sem.h>  #include <sys/sem.h>
   #include <sys/shm.h>
 #if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)  
 /* union semun is defined by including <sys/sem.h> */  
 #else  
 /* according to X/OPEN we have to define it ourselves */  
 union semun {  
   int val;                    /* value for SETVAL */  
   struct semid_ds *buf;       /* buffer for IPC_STAT, IPC_SET */  
   unsigned short int *array;  /* array for GETALL, SETALL */  
   struct seminfo *__buf;      /* buffer for IPC_INFO */  
 };  
 #endif  
   
   
 int main(int argc,char *argv[]) {  int main(int argc,char *argv[]) {
   union semun foo;    int foo;
   semctl(17,23,IPC_STAT,foo);    shmctl(1,2,&foo);
 #if 0  #if 0
   struct in_addr duh;    struct in_addr duh;
   printf("%d\n",inet_aton(argv[1]?argv[1]:"10.0.0.1",&duh));    printf("%d\n",inet_aton(argv[1]?argv[1]:"10.0.0.1",&duh));

Removed from v.1.13  
changed lines
  Added in v.1.14


LinuxTV legacy CVS <linuxtv.org/cvs>