Print this page
5910 libnisdb won't build with modern GCC


   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  *      db_entry_c.x
  24  *

  25  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 %#pragma ident  "%Z%%M% %I%     %E% SMI"
  30 
  31 /*
  32  * Some manifest constants, chosen to maximize flexibility without
  33  * plugging the wire full of data.
  34  */
  35 
  36 #if RPC_HDR
  37 %#ifndef _DB_NIS_H
  38 %#define _DB_NIS_H
  39 
  40 %#include <rpcsvc/nis.h>
  41 #endif /* RPC_HDR */
  42 




  43 #ifdef USINGC
  44 enum db_status {DB_SUCCESS, DB_NOTFOUND, DB_NOTUNIQUE,
  45                 DB_BADTABLE, DB_BADQUERY, DB_BADOBJECT,
  46                 DB_MEMORY_LIMIT, DB_STORAGE_LIMIT, DB_INTERNAL_ERROR};
  47 
  48 enum db_action {DB_LOOKUP, DB_REMOVE, DB_ADD, DB_FIRST, DB_NEXT,
  49                         DB_ALL, DB_RESET_NEXT, DB_ADD_NOLOG,
  50                         DB_ADD_NOSYNC, DB_REMOVE_NOSYNC };
  51 #endif /* USINGC */
  52 
  53 /* Make alias to NIS definition */
  54 
  55 typedef entry_obj entry_object;
  56 typedef entry_object * entry_object_p;
  57 
  58 typedef nis_name db_stringname;
  59 typedef nis_attr db_attrname;          /* What the database knows it as */
  60 
  61 
  62 /*  nis_dba.x ----------------------------- */




   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  *      db_entry_c.x
  24  *
  25  * Copyright 2015 Gary Mills
  26  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 


  30 /*
  31  * Some manifest constants, chosen to maximize flexibility without
  32  * plugging the wire full of data.
  33  */
  34 
  35 #if RPC_HDR
  36 %#ifndef _DB_NIS_H
  37 %#define _DB_NIS_H
  38 
  39 %#include <rpcsvc/nis.h>
  40 #endif /* RPC_HDR */
  41 
  42 #if RPC_XDR
  43 %#include "nis_clnt.h"
  44 #endif /* RPC_XDR */
  45 
  46 #ifdef USINGC
  47 enum db_status {DB_SUCCESS, DB_NOTFOUND, DB_NOTUNIQUE,
  48                 DB_BADTABLE, DB_BADQUERY, DB_BADOBJECT,
  49                 DB_MEMORY_LIMIT, DB_STORAGE_LIMIT, DB_INTERNAL_ERROR};
  50 
  51 enum db_action {DB_LOOKUP, DB_REMOVE, DB_ADD, DB_FIRST, DB_NEXT,
  52                         DB_ALL, DB_RESET_NEXT, DB_ADD_NOLOG,
  53                         DB_ADD_NOSYNC, DB_REMOVE_NOSYNC };
  54 #endif /* USINGC */
  55 
  56 /* Make alias to NIS definition */
  57 
  58 typedef entry_obj entry_object;
  59 typedef entry_object * entry_object_p;
  60 
  61 typedef nis_name db_stringname;
  62 typedef nis_attr db_attrname;          /* What the database knows it as */
  63 
  64 
  65 /*  nis_dba.x ----------------------------- */