[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.11 and 1.12

version 1.11, 1998/07/06 18:42:46 version 1.12, 1999/08/17 09:13:15
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 <sys/file.h>  
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <unistd.h>  #include <unistd.h>
 #include <err.h>  #include <err.h>
   #include <fcntl.h>
 #include <string.h>  #include <string.h>
 #include <a.out.h>  #include <a.out.h>
 #include <errno.h>  #include <errno.h>
Line 158 
Line 158 
          * Open the virtual device device driver for exclusive use (needed           * Open the virtual device device driver for exclusive use (needed
          * 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, 0)) == -1)          if ((devfd = open(_PATH_LKM, O_RDONLY)) == -1)
                 err(2, _PATH_LKM);                  err(2, _PATH_LKM);
   
         setegid(getgid());          setegid(getgid());

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