summaryrefslogtreecommitdiff
path: root/usr.sbin/eeprom
AgeCommit message (Collapse)Author
2017-12-30get_date(), from getdate.y, was last used in the sparc support, so zap itPhilip Guenther
ok kettenis@
2017-10-20Tweak heuristics to make sure /memory properties are more likely to beMark Kettenis
printed as hex. ok visa@
2017-04-26Install arm64 manpages: eeprom(8), MAKEDEV(8). ok phessler kettenisStuart Henderson
2017-01-23Build on arm64.Mark Kettenis
2016-09-01no more sparc; ok tedu kettenisJason McIntyre
2016-09-01now that openprom is always 1, remove conditionalsTed Unangst
2016-09-01remove sparc supportTed Unangst
2016-07-05Build eeprom(8) on octeon.Visa Hankala
ok kettenis@ deraadt@ jasper@
2016-05-21Build on armv7.Mark Kettenis
2016-05-21Byteswap 32-bit "cells" on little-endian platforms before printing them.Mark Kettenis
OpenFirware/FDT is defined to be big-endian. This makes eeprom -p print sensible numbers on little-endian platforms. ok deraadt@
2016-05-21Zero op_name when we start enumerating properties such that we don't riskMark Kettenis
skipping the properties of the root node when the lookup of random stack garbage fails. ok deraadt@
2015-12-31Provide a prototype for yyparse(). Unbreaks the tree.Mark Kettenis
ok millert@
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
ok millert krw
2015-03-11drop setgid kmem. If you want to play with eeprom, you generallyTheo de Raadt
need to be root ok miod
2015-01-19sparc also needs <machine/param.h> for CPU_SUN*.Miod Vallat
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2015-01-15Be sure to print time_t with the appropriate format specifier. RepairsMiod Vallat
dump of eeprom variables on sun4.
2014-11-18Nuke more obvious #include duplications.Kenneth R Westerback
ok deraadt@ millert@ tedu@
2014-07-24Shunt hwupdate property decoding in sparc's old prom (sun4 only) ifMiod Vallat
defined(SMALL).
2013-12-03Kill usage of timeb.h for upcoming removal of libcompat. OK deraadt@Todd C. Miller
2013-12-03no need for timeb.hTheo de Raadt
2013-11-28unsigned char for ctypeTheo de Raadt
ok okan krw
2013-04-19Constrain the 2038 check to only when sizeof(time_t) == sizeof(int).Theo de Raadt
Adding more powerful checking is too difficult. We'll fix this problem by moving to 64-bit time_t.. and once we do, we don't want this code to falsely trigger. ok millert
2013-03-11derivated -> derived; from daniel dickmanJason McIntyre
although oed says "derivated" is valid, it notes its usage is rare, and this seems clearer;
2009-01-14update license.Federico G. Schwindt
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-25no need for sparc/sparc64 ifdefs, since this file is sparc onlyTheo de Raadt
2008-03-23Do not abort walking the tree if a node's contents is too large; allowsMiod Vallat
eeprom -p to be used on more macppc models. ok fgsch@
2008-02-22Allow multiple NUL characters within string-valued properties (but add anMark Kettenis
XXX saying that this may not exactly be what we want). This makes the output on macppc look much saner. ok fgsch@, beck@
2007-11-14We don't have /dev/eeprom on sparc64.Mark Kettenis
2007-11-12Make this compile on macppc (OpenPROM support only) and build it there.Mark Kettenis
ok deraadt@
2007-09-09better printing code, fixing certain properties; reported by kettenis,Federico G. Schwindt
tested by him and Johan Mson Lindman. ok kettenis.
2007-09-07some small cleanup, including standard synopsis/usage and sort options;Jason McIntyre
ok fgsch deraadt
2007-09-04add support to print the derivated tree from the OpenPROM (alas devinfo orFederico G. Schwindt
prtconf); ok kettenis@. thanks to the various people who helped me test in different sparc* machines.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29use the right capitalization for `EBus' and `SBus'Igor Sobrado
ok jmc@
2007-01-03Fix format string bugs by using strlcpy() instead ofMoritz Jodeit
snprintf() and fix truncation checks. ok miod@ deraadt@
2005-05-02more setres[ug]id; ok deraadt@Damien Miller
2005-03-06Filter openprom environment strings with strnvis(); ok deraadt@ krw@Miod Vallat
2004-08-24- describe which interfaces respect local-mac-address?; this is basedJason McIntyre
somewhat on a similar diff from netbsd (-r 1.4); - OpenProm -> OpenPROM - .Sh WARNINGS -> .Sh CAVEATS - put FILES in the right place, and make the list -compact much of this content is from miod@, and ok him too;
2004-08-01ansi cleanup; khalek@linuxgamers.netTheo de Raadt
2004-07-09ansiTheo de Raadt
2003-11-27fix printfHenning Brauer
From: Alf Schlichting <leopold-bloom@foni.net>
2003-09-26check strdup failure; ok anil millertTheo de Raadt
2003-06-11some ansification, some de-registerTheo de Raadt
2003-04-14standalone/stand alone -> stand-alone;Jason McIntyre
from NetBSD (Igor Sobrado); httpd stuff passed to apache people; ok millert@
2003-01-31typos;Jason McIntyre
eeprom(8): added .Ar to fields, removed references to sun3 sshd(8): help and ok markus@ help and ok millert@
2002-12-31Prepare for the removal of amiga and sun3 platforms from the tree.Miod Vallat
There has not been enough activity and interest towards these platform to keep them lying in the tree.
2002-12-09Use strlcpy rather than unsafe string functions, especially in unreadable code.Miod Vallat
Spotted by deraadt@
2002-12-08GNU semantics say that if optstring begins with '-' thenTodd C. Miller
each non-option shall be treated as arguments to option '\1'. BSD getopt match '-' in optstring with a '-' on the command line. This is used to support deprecated options like "su -" that would otherwise prevent the use of getopt(). Resolving this simply requires that the leading '-' be moved somewhere else (I moved it to the end of optstring) since position within optstring is not meaningful.