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

Diff for /src/usr.bin/modstat/Attic/modstat.c between version 1.19 and 1.20

version 1.19, 2002/12/12 00:00:16 version 1.20, 2003/01/18 23:30:20
Line 38 
Line 38 
 #include <sys/conf.h>  #include <sys/conf.h>
 #include <sys/mount.h>  #include <sys/mount.h>
 #include <sys/lkm.h>  #include <sys/lkm.h>
 #include <stdio.h>  
 #include <stdlib.h>  #include <a.out.h>
 #include <unistd.h>  
 #include <err.h>  #include <err.h>
   #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
   #include <stdio.h>
   #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <a.out.h>  #include <unistd.h>
 #include <errno.h>  
 #include "pathnames.h"  #include "pathnames.h"
   
 #define POINTERSIZE     ((int)(2 * sizeof(void*)))  #define POINTERSIZE     ((int)(2 * sizeof(void*)))
Line 59 
Line 61 
 };  };
   
 static void  static void
 usage()  usage(void)
 {  {
         extern char *__progname;          extern char *__progname;
   
Line 141 
Line 143 
          * to ioctl() to retrive the loaded module(s) status).           * to ioctl() to retrive the loaded module(s) status).
          */           */
         if ((devfd = open(_PATH_LKM, O_RDONLY)) == -1)          if ((devfd = open(_PATH_LKM, O_RDONLY)) == -1)
                 err(2, _PATH_LKM);                  err(2, "%s", _PATH_LKM);
   
         setegid(getgid());          setegid(getgid());
         setgid(getgid());          setgid(getgid());

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20