Print this page
remove support for non-ANSI compilation


   2  * CDDL HEADER START
   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  * Copyright (c) 1987, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  26 /*        All Rights Reserved   */
  27 
  28 /*
  29  * University Copyright- Copyright (c) 1982, 1986, 1988
  30  * The Regents of the University of California
  31  * All Rights Reserved
  32  *
  33  * University Acknowledgment- Portions of this document are derived from
  34  * software developed by the University of California, Berkeley, and its
  35  * contributors.
  36  */
  37 
  38 #ifndef _SYS_SWAP_H
  39 #define _SYS_SWAP_H
  40 
  41 #include <sys/isa_defs.h>


  95         off32_t ste_start;      /* starting block for swapping */
  96         off32_t ste_length;     /* length of swap area */
  97         int32_t ste_pages;      /* numbers of pages for swapping */
  98         int32_t ste_free;       /* numbers of ste_pages free */
  99         int32_t ste_flags;      /* see below */
 100 } swapent32_t;
 101 
 102 typedef struct  swaptable32 {
 103         int32_t swt_n;                  /* number of swapents following */
 104         struct  swapent32 swt_ent[1];   /* array of swt_n swapents */
 105 } swaptbl32_t;
 106 
 107 #endif  /* _SYSCALL32 */
 108 
 109 #if defined(_KERNEL)
 110 extern int swapctl(int, void *, int *);
 111 #if defined(_LP64) && defined(_SYSCALL32)
 112 extern int swapctl32(int, void *, int *);
 113 #endif /* _LP64 && _SYSCALL32 */
 114 #else /* !_KERNEL */
 115 #if defined(__STDC__)
 116 extern int swapctl(int, void *);
 117 #else
 118 extern int swapctl();
 119 #endif
 120 #endif /* _KERNEL */
 121 
 122 
 123 /* ste_flags values */
 124 
 125 #define ST_INDEL        0x01            /* Deletion of file is in progress. */
 126                                         /* Prevents others from deleting or */
 127                                         /* allocating from it */
 128 #define ST_DOINGDEL     0x02            /* Set during deletion of file */
 129                                         /* Clearing during deletion signals */
 130                                         /* that you want to add the file back */
 131                                         /* again, and will eventually cause */
 132                                         /* it to be added back */
 133 
 134 /*
 135  * VM - virtual swap device.
 136  */
 137 struct  swapinfo {
 138         ulong_t si_soff;                /* starting offset (bytes) of file */
 139         ulong_t si_eoff;                /* ending offset (bytes) of file */




   2  * CDDL HEADER START
   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  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  23  * Copyright (c) 1987, 2010, Oracle and/or its affiliates. All rights reserved.
  24  */
  25 
  26 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  27 /*        All Rights Reserved   */
  28 
  29 /*
  30  * University Copyright- Copyright (c) 1982, 1986, 1988
  31  * The Regents of the University of California
  32  * All Rights Reserved
  33  *
  34  * University Acknowledgment- Portions of this document are derived from
  35  * software developed by the University of California, Berkeley, and its
  36  * contributors.
  37  */
  38 
  39 #ifndef _SYS_SWAP_H
  40 #define _SYS_SWAP_H
  41 
  42 #include <sys/isa_defs.h>


  96         off32_t ste_start;      /* starting block for swapping */
  97         off32_t ste_length;     /* length of swap area */
  98         int32_t ste_pages;      /* numbers of pages for swapping */
  99         int32_t ste_free;       /* numbers of ste_pages free */
 100         int32_t ste_flags;      /* see below */
 101 } swapent32_t;
 102 
 103 typedef struct  swaptable32 {
 104         int32_t swt_n;                  /* number of swapents following */
 105         struct  swapent32 swt_ent[1];   /* array of swt_n swapents */
 106 } swaptbl32_t;
 107 
 108 #endif  /* _SYSCALL32 */
 109 
 110 #if defined(_KERNEL)
 111 extern int swapctl(int, void *, int *);
 112 #if defined(_LP64) && defined(_SYSCALL32)
 113 extern int swapctl32(int, void *, int *);
 114 #endif /* _LP64 && _SYSCALL32 */
 115 #else /* !_KERNEL */

 116 extern int swapctl(int, void *);



 117 #endif /* _KERNEL */
 118 
 119 
 120 /* ste_flags values */
 121 
 122 #define ST_INDEL        0x01            /* Deletion of file is in progress. */
 123                                         /* Prevents others from deleting or */
 124                                         /* allocating from it */
 125 #define ST_DOINGDEL     0x02            /* Set during deletion of file */
 126                                         /* Clearing during deletion signals */
 127                                         /* that you want to add the file back */
 128                                         /* again, and will eventually cause */
 129                                         /* it to be added back */
 130 
 131 /*
 132  * VM - virtual swap device.
 133  */
 134 struct  swapinfo {
 135         ulong_t si_soff;                /* starting offset (bytes) of file */
 136         ulong_t si_eoff;                /* ending offset (bytes) of file */