/*
* 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
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <stdio.h>
#define NO_PERROR 0
/*
* Icon loader for eeprom command.
*
* Based on libsuntool/icon/icon_load.c 10.10 88/02/08
* See <suntool/icon_load.h> for icon file format.
*/
int
{
FILE *f;
int c = 0;
unsigned int val;
int count;
do {
int nval;
char slash;
break;
switch (c = getc(f)) {
case 'D':
nval != 1)
goto badform;
break;
case 'F':
nval != 1)
goto badform;
break;
case 'H':
break;
case 'V':
break;
case 'W':
break;
case '*':
if (slash == '/')
goto eoh; /* end of header */
else
break;
}
} while (c != EOF);
eoh:
if (c == EOF ||
(void) fclose(f);
}
if (c == 0 || c == EOF)
break;
switch (bits) {
case 32:
/* FALLTHRU */
case 16:
break;
}
}
(void) fclose(f);
if (count > 0)
return (0);
}