[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.76 and 1.77

version 1.76, 2012/12/05 12:54:15 version 1.77, 2012/12/25 09:35:51
Line 59 
Line 59 
 #include <err.h>  #include <err.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <limits.h>  #include <limits.h>
   #include <poll.h>
 #include <signal.h>  #include <signal.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 159 
Line 160 
 static void setemul(const char *);  static void setemul(const char *);
 static void usage(void);  static void usage(void);
 static void atfd(int);  static void atfd(int);
   static void polltimeout(int);
   
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
Line 717 
Line 719 
                 pn(NULL);                  pn(NULL);
                 pn(sendrecvflagsname);                  pn(sendrecvflagsname);
                 break;                  break;
           case SYS_shutdown:
                   pn(NULL);
                   pn(shutdownhowname);
                   break;
         case SYS___semctl:          case SYS___semctl:
                 pn(NULL);                  pn(NULL);
                 pn(NULL);                  pn(NULL);
Line 741 
Line 747 
         case SYS_clock_getres:          case SYS_clock_getres:
                 pn(clockname);                  pn(clockname);
                 break;                  break;
           case SYS_poll:
                   pn(NULL);
                   pn(NULL);
                   pn(polltimeout);
                   break;
         case SYS_sigaction:          case SYS_sigaction:
                 pn(signame);                  pn(signame);
                 break;                  break;
Line 777 
Line 788 
                 pn(NULL);                  pn(NULL);
                 pn(wait4optname);                  pn(wait4optname);
                 break;                  break;
           case SYS_getrusage:
                   pn(rusagewho);
                   break;
         case SYS___thrsleep:          case SYS___thrsleep:
                 pn(NULL);                  pn(NULL);
                 pn(clockname);                  pn(clockname);
Line 862 
Line 876 
                 pn(NULL);                  pn(NULL);
                 pn(atflagsname);                  pn(atflagsname);
                 break;                  break;
           case SYS_pathconf:
           case SYS_fpathconf:
                   pn(NULL);
                   pn(pathconfname);
                   break;
         }          }
   
 nonnative:  nonnative:
Line 900 
Line 919 
         { "tty" },          { "tty" },
         { "uid" },          { "uid" },
         { "ruid" },          { "ruid" },
           { "kthread" },
 };  };
 static struct ctlname ttysname[] = CTL_KERN_TTY_NAMES;  static struct ctlname ttysname[] = CTL_KERN_TTY_NAMES;
 static struct ctlname semname[] = CTL_KERN_SEMINFO_NAMES;  static struct ctlname semname[] = CTL_KERN_SEMINFO_NAMES;
Line 1604 
Line 1624 
                 (void)printf("%d", fd);                  (void)printf("%d", fd);
         else          else
                 (void)printf("%#x", fd);                  (void)printf("%#x", fd);
   }
   
   static void
   polltimeout(int timeout)
   {
           if (timeout == INFTIM)
                   (void)printf("INFTIM");
           else if (decimal)
                   (void)printf("%d", timeout);
           else
                   (void)printf("%#x", timeout);
 }  }

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77