Print this page
1150 libcmdutils has superfluous #define
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Marcel Telka <marcel@telka.sk>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libcmdutils/libcmdutils.h
          +++ new/usr/src/lib/libcmdutils/libcmdutils.h
↓ open down ↓ 60 lines elided ↑ open up ↑
  61   61  extern "C" {
  62   62  #endif
  63   63  
  64   64  /* extended system attribute support */
  65   65  #define _NOT_SATTR      0
  66   66  #define _RO_SATTR       1
  67   67  #define _RW_SATTR       2
  68   68  
  69   69  #define MAXMAPSIZE      (1024*1024*8)   /* map at most 8MB */
  70   70  #define SMALLFILESIZE   (32*1024)       /* don't use mmap on little file */
  71      -#define ISREG(A)        (((A).st_mode & S_IFMT) == S_IFREG)
  72   71  
  73   72  /* avltree */
  74   73  #define OFFSETOF(s, m)  ((size_t)(&(((s *)0)->m)))
  75   74  
  76   75  /* Type used for a node containing a device id and inode number */
  77   76  typedef struct tree_node {
  78   77          dev_t           node_dev;
  79   78          ino_t           node_ino;
  80   79          avl_node_t      avl_link;
  81   80  } tree_node_t;
↓ open down ↓ 109 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX