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


   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 2003 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 #pragma ident   "%Z%%M% %I%     %E% SMI"
  28 
  29 /*
  30  * DESCRIPTION: Contains functions relating to movement of entire maps.
  31  */
  32 
  33 #include <unistd.h>
  34 #include <syslog.h>
  35 #include <ndbm.h>
  36 #include <string.h>
  37 #include "ypsym.h"
  38 #include "ypdefs.h"
  39 #include "shim.h"
  40 #include "yptol.h"
  41 #include "../ldap_util.h"
  42 
  43 /*
  44  * Switch on parts of ypdefs.h
  45  */
  46 USE_YPDBPATH
  47 USE_DBM
  48 
  49 /*
  50  * Decs
  51  */
  52 void add_separator(char *);
  53 suc_code dump_domain_to_dit(char *, bool_t);
  54 suc_code dump_map_to_dit(char *, char *, bool_t);
  55 suc_code dump_maps_to_dit(bool_t);
  56 suc_code dump_dit_to_map();
  57 suc_code dump_dit_to_maps();
  58 
  59 /*
  60  * FUNCTION :   dump_maps_to_dit()
  61  *
  62  * DESCRIPTION: Dump all the OLD STYLE NIS maps into the DIT.
  63  *
  64  *              Since the DIT is not yet set up details about which maps and
  65  *              domains exist are gathered from the N2L config file and the
  66  *              existing map files.
  67  *




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


  28 /*
  29  * DESCRIPTION: Contains functions relating to movement of entire maps.
  30  */
  31 
  32 #include <unistd.h>
  33 #include <syslog.h>
  34 #include <ndbm.h>
  35 #include <string.h>
  36 #include "ypsym.h"
  37 #include "ypdefs.h"
  38 #include "shim.h"
  39 #include "yptol.h"
  40 #include "../ldap_util.h"
  41 
  42 /*
  43  * Switch on parts of ypdefs.h
  44  */
  45 USE_YPDBPATH

  46 
  47 /*
  48  * Decs
  49  */
  50 void add_separator(char *);
  51 suc_code dump_domain_to_dit(char *, bool_t);
  52 suc_code dump_map_to_dit(char *, char *, bool_t);
  53 suc_code dump_maps_to_dit(bool_t);
  54 suc_code dump_dit_to_map();
  55 suc_code dump_dit_to_maps();
  56 
  57 /*
  58  * FUNCTION :   dump_maps_to_dit()
  59  *
  60  * DESCRIPTION: Dump all the OLD STYLE NIS maps into the DIT.
  61  *
  62  *              Since the DIT is not yet set up details about which maps and
  63  *              domains exist are gathered from the N2L config file and the
  64  *              existing map files.
  65  *