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

Diff for /src/usr.bin/kdump/kdump.c between version 1.81 and 1.82

version 1.81, 2013/06/01 09:51:30 version 1.82, 2013/07/03 06:41:51
Line 47 
Line 47 
 #include <sys/vmmeter.h>  #include <sys/vmmeter.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <sys/tty.h>  #include <sys/tty.h>
   #include <sys/wait.h>
 #include <netinet/in.h>  #include <netinet/in.h>
 #include <arpa/inet.h>  #include <arpa/inet.h>
 #define _KERNEL  #define _KERNEL
Line 162 
Line 163 
 static void usage(void);  static void usage(void);
 static void atfd(int);  static void atfd(int);
 static void polltimeout(int);  static void polltimeout(int);
   static void pgid(int);
   static void wait4pid(int);
   
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
Line 627 
Line 630 
                 break;                  break;
         }          }
         case SYS_kill:          case SYS_kill:
                 pn(NULL);                  pn(pgid);
                 pn(signame);                  pn(signame);
                 break;                  break;
         case SYS_lseek:          case SYS_lseek:
Line 792 
Line 795 
                 plln();                  plln();
                 break;                  break;
         case SYS_wait4:          case SYS_wait4:
                   pn(wait4pid);
                 pn(NULL);                  pn(NULL);
                 pn(NULL);  
                 pn(wait4optname);                  pn(wait4optname);
                 break;                  break;
         case SYS_getrusage:          case SYS_getrusage:
Line 1654 
Line 1657 
                 (void)printf("%d", timeout);                  (void)printf("%d", timeout);
         else          else
                 (void)printf("%#x", timeout);                  (void)printf("%#x", timeout);
   }
   
   static void
   pgid(int pid)
   {
           (void)printf("%d", pid);
   }
   
   static void
   wait4pid(int pid)
   {
           if (pid == WAIT_ANY)
                   (void)printf("WAIT_ANY");
           else if (pid == WAIT_MYPGRP)
                   (void)printf("WAIT_MYPGRP");
           else
                   pgid(pid);
 }  }

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82