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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/session.c
          +++ new/usr/src/uts/common/os/session.c
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  /*
  22   22   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   27  /*        All Rights Reserved   */
  28   28  
  29   29  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   30  #include <sys/types.h>
  33   31  #include <sys/sysmacros.h>
  34   32  #include <sys/param.h>
  35   33  #include <sys/systm.h>
  36   34  #include <sys/file.h>
  37   35  #include <sys/vnode.h>
  38   36  #include <sys/errno.h>
  39   37  #include <sys/signal.h>
  40   38  #include <sys/cred.h>
  41   39  #include <sys/policy.h>
↓ open down ↓ 1 lines elided ↑ open up ↑
  43   41  #include <sys/debug.h>
  44   42  #include <sys/proc.h>
  45   43  #include <sys/session.h>
  46   44  #include <sys/kmem.h>
  47   45  #include <sys/cmn_err.h>
  48   46  #include <sys/strsubr.h>
  49   47  #include <sys/fs/snode.h>
  50   48  
  51   49  sess_t session0 = {
  52   50          &pid0,          /* s_sidp */
  53      -        {0},            /* s_lock */
       51 +        {{NULL}},       /* s_lock */
  54   52          1,              /* s_ref */
  55   53          B_FALSE,        /* s_sighuped */
  56   54          B_FALSE,        /* s_exit */
  57      -        0,              /* s_exit_cv */
       55 +        {0},            /* s_exit_cv */
  58   56          0,              /* s_cnt */
  59      -        0,              /* s_cnt_cv */
       57 +        {0},            /* s_cnt_cv */
  60   58          NODEV,          /* s_dev */
  61   59          NULL,           /* s_vp */
  62   60          NULL            /* s_cred */
  63   61  };
  64   62  
  65   63  void
  66   64  sess_hold(proc_t *p)
  67   65  {
  68   66          ASSERT(MUTEX_HELD(&pidlock) || MUTEX_HELD(&p->p_splock));
  69   67          mutex_enter(&p->p_sessp->s_lock);
↓ open down ↓ 639 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX