Commit Graph

59 Commits

Author SHA1 Message Date
joerg ca1a6f97cd Finish ANSIfication. Drop extra spaces from __P removal. Add more
static. Add more const. Use __dead for usage().
2013-07-02 11:59:46 +00:00
matt 5f058922b3 This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

usr/include/machine now points to usr/include/arm
2013-05-02 03:56:38 +00:00
nakayama 61db04d3c6 Use explicitly defined macros in Makefile to determine to use
eeprom and/or openprom handlers, instead of predefined compiler
macros (__sun__, __sparc__ ...).
2013-03-15 20:22:44 +00:00
christos 6c8acf010b PR/47528: Izumi Tsutsui: eeprom(8) dumps core after 64 bit time_t changes 2013-02-03 15:30:04 +00:00
macallan 087dcab971 build eeprom on shark
this has been working for ages, why did I never commit it?
2011-12-15 07:51:29 +00:00
wiz 7892952169 Fix fd leak in error case. Found by cppcheck. 2011-01-04 09:25:21 +00:00
nakayama 89f2cb29c8 Add xref to ofctl(8). 2009-12-19 23:10:57 +00:00
nakayama 1c54a66d99 System utilities, boot programs and kernel modules are machine
(port) specific not CPU, so use MACHINE not MACHINE_ARCH.
2009-12-13 05:01:32 +00:00
nakayama 4ff5774174 WARNS=4 fixes. 2009-04-30 07:45:28 +00:00
nakayama 1d09b9bbae More WARNS=4 fixes, for sparc and sun3. 2009-04-29 09:13:58 +00:00
lukem 7a4c7e7ffc Fix WARNS=4 issues (-Wextra -Wcast-qual).
Resolves PR bin/41282
2009-04-26 01:51:07 +00:00
abs 515e52158b Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
reed 221899b84e Mention that the program is only installed on supported platforms.
(Also add a paragraph break.)

I didn't specifically mention the platforms or what support is needed.
At least someone reading the manpage will have some idea why the tool
is missing from their system.

(Some manual pages mention this in the BUGS section, but I didn't do that.)
2008-09-25 22:44:51 +00:00
lukem 9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
wiz cf101a0bdd New sentence, new line. 2007-03-02 20:48:50 +00:00
garbled 9cc2c6c46c Add support for the prep nvram device to eeprom. 2007-03-01 16:49:48 +00:00
hubertf 889da1779b * Don't include headers twice
* Remove a few trailing whitespaces
 * Rearrange and join to one #if for some headers

Patch contributed by Slava Semushin <slava.semushin@gmail.com>
in private mail.
2007-01-16 17:32:04 +00:00
macallan 55d5c3fe24 properly display OF variables that aren't strings 2006-12-10 03:06:25 +00:00
christos ab56b9a702 getdate -> parsedate 2006-11-20 20:33:33 +00:00
christos c8226bf504 getdate is in libutil. 2006-11-17 22:11:28 +00:00
macallan 4c36dff3e4 include openfirmio.h when needed 2006-08-17 03:50:21 +00:00
macallan ad53a0a585 Add OpenFirmware support to eeprom(8) and build it on macppc.
Tested on macppc and sparc
2006-08-16 03:24:57 +00:00
dsl 9d34a2e458 More fallout from removing the (int) casts from ctype.h
Should fix PR/28082
2004-11-08 08:05:20 +00:00
christos d434bff667 Unsigned char casts for ctype functions. 2004-11-06 18:18:33 +00:00
petrov 209bf42bf9 Add CPPFLAGS. 2003-05-08 20:24:10 +00:00
perry 4eabc653ac OpenProm -> openprom (apparently how Sun prefers it.)
inteteger -> integer
rts/cts -> RTS/CTS
xon/xoff -> Xon/Xoff
All from Igor Sobrado, PR misc/20737
2003-03-31 01:31:39 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz c1f53358ea Fix typos. Found by Adrian Mrva. 2002-10-29 16:16:58 +00:00
mrg 04ccd30c07 don't build eehandlers.c on MACHINE_ARCH!=sparc64 2002-07-19 02:26:40 +00:00
tron 87733e3d43 Fix typo noted by Sune Stjerneby in PR port-sparc/15640. 2002-02-17 20:53:35 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 51d5c7d6bd Whitespace nit, sort sections. 2002-01-19 03:11:34 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
jmc 5ec07d55ff Hmm...My last change was a bit too drastic. Sun3's would never run the inner
bit of checksum code. Restructure #ifdef's. Really, use_openprom should just
be visible on all ports and set to 0 on sun3 or something.
2001-01-29 03:11:50 +00:00
jmc f8c082d5a5 Cleanup last set of cleanups so this compiles on systems without
openprom (ala sun3).
2001-01-28 22:22:25 +00:00
mrg 6ce96c999f several clean ups:
- don't include eeprom support on sparc64.
	- work out if we are eeprom or openprom from the results of open()
	and/or ioctl(), rather than grovelling the kernel.
	- move all eeprom specific code to eehandlers.c
	- update manpage for sparc64 usage, remove delete -N switch

with these changes, eeprom(8) no longer needs to be setgid.
2000-11-28 22:31:37 +00:00
mrg 7996c8de3a de-__P-ify. 2000-11-19 11:15:01 +00:00
lukem 279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
bjh21 ff579c68fd Style nit -- hard-coded path names belong in pathnames.h. 2000-09-24 09:45:55 +00:00
itojun bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
eeh 3efdc5b597 This is also useful for sparc64. 1999-01-17 20:02:29 +00:00
lukem 5e14541b5b use YPREFIX 1998-11-01 03:51:16 +00:00
tv 482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
lukem c9fcc32882 deprecate register, use memset/memmove instead of bzero/bcopy 1997-10-18 08:40:40 +00:00
lukem f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
jeremy fe56753f5e Add sun3x to the list of machines using this program. 1997-09-24 07:22:37 +00:00
jtc 87f4ccd45f Fix files using old TNF copyright notice 1997-07-30 22:53:50 +00:00
fair 1f7596052f fix a compile error on non-sparc 1997-07-28 19:29:54 +00:00