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, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   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  * Copyright (c) 1997-1998 by Sun Microsystems, Inc.
  24  * All rights reserved.
  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 #ifndef _SAC_H
  32 #define _SAC_H
  33 
  34 #pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.4 */
  35 
  36 #include <sys/types.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #define IDLEN           4       /* length in bytes of a utmp id */
  43 #define SC_WILDC        0xff    /* wild character for utmp ids */
  44 #define PMTAGSIZE       14      /* maximum length in bytes for */
  45                                 /* a port monitor tag */
  46 
  47 /*
  48  * values for rflag in doconfig()
  49  */
  50 
  51 #define NOASSIGN        0x1     /* don't allow assign operations */
  52 #define NORUN           0x2     /* don't allow run or runwait operations */
  53 
  54 
  55 /*


 126 #define SC_DISABLE      3               /* disable request */
 127 #define SC_READDB       4               /* read pmtab request */
 128 
 129 /*
 130  * `errno' values for Saferrno, note that Saferrno is used by
 131  * both pmadm and sacadm and these values are shared between
 132  * them
 133  */
 134 
 135 #define E_BADARGS       1       /* bad args or ill-formed command line */
 136 #define E_NOPRIV        2       /* user not privileged for operation */
 137 #define E_SAFERR        3       /* generic SAF error */
 138 #define E_SYSERR        4       /* system error */
 139 #define E_NOEXIST       5       /* invalid specification */
 140 #define E_DUP           6       /* entry already exists */
 141 #define E_PMRUN 7       /* port monitor is running */
 142 #define E_PMNOTRUN      8       /* port monitor is not running */
 143 #define E_RECOVER       9       /* in recovery */
 144 #define E_SACNOTRUN     10      /* sac daemon is not running */
 145 
 146 #ifdef __STDC__
 147 extern int      doconfig(int, char *, long);
 148 #else
 149 extern int      doconfig();
 150 #endif
 151 
 152 #ifdef  __cplusplus
 153 }
 154 #endif
 155 
 156 #endif  /* _SAC_H */


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   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  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24  *
  25  * Copyright (c) 1997-1998 by Sun Microsystems, Inc.
  26  * All rights reserved.
  27  */
  28 
  29 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  30 /*        All Rights Reserved   */
  31 
  32 
  33 #ifndef _SAC_H
  34 #define _SAC_H
  35 


  36 #include <sys/types.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 #define IDLEN           4       /* length in bytes of a utmp id */
  43 #define SC_WILDC        0xff    /* wild character for utmp ids */
  44 #define PMTAGSIZE       14      /* maximum length in bytes for */
  45                                 /* a port monitor tag */
  46 
  47 /*
  48  * values for rflag in doconfig()
  49  */
  50 
  51 #define NOASSIGN        0x1     /* don't allow assign operations */
  52 #define NORUN           0x2     /* don't allow run or runwait operations */
  53 
  54 
  55 /*


 126 #define SC_DISABLE      3               /* disable request */
 127 #define SC_READDB       4               /* read pmtab request */
 128 
 129 /*
 130  * `errno' values for Saferrno, note that Saferrno is used by
 131  * both pmadm and sacadm and these values are shared between
 132  * them
 133  */
 134 
 135 #define E_BADARGS       1       /* bad args or ill-formed command line */
 136 #define E_NOPRIV        2       /* user not privileged for operation */
 137 #define E_SAFERR        3       /* generic SAF error */
 138 #define E_SYSERR        4       /* system error */
 139 #define E_NOEXIST       5       /* invalid specification */
 140 #define E_DUP           6       /* entry already exists */
 141 #define E_PMRUN 7       /* port monitor is running */
 142 #define E_PMNOTRUN      8       /* port monitor is not running */
 143 #define E_RECOVER       9       /* in recovery */
 144 #define E_SACNOTRUN     10      /* sac daemon is not running */
 145 

 146 extern int      doconfig(int, char *, long);



 147 
 148 #ifdef  __cplusplus
 149 }
 150 #endif
 151 
 152 #endif  /* _SAC_H */