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


  45 };
  46 
  47 static smod_reg_t sinfo = {
  48         SOCKMOD_VERSION,
  49         "socksdp",
  50         SOCK_UC_VERSION,
  51         SOCK_DC_VERSION,
  52         NULL,
  53         &sosdp_priv
  54 };
  55 
  56 /*
  57  * Module linkage information for the kernel
  58  */
  59 static struct modlsockmod modlsockmod = {
  60         &mod_sockmodops, "SDP socket module", &sinfo
  61 };
  62 
  63 static struct modlinkage modlinkage = {
  64         MODREV_1,
  65         &modlsockmod,
  66         NULL
  67 };
  68 
  69 /*
  70  * Creates a sdp socket data structure.
  71  */
  72 /* ARGSUSED */
  73 struct sonode *
  74 socksdp_create(struct sockparams *sp, int family, int type, int protocol,
  75                     int version, int sflags, int *errorp, cred_t *cr)
  76 {
  77         struct sonode *so;
  78         int kmflags = (sflags & SOCKET_NOSLEEP) ? KM_NOSLEEP : KM_SLEEP;
  79 
  80         dprint(4, ("Inside sosdp_create: domain:%d proto:%d type:%d",
  81             family, protocol, type));
  82 
  83         *errorp = 0;
  84         if (is_system_labeled()) {
  85                 *errorp = EOPNOTSUPP;
  86                 return (NULL);




  45 };
  46 
  47 static smod_reg_t sinfo = {
  48         SOCKMOD_VERSION,
  49         "socksdp",
  50         SOCK_UC_VERSION,
  51         SOCK_DC_VERSION,
  52         NULL,
  53         &sosdp_priv
  54 };
  55 
  56 /*
  57  * Module linkage information for the kernel
  58  */
  59 static struct modlsockmod modlsockmod = {
  60         &mod_sockmodops, "SDP socket module", &sinfo
  61 };
  62 
  63 static struct modlinkage modlinkage = {
  64         MODREV_1,
  65         { &modlsockmod, NULL }

  66 };
  67 
  68 /*
  69  * Creates a sdp socket data structure.
  70  */
  71 /* ARGSUSED */
  72 struct sonode *
  73 socksdp_create(struct sockparams *sp, int family, int type, int protocol,
  74                     int version, int sflags, int *errorp, cred_t *cr)
  75 {
  76         struct sonode *so;
  77         int kmflags = (sflags & SOCKET_NOSLEEP) ? KM_NOSLEEP : KM_SLEEP;
  78 
  79         dprint(4, ("Inside sosdp_create: domain:%d proto:%d type:%d",
  80             family, protocol, type));
  81 
  82         *errorp = 0;
  83         if (is_system_labeled()) {
  84                 *errorp = EOPNOTSUPP;
  85                 return (NULL);