[BACK]Return to fileio.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/fileio.c between version 1.62 and 1.63

version 1.62, 2005/11/18 20:56:52 version 1.63, 2005/11/20 03:24:17
Line 9 
Line 9 
   
   
 #include <sys/types.h>  #include <sys/types.h>
 #ifndef NO_DIRED  
 #include <sys/time.h>  #include <sys/time.h>
 #include <sys/resource.h>  #include <sys/resource.h>
 #include <sys/wait.h>  #include <sys/wait.h>
 #include "kbd.h"  #include "kbd.h"
 #endif /* !NO_DIRED */  
 #include <limits.h>  #include <limits.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <sys/dir.h>  #include <sys/dir.h>
Line 40 
Line 38 
   
         /* If 'fn' is a directory open it with dired. */          /* If 'fn' is a directory open it with dired. */
         if (fisdir(fn) == TRUE)          if (fisdir(fn) == TRUE)
 #ifdef NO_DIRED  
                 return (FIOERR);  
 #else  
                 return (FIODIR);                  return (FIODIR);
 #endif /* NO_DIRED */  
   
         if (bp && fstat(fileno(ffp), &statbuf) == 0) {          if (bp && fstat(fileno(ffp), &statbuf) == 0) {
                 /* set highorder bit to make sure this isn't all zero */                  /* set highorder bit to make sure this isn't all zero */
Line 359 
Line 353 
 }  }
 #endif /* !NO_STARTUP */  #endif /* !NO_STARTUP */
   
 #ifndef NO_DIRED  
   
 int  int
 copy(char *frname, char *toname)  copy(char *frname, char *toname)
 {  {
Line 408 
Line 400 
   
         return (TRUE);          return (TRUE);
 }  }
   
 #endif                          /* NO_DIRED */  
   
 struct filelist {  struct filelist {
         struct list     fl_l;          struct list     fl_l;

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63