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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/dev/sdev_ptsops.c
          +++ new/usr/src/uts/common/fs/dev/sdev_ptsops.c
↓ open down ↓ 396 lines elided ↑ open up ↑
 397  397              devpts_set_id, AT_UID|AT_GID));
 398  398  }
 399  399  
 400  400  
 401  401  /*
 402  402   * We override lookup and readdir to build entries based on the
 403  403   * in kernel pty table. Also override setattr/setsecattr to
 404  404   * avoid persisting permissions.
 405  405   */
 406  406  const fs_operation_def_t devpts_vnodeops_tbl[] = {
 407      -        VOPNAME_READDIR,        { .vop_readdir = devpts_readdir },
 408      -        VOPNAME_LOOKUP,         { .vop_lookup = devpts_lookup },
 409      -        VOPNAME_CREATE,         { .vop_create = devpts_create },
 410      -        VOPNAME_SETATTR,        { .vop_setattr = devpts_setattr },
 411      -        VOPNAME_REMOVE,         { .error = fs_nosys },
 412      -        VOPNAME_MKDIR,          { .error = fs_nosys },
 413      -        VOPNAME_RMDIR,          { .error = fs_nosys },
 414      -        VOPNAME_SYMLINK,        { .error = fs_nosys },
 415      -        VOPNAME_SETSECATTR,     { .error = fs_nosys },
 416      -        NULL,                   NULL
      407 +        { VOPNAME_READDIR,      { .vop_readdir = devpts_readdir } },
      408 +        { VOPNAME_LOOKUP,       { .vop_lookup = devpts_lookup } },
      409 +        { VOPNAME_CREATE,       { .vop_create = devpts_create } },
      410 +        { VOPNAME_SETATTR,      { .vop_setattr = devpts_setattr } },
      411 +        { VOPNAME_REMOVE,       { .error = fs_nosys } },
      412 +        { VOPNAME_MKDIR,        { .error = fs_nosys } },
      413 +        { VOPNAME_RMDIR,        { .error = fs_nosys } },
      414 +        { VOPNAME_SYMLINK,      { .error = fs_nosys } },
      415 +        { VOPNAME_SETSECATTR,   { .error = fs_nosys } },
      416 +        { NULL,                 { NULL } }
 417  417  };
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX