Technical data

openprom(7D) Devices SunOS 5.5
}
if (opp->oprom_size != 0)
printf("Platform name <%s>\n", opp->oprom_array);
/
Get and print the prom version.
/
opp->oprom_size = MAXVALSZ;
if (ioctl(fd, OPROMGETVERSION, opp) < 0) {
perror("OPROMGETVERSION");
exit(1);
}
printf("Prom version <%s>\n", opp->oprom_array);
(void) close(fd);
return (0);
}
FILES /dev/openprom PROM monitor configuration interface
SEE ALSO eeprom(1M), monitor(1M), prtconf(1M), mem(7D)
BUGS There should be separate return values for non-existent properties as opposed to not
enough space for the value.
An attempt to set a property to an illegalvalue results in thePROM setting it to some legal
value, with no error being returned. An OPROMGETOPT should be performed after an
OPROMSETOPT to verify that the set worked.
The driver should be more consistent in its treatment of errors and edge conditions.
7D-238 modified 18 Aug 1995