getprofattr.c revision cb5caa98562cf06753163f558cbcfe30b8f4673a
/*
* 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
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#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);
}
/*
* Given a profile name, gets the list of profiles found from
* the whole hierarchy, using the given profile as root
*/
void
{
int i;
/* Check if this is a duplicate */
for (i = 0; i < *profcnt; i++) {
/* It's a duplicate, don't need to do anything */
return;
}
}
return;
}
return;
}
if (subprofiles == NULL) {
return;
}
/* get execattr from each subprofiles */
}
}
void
{
int i;
for (i = 0; i < profcnt; i++) {
}
}
#ifdef DEBUG
void
{
char *empty = "empty";
printf("NULL\n");
return;
}
printf("attr=\n");
}
#endif /* DEBUG */