getprofattr.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 <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;
int ndata = 0;
int adata = 0;
char buf[NSS_BUFLEN_PROFATTR];
union {
char s_b[1024];
} space;
#ifdef PIC
return ((profattr_t *)NULL);
}
case SUCCESS: /* positive cache hit */
break;
case NOTFOUND: /* negative cache hit */
return ((profattr_t *)NULL);
default:
return (profstr2attr(resptr));
}
/*
* check if doors reallocated the memory underneath us
* if they did munmap it or suffer a memory leak
*/
#else /* !PIC */
#endif /* PIC */
return (profstr2attr(resptr));
}
void
{
_setprofattr();
}
void
{
_endprofattr();
}
void
{
if (prof) {
}
}
static profattr_t *
{
return ((profattr_t *)NULL);
return ((profattr_t *)NULL);
return (newprof);
}
static profstr_t *
char *buffer,
int buflen,
{
char *fixed;
#ifdef _LP64
#else
#endif
#ifdef _LP64
> buflen)
#else
> buflen)
#endif
{
}
#ifdef _LP64
#else
#endif
return (result);
}
/*
* 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 */