Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/sockfs/sockcommon_vnops.c
          +++ new/usr/src/uts/common/fs/sockfs/sockcommon_vnops.c
↓ open down ↓ 79 lines elided ↑ open up ↑
  80   80  static int      socket_vop_seek(struct vnode *, offset_t, offset_t *,
  81   81                      caller_context_t *);
  82   82  static int      socket_vop_poll(struct vnode *, short, int, short *,
  83   83                      struct pollhead **, caller_context_t *);
  84   84  
  85   85  extern int      socket_close_internal(struct sonode *, int, cred_t *);
  86   86  extern void     socket_destroy_internal(struct sonode *, cred_t *);
  87   87  
  88   88  struct vnodeops *socket_vnodeops;
  89   89  const fs_operation_def_t socket_vnodeops_template[] = {
  90      -        VOPNAME_OPEN,           { .vop_open = socket_vop_open },
  91      -        VOPNAME_CLOSE,          { .vop_close = socket_vop_close },
  92      -        VOPNAME_READ,           { .vop_read = socket_vop_read },
  93      -        VOPNAME_WRITE,          { .vop_write = socket_vop_write },
  94      -        VOPNAME_IOCTL,          { .vop_ioctl = socket_vop_ioctl },
  95      -        VOPNAME_SETFL,          { .vop_setfl = socket_vop_setfl },
  96      -        VOPNAME_GETATTR,        { .vop_getattr = socket_vop_getattr },
  97      -        VOPNAME_SETATTR,        { .vop_setattr = socket_vop_setattr },
  98      -        VOPNAME_ACCESS,         { .vop_access = socket_vop_access },
  99      -        VOPNAME_FSYNC,          { .vop_fsync = socket_vop_fsync },
 100      -        VOPNAME_INACTIVE,       { .vop_inactive = socket_vop_inactive },
 101      -        VOPNAME_FID,            { .vop_fid = socket_vop_fid },
 102      -        VOPNAME_SEEK,           { .vop_seek = socket_vop_seek },
 103      -        VOPNAME_POLL,           { .vop_poll = socket_vop_poll },
 104      -        VOPNAME_DISPOSE,        { .error = fs_error },
 105      -        NULL,                   NULL
       90 +        { VOPNAME_OPEN,         { .vop_open = socket_vop_open } },
       91 +        { VOPNAME_CLOSE,        { .vop_close = socket_vop_close } },
       92 +        { VOPNAME_READ,         { .vop_read = socket_vop_read } },
       93 +        { VOPNAME_WRITE,        { .vop_write = socket_vop_write } },
       94 +        { VOPNAME_IOCTL,        { .vop_ioctl = socket_vop_ioctl } },
       95 +        { VOPNAME_SETFL,        { .vop_setfl = socket_vop_setfl } },
       96 +        { VOPNAME_GETATTR,      { .vop_getattr = socket_vop_getattr } },
       97 +        { VOPNAME_SETATTR,      { .vop_setattr = socket_vop_setattr } },
       98 +        { VOPNAME_ACCESS,       { .vop_access = socket_vop_access } },
       99 +        { VOPNAME_FSYNC,        { .vop_fsync = socket_vop_fsync } },
      100 +        { VOPNAME_INACTIVE,     { .vop_inactive = socket_vop_inactive } },
      101 +        { VOPNAME_FID,          { .vop_fid = socket_vop_fid } },
      102 +        { VOPNAME_SEEK,         { .vop_seek = socket_vop_seek } },
      103 +        { VOPNAME_POLL,         { .vop_poll = socket_vop_poll } },
      104 +        { VOPNAME_DISPOSE,      { .error = fs_error } },
      105 +        { NULL,                 { NULL } }
 106  106  };
 107  107  
 108  108  
 109  109  /*
 110  110   * generic vnode ops
 111  111   */
 112  112  
 113  113  /*ARGSUSED*/
 114  114  static int
 115  115  socket_vop_open(struct vnode **vpp, int flag, struct cred *cr,
↓ open down ↓ 367 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX