platform_unix.c
changeset 66 118c760d8e55
parent 65 35c52890a14f
child 76 38a9ee7c1d44
equal deleted inserted replaced
65:35c52890a14f 66:118c760d8e55
     8 #include <sys/types.h>
     8 #include <sys/types.h>
     9 #include <fcntl.h>
     9 #include <fcntl.h>
    10 #include <sys/param.h>
    10 #include <sys/param.h>
    11 #include <errno.h>
    11 #include <errno.h>
    12 #include <assert.h>
    12 #include <assert.h>
       
    13 #include <sys/wait.h>
    13 
    14 
    14 #if USE_PTHREAD
    15 #if USE_PTHREAD
    15 #include <pthread.h>
    16 #include <pthread.h>
    16 #endif
    17 #endif
    17 
    18 
   483     fputs(text, io);
   484     fputs(text, io);
   484     fclose(io);
   485     fclose(io);
   485     system(cmd);
   486     system(cmd);
   486     return(1);
   487     return(1);
   487 } /* show_and_install_readme */
   488 } /* show_and_install_readme */
       
   489 
       
   490 
       
   491 #else  /* Regular old POSIX-compliant Unix... */
       
   492 
       
   493 int update_version(const char *ver)
       
   494 {
       
   495     /*
       
   496      * !!! FIXME: need some way to flag this install as updated...
       
   497      * !!! FIXME:  maybe just leave unimplemented?
       
   498      */
       
   499     _fatal("Not implemented!");
       
   500     return(0);
       
   501 } /* show_and_install_readme */
       
   502 
       
   503 int show_and_install_readme(const char *fname, const char *text)
       
   504 {
       
   505     /*
       
   506      * !!! FIXME: Can just dump to stdout? This should really be in the
       
   507      * !!! FIXME:  UI modules...
       
   508      */
       
   509     _fatal("Not implemented!");
       
   510     return(0);
       
   511 } /* show_and_install_readme */
       
   512 
       
   513 
       
   514 int chdir_by_identifier(const char *name, const char *str,
       
   515                         const char *version, const char *newversion)
       
   516 {
       
   517     /*
       
   518      * !!! FIXME: need some way to find the program automatically...
       
   519      * !!! FIXME:  maybe just prompt the user? Oh well.
       
   520      */
       
   521     _fatal("Not implemented!");
       
   522     return(0);
       
   523 } /* chdir_by_identifier */
       
   524 
   488 #endif
   525 #endif
   489 
   526 
   490 
   527 
   491 int calc_tmp_filenames(char **tmp1, char **tmp2)
   528 int calc_tmp_filenames(char **tmp1, char **tmp2)
   492 {
   529 {