/*
* 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 <string.h>
#include <limits.h>
#include <stdlib.h>
#include <inj.h>
#include <inj_err.h>
#include <inj_string.h>
char *
inj_strdup(const char *s)
{
return (s1);
}
char *
{
s2[n] = '\0';
return (s2);
}
void
inj_strfree(const char *s)
{
}
typedef struct type_desc {
} type_desc_t;
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
};
{ 0, 0 },
{ 0, UINT8_MAX },
{ 0, UINT16_MAX },
{ 0, 0 },
{ 0, UINT32_MAX },
{ 0, 0 },
{ 0, 0 },
{ 0, 0 },
{ 0, UINT64_MAX }
};
int
{
char *c;
if (width != 0) {
sizeof (signed_types[0])));
}
errno = 0;
return (inj_set_errno(EINVAL));
return (inj_set_errno(ERANGE));
return (0);
}
int
{
char *c;
if (width != 0) {
sizeof (unsigned_types[0])));
}
errno = 0;
return (inj_set_errno(EINVAL));
return (inj_set_errno(ERANGE));
return (0);
}
int
{
static const struct {
const char *name;
} suffix[] = {
{ "hz", 0 },
{ NULL }
};
int i;
break;
}
}
return (inj_set_errno(EINVAL));
if (mul == 0) {
if (val != 0)
} else
return (0);
}
static ulong_t
{
size_t g, h = 0;
char *p;
for (p = key; *p != '\0'; p++) {
h = (h << 4) + *p;
if ((g = (h & 0xf0000000)) != 0) {
h ^= (g >> 24);
h ^= g;
}
}
return (h);
}
static int
{
}
/*ARGSUSED*/
static void
{
}
void
{
}
int
{
}
{
return (inj_hash_lookup(h, (void *)str));
}
void
{
}