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


  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright (c) 1990 Mentat Inc.
  24  */
  25 
  26 #include <sys/ib/clients/rds/rds.h>
  27 #include <inet/proto_set.h>
  28 
  29 #define rds_max_buf 2097152
  30 opdes_t rds_opt_arr[] = {
  31 
  32 { SO_TYPE,      SOL_SOCKET, OA_R, OA_R, OP_NP, 0, sizeof (int), 0 },
  33 { SO_SNDBUF,    SOL_SOCKET, OA_RW, OA_RW, OP_NP, 0, sizeof (int), 0 },
  34 { SO_RCVBUF,    SOL_SOCKET, OA_RW, OA_RW, OP_NP, 0, sizeof (int), 0 },
  35 };
  36 
  37 /* ARGSUSED */
  38 int
  39 rds_opt_default(queue_t *q, t_scalar_t level, t_scalar_t name, uchar_t *ptr)
  40 {
  41         /* no default value processed by protocol specific code currently */
  42         return (-1);
  43 }
  44 
  45 /*
  46  * This routine retrieves the current status of socket options.
  47  * It returns the size of the option retrieved.
  48  */
  49 int
  50 rds_opt_get(queue_t *q, t_scalar_t level, t_scalar_t name, uchar_t *ptr)
  51 {
  52         int     *i1 = (int *)(uintptr_t)ptr;
  53 
  54         switch (level) {




  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright (c) 1990 Mentat Inc.
  24  */
  25 
  26 #include <sys/ib/clients/rds/rds.h>
  27 #include <inet/proto_set.h>
  28 
  29 #define rds_max_buf 2097152
  30 opdes_t rds_opt_arr[] = {
  31 
  32 { SO_TYPE,      SOL_SOCKET, OA_R, OA_R, OP_NP, 0, sizeof (int), {0} },
  33 { SO_SNDBUF,    SOL_SOCKET, OA_RW, OA_RW, OP_NP, 0, sizeof (int), {0} },
  34 { SO_RCVBUF,    SOL_SOCKET, OA_RW, OA_RW, OP_NP, 0, sizeof (int), {0} },
  35 };
  36 
  37 /* ARGSUSED */
  38 int
  39 rds_opt_default(queue_t *q, t_scalar_t level, t_scalar_t name, uchar_t *ptr)
  40 {
  41         /* no default value processed by protocol specific code currently */
  42         return (-1);
  43 }
  44 
  45 /*
  46  * This routine retrieves the current status of socket options.
  47  * It returns the size of the option retrieved.
  48  */
  49 int
  50 rds_opt_get(queue_t *q, t_scalar_t level, t_scalar_t name, uchar_t *ptr)
  51 {
  52         int     *i1 = (int *)(uintptr_t)ptr;
  53 
  54         switch (level) {