/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*
* Copyright (c) 1988-2001 by Sun Microsystems, Inc.
* All Rights Reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <string.h>
#include "db_headers.h"
#include "db_table.h" /* must come before db_entry */
#include "db_entry.h"
#include "nisdb_mt.h"
void
{
if (e == NULL) {
printf("\tnull object\n");
return;
}
for (i = 0; i < size; i++) {
printf("\t\t%d: flags=0x%x, length=%d, value=",
for (j = 0; j < col_width; j++) {
putchar('^');
} else {
}
}
putchar('\n');
}
}
{
NULL);
return (newobj);
else {
delete newobj;
return (NULL);
}
}
{
int tlen, j, i;
int num_cols = 0;
else {
"copy_entry: cannot allocate space for entry type",
}
if (num_cols == 0)
else {
FATAL3("copy_entry: cannot allocate space for columns",
}
for (j = 0; j < num_cols; j++) {
// cleanup space already allocated
for (i = 0; i < j; i++)
delete newcols;
"copy_entry: cannot allocate space for column value",
}
tlen);
}
}
return (TRUE);
}
void
{
int i;
int num_cols;
for (i = 0; i < num_cols; i++)
if (cols)
delete cols;
delete obj;
}
}
uint_t i;
if (a == 0)
return (b == 0);
if (b == 0)
return (FALSE);
return (FALSE);
return (FALSE);
}
return (FALSE);
for (i = 0; i < a->en_cols.en_cols_len; i++) {
return (FALSE);
return (FALSE);
return (FALSE);
}
return (TRUE);
}