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) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 #ifndef _PROF_ATTR_H
  26 #define _PROF_ATTR_H
  27 
  28 #ifdef  __cplusplus
  29 extern "C" {
  30 #endif
  31 
  32 
  33 #include <sys/types.h>
  34 #include <secdb.h>
  35 
  36 
  37 #define PROFATTR_FILENAME               "/etc/security/prof_attr"
  38 #define PROFATTR_DB_NAME                "prof_attr.org_dir"
  39 #define PROFATTR_DB_NCOL                5       /* total columns */
  40 #define PROFATTR_DB_NKEYCOL             1       /* total searchable columns */
  41 #define PROFATTR_DB_TBLT                "prof_attr_tbl"


  71 /*
  72  * Nsswitch representation of profile attributes.
  73  */
  74 
  75 typedef struct profstr_s {
  76         char   *name;   /* proforization name */
  77         char   *res1;   /* RESERVED */
  78         char   *res2;   /* RESERVED */
  79         char   *desc;   /* description */
  80         char   *attr;   /* string of key-value pair attributes */
  81 } profstr_t;
  82 
  83 typedef struct profattr_s {
  84         char   *name;   /* proforization name */
  85         char   *res1;   /* RESERVED */
  86         char   *res2;   /* RESERVED */
  87         char   *desc;   /* description */
  88         kva_t  *attr;   /* array of key-value pair attributes */
  89 } profattr_t;
  90 
  91 #ifdef    __STDC__
  92 extern profattr_t *getprofnam(const char *);
  93 extern profattr_t *getprofattr(void);
  94 extern void getproflist(const char *, char **, int *);
  95 extern void setprofattr(void);
  96 extern void endprofattr(void);
  97 extern void free_profattr(profattr_t *);
  98 extern void free_proflist(char **, int);
  99 
 100 #else                           /* not __STDC__ */
 101 
 102 extern profattr_t *getprofnam();
 103 extern profattr_t *getprofattr();
 104 extern void getproflist();
 105 extern int setprofattr();
 106 extern int endprofattr();
 107 extern void free_profattr();
 108 extern void free_proflist();
 109 
 110 #endif
 111 
 112 #ifdef __cplusplus
 113 }
 114 #endif
 115 
 116 #endif  /* _PROF_ATTR_H */


   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) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  24  */
  25 
  26 #ifndef _PROF_ATTR_H
  27 #define _PROF_ATTR_H
  28 
  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 
  34 #include <sys/types.h>
  35 #include <secdb.h>
  36 
  37 
  38 #define PROFATTR_FILENAME               "/etc/security/prof_attr"
  39 #define PROFATTR_DB_NAME                "prof_attr.org_dir"
  40 #define PROFATTR_DB_NCOL                5       /* total columns */
  41 #define PROFATTR_DB_NKEYCOL             1       /* total searchable columns */
  42 #define PROFATTR_DB_TBLT                "prof_attr_tbl"


  72 /*
  73  * Nsswitch representation of profile attributes.
  74  */
  75 
  76 typedef struct profstr_s {
  77         char   *name;   /* proforization name */
  78         char   *res1;   /* RESERVED */
  79         char   *res2;   /* RESERVED */
  80         char   *desc;   /* description */
  81         char   *attr;   /* string of key-value pair attributes */
  82 } profstr_t;
  83 
  84 typedef struct profattr_s {
  85         char   *name;   /* proforization name */
  86         char   *res1;   /* RESERVED */
  87         char   *res2;   /* RESERVED */
  88         char   *desc;   /* description */
  89         kva_t  *attr;   /* array of key-value pair attributes */
  90 } profattr_t;
  91 

  92 extern profattr_t *getprofnam(const char *);
  93 extern profattr_t *getprofattr(void);
  94 extern void getproflist(const char *, char **, int *);
  95 extern void setprofattr(void);
  96 extern void endprofattr(void);
  97 extern void free_profattr(profattr_t *);
  98 extern void free_proflist(char **, int);
  99 












 100 #ifdef __cplusplus
 101 }
 102 #endif
 103 
 104 #endif  /* _PROF_ATTR_H */