/*
* 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 1997 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 <ctype.h>
#include <nss_dbdefs.h>
static int str2bootent(const char *, int, void *, char *, int);
static DEFINE_NSS_DB_ROOT(db_root);
static void
{
p->name = NSS_DBNAM_BOOTPARAMS;
}
int
char *name, /* lookup key */
char *linebuf, /* buffer to put the answer in */
int linelen /* max # of bytes to put into linebuf */
)
{
(void) NSS_XbyY_FINI(&arg);
}
/*
* Return values: 0 = success, 1 = parse error, 2 = erange ...
* The structure pointer passed in is a buffer in the caller's space.
* instring and buffer should be separate areas.
* The calling routine does all the real parsing; we just check limits and
* store the entry in the buffer we were passed by the caller.
* NOTE: we expect the data we're passed (in instr) has had the host's name
* stripped off the begining.
*/
/* ARGSUSED */
static int
const char *instr,
int lenstr,
void *ent, /* really (char *) */
char *buffer,
int buflen
)
{
const char *p, *limit;
return (NSS_STR_PARSE_PARSE);
}
p = instr;
/* Skip over leading whitespace */
p++;
}
if (p >= limit) {
/* Syntax error -- no data! */
return (NSS_STR_PARSE_PARSE);
}
return (NSS_STR_PARSE_ERANGE);
}
return (NSS_STR_PARSE_SUCCESS);
}