prtfru.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Common Development and Distribution License, Version 1.0 only
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * (the "License"). You may not use this file except in compliance
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Use is subject to license terms.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#pragma ident "%Z%%M% %I% %E% SMI"
void **end_args);
NULL,
voidputchar(int c)
voidputs(const char *s)
xputchar(int c)
c = putchar(c);
if (c == EOF) {
xputs(const char *s)
xputchar(c);
output_dtd(void)
char **element;
unsigned int i, j, num_elements = 0;
(num_elements == 0)) {
for (i = 0; i < num_elements; i++) {
element[i]);
for (i = 0; i < num_elements; i++) {
case FDTYPE_Binary:
case FDISP_Binary:
case FDISP_Octal:
case FDISP_Decimal:
value = 0;
case FDISP_Time:
case FDTYPE_ASCII:
case FDTYPE_Enumeration:
value = 0;
if (errmsg) {
char *path;
int bytes = 0, i;
if (xml) {
if (xml)
valid = 0;
valid = 0;
valid = 0;
if (valid) {
head = 0;
if (xml)
num);
n < num;
indent);
if (xml)
} else if (xml) {
return (FRU_SUCCESS);
char *name;
int status;
if (xml)
!= FRU_SUCCESS) {
return (FRU_SUCCESS);
void *args)
void *args)
switch (fru_type) {
case FRU_NODE_FRU:
case FRU_NODE_CONTAINER:
static fru_errno_t
int status;
if (containers_only) {
return (FRU_SUCCESS);
if (list_only)
return (FRU_SUCCESS);
if ((status =
NULL))
!= FRU_SUCCESS) {
return (FRU_SUCCESS);
static fru_errno_t
int status;
return (FRU_SUCCESS);
errno = 0;
if (!errno)
xputchar(c);
if (errno) {
int xml_flag)
if (xml) {
(void *)searchpath);