Print this page
remove support for non-ANSI compilation


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  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 /*


  23  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 
  28 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  29 /*        All Rights Reserved   */
  30 
  31 
  32 #ifndef _SYS_VTOC_H
  33 #define _SYS_VTOC_H
  34 
  35 #include <sys/dklabel.h>
  36 
  37 #ifdef  __cplusplus
  38 extern "C" {
  39 #endif
  40 
  41 /*
  42  *      Note:  the VTOC is not implemented fully, nor in the manner


 310                 v32.v_part[i].p_size = (unsigned)extv.v_part[i].p_size; \
 311         }                                               \
 312         for (i = 0; i < V_NUMPAR; i++) {             \
 313                 if (extv.timestamp[i] > TIME32_MAX)  \
 314                         v32.timestamp[i] = TIME32_MAX;  \
 315                 else                                    \
 316                         v32.timestamp[i] = (time32_t)extv.timestamp[i]; \
 317         }                                               \
 318         bcopy(extv.v_asciilabel, v32.v_asciilabel, LEN_DKL_ASCII);      \
 319         }
 320 
 321 
 322 #endif /* _SYSCALL32 */
 323 
 324 /*
 325  * These defines are the mode parameter for the checksum routines.
 326  */
 327 #define CK_CHECKSUM     0       /* check checksum */
 328 #define CK_MAKESUM      1       /* generate checksum */
 329 
 330 #if defined(__STDC__)
 331 
 332 extern  int     read_vtoc(int, struct vtoc *);
 333 extern  int     write_vtoc(int, struct vtoc *);
 334 extern  int     read_extvtoc(int, struct extvtoc *);
 335 extern  int     write_extvtoc(int, struct extvtoc *);
 336 
 337 #else
 338 
 339 extern  int     read_vtoc();
 340 extern  int     write_vtoc();
 341 extern  int     read_extvtoc();
 342 extern  int     write_extvtoc();
 343 
 344 #endif  /* __STDC__ */
 345 
 346 #ifdef  __cplusplus
 347 }
 348 #endif
 349 
 350 #endif  /* _SYS_VTOC_H */


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  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 /*
  23  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24  *
  25  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 
  30 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  31 /*        All Rights Reserved   */
  32 
  33 
  34 #ifndef _SYS_VTOC_H
  35 #define _SYS_VTOC_H
  36 
  37 #include <sys/dklabel.h>
  38 
  39 #ifdef  __cplusplus
  40 extern "C" {
  41 #endif
  42 
  43 /*
  44  *      Note:  the VTOC is not implemented fully, nor in the manner


 312                 v32.v_part[i].p_size = (unsigned)extv.v_part[i].p_size; \
 313         }                                               \
 314         for (i = 0; i < V_NUMPAR; i++) {             \
 315                 if (extv.timestamp[i] > TIME32_MAX)  \
 316                         v32.timestamp[i] = TIME32_MAX;  \
 317                 else                                    \
 318                         v32.timestamp[i] = (time32_t)extv.timestamp[i]; \
 319         }                                               \
 320         bcopy(extv.v_asciilabel, v32.v_asciilabel, LEN_DKL_ASCII);      \
 321         }
 322 
 323 
 324 #endif /* _SYSCALL32 */
 325 
 326 /*
 327  * These defines are the mode parameter for the checksum routines.
 328  */
 329 #define CK_CHECKSUM     0       /* check checksum */
 330 #define CK_MAKESUM      1       /* generate checksum */
 331 


 332 extern  int     read_vtoc(int, struct vtoc *);
 333 extern  int     write_vtoc(int, struct vtoc *);
 334 extern  int     read_extvtoc(int, struct extvtoc *);
 335 extern  int     write_extvtoc(int, struct extvtoc *);
 336 









 337 #ifdef  __cplusplus
 338 }
 339 #endif
 340 
 341 #endif  /* _SYS_VTOC_H */