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

Diff for /src/usr.bin/find/ls.c between version 1.10 and 1.11

version 1.10, 2003/06/03 02:56:08 version 1.11, 2003/06/26 07:27:29
Line 45 
Line 45 
 #include <tzfile.h>  #include <tzfile.h>
 #include <unistd.h>  #include <unistd.h>
 #include <utmp.h>  #include <utmp.h>
   #include <pwd.h>
   #include <grp.h>
   
 /* Derived from the print routines in the ls(1) source code. */  /* Derived from the print routines in the ls(1) source code. */
   
Line 54 
Line 56 
 #define NAME_WIDTH      8  #define NAME_WIDTH      8
   
 void  void
 printlong(name, accpath, sb)  printlong(char *name, char *accpath, struct stat *sb)
         char *name;                     /* filename to print */  
         char *accpath;                  /* current valid path to filename */  
         struct stat *sb;                /* stat buffer */  
 {  {
         char modep[15], *user_from_uid(), *group_from_gid();          char modep[15];
   
         (void)printf("%6u %4lld ", sb->st_ino, (long long)sb->st_blocks);          (void)printf("%6u %4lld ", sb->st_ino, (long long)sb->st_blocks);
         (void)strmode(sb->st_mode, modep);          (void)strmode(sb->st_mode, modep);
Line 80 
Line 79 
 }  }
   
 static void  static void
 printtime(ftime)  printtime(time_t ftime)
         time_t ftime;  
 {  {
         int i;          int i;
         char *longstring;          char *longstring;
Line 103 
Line 101 
 }  }
   
 static void  static void
 printlink(name)  printlink(char *name)
         char *name;  
 {  {
         int lnklen;          int lnklen;
         char path[MAXPATHLEN];          char path[MAXPATHLEN];

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11