getprofattr.c revision 134a1f4e3289b54e0f980e9cf05352e419a60bee
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
*/
/*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <nss_dbdefs.h>
#include <prof_attr.h>
#include <getxby_door.h>
/* Externs from libnsl */
extern void _setprofattr(void);
extern void _endprofattr(void);
{
int err = 0;
char buf[NSS_BUFLEN_PROFATTR];
return (profstr2attr(tmp));
}
getprofnam(const char *name)
{
int err = 0;
char buf[NSS_BUFLEN_PROFATTR];
return (profstr2attr(resptr));
}
void
{
_setprofattr();
}
void
{
_endprofattr();
}
void
{
if (prof) {
}
}
static profattr_t *
{
return ((profattr_t *)NULL);
return ((profattr_t *)NULL);
return (newprof);
}
extern int _enum_common_p(const char *, int (*)(const char *, kva_t *, void *,
/*
* Given a profile name, gets the list of profiles found from
* the whole hierarchy, using the given profile as root
*/
void
{
/* There can't be a "," in a profile name. */
return;
}
void
{
int i;
for (i = 0; i < profcnt; i++) {
}
}
#ifdef DEBUG
void
{
char *empty = "empty";
printf("NULL\n");
return;
}
printf("attr=\n");
}
#endif /* DEBUG */