/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "nisdb_mt.h"
#include "nisdb_rw.h"
#include "db_headers.h"
#include "db_entry.h"
#include "db.h"
#include "db_dictionary.h"
void
if (tsd != 0) {
}
}
extern "C" {
static void
__nisdb_init_tsd_key(void)
{
}
#pragma init(__nisdb_init_tsd_key)
}
__nisdb_get_tsd(void) {
/* No TSD; create it */
/* Initialize TSD */
/* Register TSD */
/* Can't store key */
#ifdef NISDB_MT_DEBUG
abort();
#endif
tsd = &nisdb_shared_tsd;
}
} else {
/* No memory ? */
#ifdef NISDB_MT_DEBUG
abort();
#endif
tsd = &nisdb_shared_tsd;
}
}
return (tsd);
}
void
if (tsd != 0) {
}
}
/*
* Save a copy of 'obj' in the TSD. If the TSD already holds an old object,
* delete it before saving the new one.
*
* On successful exit, '*storedP' indicates whether or not the entry was
* stored, and hence whether or not we're perfroming a modify operation.
*
* Return 1 if successful, 0 otherwise.
*/
int
int stored;
if (tsd == 0)
return (0);
if (eObj != 0) {
}
if (obj != 0) {
if (eObj == 0)
return (0);
} else {
eObj = 0;
}
}
if (storedP != 0)
return (1);
}
/*
* Retrieve (and remove) the old object (if any) from the TSD. Returns 1
* if successful ('*oldObjP' might be NULL), 0 otherwise ('*oldObjP'
* unchanged).
*/
int
return (0);
if (tsd->doingModify) {
} else {
*oldObjP = 0;
}
return (1);
}