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

Diff for /src/usr.bin/kdump/mksubr between version 1.13 and 1.14

version 1.13, 2012/07/21 07:16:03 version 1.14, 2012/12/25 09:35:51
Line 251 
Line 251 
 #include <netinet/in.h>  #include <netinet/in.h>
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/mount.h>  #include <sys/mount.h>
   #include <sys/poll.h>
 #include <sys/ptrace.h>  #include <sys/ptrace.h>
 #include <sys/resource.h>  #include <sys/resource.h>
 #include <sys/reboot.h>  #include <sys/reboot.h>
Line 415 
Line 416 
 void  void
 flagsandmodename (int flags, int mode) {  flagsandmodename (int flags, int mode) {
         flagsname (flags);          flagsname (flags);
         (void)putchar(',');  
         if ((flags & O_CREAT) == O_CREAT) {          if ((flags & O_CREAT) == O_CREAT) {
                   (void)putchar(',');
                 modename (mode);                  modename (mode);
         } else {          } else if (!fancy) {
                   (void)putchar(',');
                 if (decimal) {                  if (decimal) {
                         (void)printf("<unused>%ld", (long)mode);                          (void)printf("<unused>%ld", (long)mode);
                 } else {                  } else {
Line 468 
Line 470 
 #auto_or_type "nfssvcname" "NFSSVC_[A-Z]+[[:space:]]+0x[0-9]+" "nfsserver/nfs.h"  #auto_or_type "nfssvcname" "NFSSVC_[A-Z]+[[:space:]]+0x[0-9]+" "nfsserver/nfs.h"
 #  #
 auto_switch_type "whencename" "SEEK_[A-Z]+[[:space:]]+[0-9]+" "sys/unistd.h"  auto_switch_type "whencename" "SEEK_[A-Z]+[[:space:]]+[0-9]+" "sys/unistd.h"
   auto_switch_type "pathconfname" "_PC_[_A-Z]+[[:space:]]+[0-9]+" "sys/unistd.h"
 auto_switch_type "rlimitname" "RLIMIT_[A-Z]+[[:space:]]+[0-9]+" "sys/resource.h"  auto_switch_type "rlimitname" "RLIMIT_[A-Z]+[[:space:]]+[0-9]+" "sys/resource.h"
 #auto_switch_type "shutdownhowname" "SHUT_[A-Z]+[[:space:]]+[0-9]+" "sys/socket.h"  auto_switch_type "shutdownhowname" "SHUT_[A-Z]+[[:space:]]+[0-9]+" "sys/socket.h"
 #auto_switch_type "prioname" "PRIO_[A-Z]+[[:space:]]+[0-9]" "sys/resource.h"  #auto_switch_type "prioname" "PRIO_[A-Z]+[[:space:]]+[0-9]" "sys/resource.h"
 auto_switch_type "madvisebehavname" "_?MADV_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h"  auto_switch_type "madvisebehavname" "_?MADV_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h"
 auto_switch_type "msyncflagsname" "MS_[A-Z]+[[:space:]]+0x[0-9]+" "sys/mman.h"  auto_switch_type "msyncflagsname" "MS_[A-Z]+[[:space:]]+0x[0-9]+" "sys/mman.h"
Line 480 
Line 483 
 #auto_switch_type "kldsymcmdname" "KLDSYM_[A-Z]+[[:space:]]+[0-9]+" "sys/linker.h"  #auto_switch_type "kldsymcmdname" "KLDSYM_[A-Z]+[[:space:]]+[0-9]+" "sys/linker.h"
 #auto_switch_type "sendfileflagsname" "SF_[A-Z]+[[:space:]]+[0-9]+" "sys/socket.h"  #auto_switch_type "sendfileflagsname" "SF_[A-Z]+[[:space:]]+[0-9]+" "sys/socket.h"
 #auto_switch_type "acltypename" "ACL_TYPE_[A-Z4_]+[[:space:]]+0x[0-9]+" "sys/acl.h"  #auto_switch_type "acltypename" "ACL_TYPE_[A-Z4_]+[[:space:]]+0x[0-9]+" "sys/acl.h"
   auto_switch_type "rusagewho" "RUSAGE_[A-Z]+[[:space:]]+[-0-9]+" "sys/resource.h"
 auto_orz_type "sigactionflagname" "SA_[A-Z]+[[:space:]]+0x[0-9]+" "sys/signal.h"  auto_orz_type "sigactionflagname" "SA_[A-Z]+[[:space:]]+0x[0-9]+" "sys/signal.h"
 auto_switch_type "sigprocmaskhowname" "SIG_[A-Z]+[[:space:]]+[0-9]+" "sys/signal.h"  auto_switch_type "sigprocmaskhowname" "SIG_[A-Z]+[[:space:]]+[0-9]+" "sys/signal.h"
 auto_switch_type "sigill_name" "ILL_[A-Z]+[[:space:]]+[0-9]+" "sys/siginfo.h"  auto_switch_type "sigill_name" "ILL_[A-Z]+[[:space:]]+[0-9]+" "sys/siginfo.h"
Line 525 
Line 529 
         default: /* Should not reach */          default: /* Should not reach */
                 (void)printf("<invalid=%ld>", (long)cmd);                  (void)printf("<invalid=%ld>", (long)cmd);
         }          }
         (void)putchar(',');          if (cmd == F_SETFD) {
         if (cmd == F_GETFD || cmd == F_SETFD) {                  (void)putchar(',');
                 if (arg == FD_CLOEXEC)                  if (arg == FD_CLOEXEC)
                         (void)printf("FD_CLOEXEC");                          (void)printf("FD_CLOEXEC");
                 else if (arg == 0)                  else if (arg == 0)
Line 537 
Line 541 
                         else                          else
                                 (void)printf("<invalid>%#lx", (long)arg);                                  (void)printf("<invalid>%#lx", (long)arg);
                 }                  }
   
         } else if (cmd == F_SETFL) {          } else if (cmd == F_SETFL) {
                   (void)putchar(',');
                 flagsname(arg);                  flagsname(arg);
         } else {          } else if (!fancy || (cmd != F_GETFD && cmd != F_GETFL)) {
                   (void)putchar(',');
                 if (decimal)                  if (decimal)
                         (void)printf("%ld", (long)arg);                          (void)printf("%ld", (long)arg);
                 else                  else

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14