2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A /* No TSD; create it */ 2N/A /* Initialize TSD */ 2N/A /* Can't store key */ 2N/A * Save a copy of 'obj' in the TSD. If the TSD already holds an old object, 2N/A * delete it before saving the new one. 2N/A * On successful exit, '*storedP' indicates whether or not the entry was 2N/A * stored, and hence whether or not we're perfroming a modify operation. 2N/A * Return 1 if successful, 0 otherwise. 2N/A * Retrieve (and remove) the old object (if any) from the TSD. Returns 1 2N/A * if successful ('*oldObjP' might be NULL), 0 otherwise ('*oldObjP'