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


   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * ISO 9660 System Use Sharing Protocol extension filesystem specifications
  24  * Copyright (c) 1991,2000,2001 by Sun Microsystems, Inc.
  25  * All rights reserved.
  26  */
  27 
  28 #pragma ident   "%Z%%M% %I%     %E% SMI"
  29 
  30 #include <sys/types.h>
  31 #include <sys/t_lock.h>
  32 #include <sys/param.h>
  33 #include <sys/systm.h>
  34 #include <sys/sysmacros.h>
  35 #include <sys/kmem.h>
  36 #include <sys/signal.h>
  37 #include <sys/user.h>
  38 #include <sys/proc.h>
  39 #include <sys/disp.h>
  40 #include <sys/buf.h>
  41 #include <sys/pathname.h>
  42 #include <sys/vfs.h>
  43 #include <sys/vnode.h>
  44 #include <sys/file.h>
  45 #include <sys/uio.h>
  46 #include <sys/conf.h>
  47 
  48 #include <vm/page.h>
  49 


  51 #include <sys/fs/hsfs_isospec.h>
  52 #include <sys/fs/hsfs_node.h>
  53 #include <sys/fs/hsfs_impl.h>
  54 #include <sys/fs/hsfs_susp.h>
  55 #include <sys/fs/hsfs_rrip.h>
  56 
  57 #include <sys/statvfs.h>
  58 #include <sys/mount.h>
  59 #include <sys/swap.h>
  60 #include <sys/errno.h>
  61 #include <sys/debug.h>
  62 #include "fs/fs_subr.h"
  63 #include <sys/cmn_err.h>
  64 
  65 
  66 
  67 /*
  68  *      Common Signatures for all SUSP
  69  */
  70 ext_signature_t  susp_signature_table[ ] = {
  71         SUSP_SP,        share_protocol,         /* must be first in table */
  72         SUSP_CE,        share_continue,         /* must be second in table */
  73         SUSP_PD,        share_padding,
  74         SUSP_ER,        share_ext_ref,
  75         SUSP_ST,        share_stop,
  76         (char *)NULL,   NULL
  77 };
  78 
  79 /*
  80  * These are global pointers referring to the above table, so the
  81  * positions must not change as marked on the right above.
  82  */
  83 ext_signature_t *susp_sp = &susp_signature_table[0];
  84 ext_signature_t *susp_ce = &susp_signature_table[1];
  85 
  86 
  87 /*
  88  * ext name     version         implemented     signature table
  89  *
  90  * the SUSP must be the first entry in the table.
  91  * the RRIP must be the second entry in the table. We need to be able
  92  * to check the RRIP bit being set, so we must know it's position.
  93  * RRIP_BIT is set to 2 in rrip.h
  94  */
  95 extension_name_t   extension_name_table[]  =  {
  96         "SUSP_1991A",   SUSP_VERSION,           susp_signature_table, /* #1 */
  97         RRIP_ER_EXT_ID, RRIP_EXT_VERSION,       rrip_signature_table,
  98         (char *)NULL,   0,                      (ext_signature_t *)NULL
  99 };
 100 
 101 extension_name_t        *susp_ext_name = extension_name_table;
 102 
 103 /*
 104  * share_protocol()
 105  *
 106  * sig_handler() for SUSP signature "SP"
 107  *
 108  * This function looks for the "SP" signature field, which means that
 109  * the SUSP is supported on the current CD-ROM.  It looks for the word
 110  * 0xBEEF in the signature.  If that exists, the SUSP is implemented.
 111  * The function will then set the implemented bit in the "SUSP" entry
 112  * of the extention_name_table[]. If the bytes don't match, then we
 113  *      return a big fat NULL and treat this as an ISO 9660 CD-ROM.
 114  */
 115 uchar_t *
 116 share_protocol(sig_args_t *sig_args_p)
 117 {
 118         uchar_t *sp_ptr = sig_args_p->SUF_ptr;




   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * ISO 9660 System Use Sharing Protocol extension filesystem specifications
  24  * Copyright (c) 1991,2000,2001 by Sun Microsystems, Inc.
  25  * All rights reserved.
  26  */
  27 


  28 #include <sys/types.h>
  29 #include <sys/t_lock.h>
  30 #include <sys/param.h>
  31 #include <sys/systm.h>
  32 #include <sys/sysmacros.h>
  33 #include <sys/kmem.h>
  34 #include <sys/signal.h>
  35 #include <sys/user.h>
  36 #include <sys/proc.h>
  37 #include <sys/disp.h>
  38 #include <sys/buf.h>
  39 #include <sys/pathname.h>
  40 #include <sys/vfs.h>
  41 #include <sys/vnode.h>
  42 #include <sys/file.h>
  43 #include <sys/uio.h>
  44 #include <sys/conf.h>
  45 
  46 #include <vm/page.h>
  47 


  49 #include <sys/fs/hsfs_isospec.h>
  50 #include <sys/fs/hsfs_node.h>
  51 #include <sys/fs/hsfs_impl.h>
  52 #include <sys/fs/hsfs_susp.h>
  53 #include <sys/fs/hsfs_rrip.h>
  54 
  55 #include <sys/statvfs.h>
  56 #include <sys/mount.h>
  57 #include <sys/swap.h>
  58 #include <sys/errno.h>
  59 #include <sys/debug.h>
  60 #include "fs/fs_subr.h"
  61 #include <sys/cmn_err.h>
  62 
  63 
  64 
  65 /*
  66  *      Common Signatures for all SUSP
  67  */
  68 ext_signature_t  susp_signature_table[ ] = {
  69         { SUSP_SP,      share_protocol },       /* must be first in table */
  70         { SUSP_CE,      share_continue },       /* must be second in table */
  71         { SUSP_PD,      share_padding },
  72         { SUSP_ER,      share_ext_ref },
  73         { SUSP_ST,      share_stop },
  74         { NULL,         NULL }
  75 };
  76 
  77 /*
  78  * These are global pointers referring to the above table, so the
  79  * positions must not change as marked on the right above.
  80  */
  81 ext_signature_t *susp_sp = &susp_signature_table[0];
  82 ext_signature_t *susp_ce = &susp_signature_table[1];
  83 
  84 
  85 /*
  86  * ext name     version         implemented     signature table
  87  *
  88  * the SUSP must be the first entry in the table.
  89  * the RRIP must be the second entry in the table. We need to be able
  90  * to check the RRIP bit being set, so we must know it's position.
  91  * RRIP_BIT is set to 2 in rrip.h
  92  */
  93 extension_name_t   extension_name_table[]  =  {
  94         { "SUSP_1991A", SUSP_VERSION,   susp_signature_table }, /* #1 */
  95         { RRIP_ER_EXT_ID, RRIP_EXT_VERSION, rrip_signature_table },
  96         { NULL,         0,              (ext_signature_t *)NULL }
  97 };
  98 
  99 extension_name_t        *susp_ext_name = extension_name_table;
 100 
 101 /*
 102  * share_protocol()
 103  *
 104  * sig_handler() for SUSP signature "SP"
 105  *
 106  * This function looks for the "SP" signature field, which means that
 107  * the SUSP is supported on the current CD-ROM.  It looks for the word
 108  * 0xBEEF in the signature.  If that exists, the SUSP is implemented.
 109  * The function will then set the implemented bit in the "SUSP" entry
 110  * of the extention_name_table[]. If the bytes don't match, then we
 111  *      return a big fat NULL and treat this as an ISO 9660 CD-ROM.
 112  */
 113 uchar_t *
 114 share_protocol(sig_args_t *sig_args_p)
 115 {
 116         uchar_t *sp_ptr = sig_args_p->SUF_ptr;