[BACK]Return to if_not_there.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / gc

Diff for /OpenXM_contrib2/asir2000/gc/if_not_there.c between version 1.1 and 1.2

version 1.1, 1999/12/03 07:39:09 version 1.2, 2001/04/20 07:39:18
Line 1 
Line 1 
 /* Conditionally execute a command based if the file argv[1] doesn't exist */  /* Conditionally execute a command based if the file argv[1] doesn't exist */
 /* Except for execvp, we stick to ANSI C.                                  */  /* Except for execvp, we stick to ANSI C.                                  */
 # include "gcconfig.h"  # include "private/gcconfig.h"
 # include <stdio.h>  # include <stdio.h>
   # include <stdlib.h>
   # include <unistd.h>
   
 int main(argc, argv, envp)  int main(argc, argv, envp)
 int argc;  int argc;
Line 16  char ** envp;
Line 18  char ** envp;
         return(0);          return(0);
     }      }
     printf("^^^^Starting command^^^^\n");      printf("^^^^Starting command^^^^\n");
       fflush(stdout);
     execvp(argv[2], argv+2);      execvp(argv[2], argv+2);
     exit(1);      exit(1);
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>