/*
* 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.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Portions of this source code were derived from Berkeley 4.3 BSD
* under license from the Regents of the University of California.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdlib.h>
#include <dirent.h>
#include <string.h>
#include <malloc.h>
#include "ypsym.h"
#include "ypdefs.h"
/* Use N2L version of DBM calls */
#include "shim_hooks.h"
#include <ctype.h>
extern unsigned int ypcheck_domain();
/*
* The retrieves the order number of a named map from the order number datum
* in the map data base.
*/
bool
{
return (FALSE);
}
/*
* This is getting recopied here because val.dptr
* points to static memory owned by the dbm package,
* and we have no idea whether numeric characters
* follow the order number characters, nor whether
* the mess is null-terminated at all.
*/
return (TRUE);
} else {
return (FALSE);
}
} else {
return (FALSE);
}
}
/*
* The retrieves the master server name of a named map from the master datum
* in the map data base.
*/
bool
{
return (FALSE);
}
/*
* This is getting recopied here because val.dptr
* points to static memory owned by the dbm package.
*/
return (TRUE);
} else {
return (FALSE);
}
}
/*
* This makes a map into the current map, and calls dbminit on that map
* and returns the DBM pointer to the map. Procedures called by
* ypserv dispatch routine would use this pointer for successive
* ndbm operations. Returns an YP_xxxx error code in error if FALSE.
*/
DBM *
{
/* Do not allow any path as a domain name or a map name. */
*error = YP_BADARGS;
return (FALSE);
}
return (FALSE);
return (cur_fdb);
}
/* If there was a previous open map close it */
/* Set the map access as "unknown" as the new map has not been loaded */
/* All the map locking is now handled inside the dbm_open shim */
return (cur_fdb);
}
if (ypcheck_domain(domain)) {
if (ypcheck_map_existence(mapname)) {
} else {
}
} else {
}
return (NULL);
}
/*
* This checks to see if there is a current map, and, if there is, does a
* dbmclose on it and sets the current map name and its DBM ptr to null.
*/
void
ypclr_current_map(void)
{
}
}
/*
* Checks to see if caller has permission to query the current map (as
* set by ypset_current_map()). Returns TRUE if access is granted and
* FALSE otherwise. If FALSE then sets *error to YP_xxxxxxxx.
*/
bool
{
return (FALSE);
return (FALSE);
}
/* XXX - I expect that this won't happen much */
if (current_map_access == PUBLIC) {
return (TRUE);
}
} else {
}
if (port < IPPORT_RESERVED) {
return (TRUE);
}
if (current_map_access == UNKNOWN) {
return (TRUE);
}
}
/* current_map_access == SECURE and non-priviledged caller */
return (FALSE);
}