Commit Graph

7078 Commits

Author SHA1 Message Date
cube 926567478a Allow using '+=number' (resp. -=number) to produce the same effect as
several '++' (resp. '--'). Suggested by David Brownlee in tech-kern.
2003-10-23 22:17:58 +00:00
jmc 89996408fa Fixes from PR#23210 to eliminate use of asprintf which makes cross building
on non-NetBSD hosts work again
2003-10-23 15:58:29 +00:00
christos 2a2701085e - keep the fd to /dev/zero open
- take advantage of MAP_ANONYMOUS
2003-10-22 16:10:03 +00:00
dmcmahill 188fcee35a add
#if HAVE_CONFIG_H
#include "config.h"
#endif
to get this to build under solaris-2.6/sparc with gcc-2.95.1 as part of
the NetBSD cross toolchain build.  Fixes PR23211.  Patch approved by
Alistair Crooks.
2003-10-22 12:30:39 +00:00
christos 58507d43c3 PR/23219: Dan McMahill: Make this compile on system that don't have MAP_ANON.
Centralize the mmap allocations in a new function, xmapalloc() that handles
this.
2003-10-21 23:58:53 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
wiz 1dbb52e92c Fix typos, from Jared Yanovich. Forwarded by jmc@openbsd. 2003-10-21 09:03:25 +00:00
fvdl 3ee8341b2f Don't assign NULL to a char. 2003-10-21 02:24:59 +00:00
fvdl 0933c426af Don't pass NULL as an integer argument. 2003-10-21 02:24:08 +00:00
fvdl 939c9d99f4 Don't compare a char to NULL. 2003-10-21 02:23:13 +00:00
fvdl 5d0f1dccca Don't assign NULL to an integer. 2003-10-21 02:22:21 +00:00
fvdl c82a2904cb The last argument to sysctl() is a size_t, don't pass NULL in it. 2003-10-21 02:20:22 +00:00
fvdl c4aacce6a3 Don't compare an integer to NULL. 2003-10-21 02:17:45 +00:00
fvdl 49ec36daa1 Don't compare integers and NULL. 2003-10-21 02:16:59 +00:00
fvdl 9651aa2f12 Don't set an int to NULL. 2003-10-21 02:15:00 +00:00
yamt c046e5f6af count number of invalid characters correctly.
ok'ed by tshiozak@.
2003-10-20 12:56:18 +00:00
christos 87b62b5af0 KNF:
- ansify
- no breaks after returns
- statics where needed
- no exit after errx
2003-10-19 07:34:38 +00:00
lukem c545cc169d support MAKEVERBOSE 2003-10-19 04:30:30 +00:00
lukem a694177df5 support MAKEVERBOSE and use ${HOST_SH} 2003-10-19 04:25:00 +00:00
lukem 87755a0463 support MAKEVERBOSE and use ${HOST_SH} 2003-10-19 04:05:01 +00:00
dsl 51fe540362 Add an MC_ALWAYS_SCROLL to mean "always allow space for 'scrolltext'".
All scrolltext to be #defined so it can be translated.
2003-10-18 18:26:53 +00:00
enami 07bf4ffc50 mbstat.m_drain is still maintained. Don't skip it. 2003-10-18 12:26:26 +00:00
itojun ba02466ff9 KNF (mostly whitespace) 2003-10-18 03:03:20 +00:00
enami d182626b85 Test the value returned by realloc() rather than anything else. 2003-10-17 22:59:35 +00:00
enami 52b6a13784 Print ips_rcvmemdrop and ips_nogif. 2003-10-17 22:28:11 +00:00
grant ba2a3df7f5 call setprogname(), replace a 'sed' with getprogname(). 2003-10-16 12:11:12 +00:00
itojun 50847da5c5 safer use of realloc 2003-10-16 06:56:17 +00:00
itojun 4f228a52dc safer use of realloc 2003-10-16 06:45:22 +00:00
itojun d5250e4ec9 safer use of realloc 2003-10-16 06:34:19 +00:00
itojun 53284b73d0 snprintf() terminates string with \0, so there's no need for "sizeof(x)-1". 2003-10-16 05:31:47 +00:00
wiz 4dff07bdce Bump date for previous. 2003-10-15 20:02:10 +00:00
agc b2b49933f4 Move Matt Green's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
agc ed6ed8e698 Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22397 by Joel Baker, confirmed
to the board by Keith Muller.
2003-10-13 07:41:22 +00:00
lukem d048430db6 Various fixes for when ngen is 0. 2003-10-13 07:28:52 +00:00
wiz ebe750b040 Sort options. 2003-10-11 09:06:03 +00:00
jdolecek e9a93e256b properly dottify .\" comments; this fixes output of [range] paragraph 2003-10-09 16:56:06 +00:00
christos ca7e7788b7 - enable WARNS 2
- delint (void casts, shadow warning on port)
- always cast to unsigned char for isfoo() macros, not sometimes.
- save errno to avoid reporting random error value.
- use warnx() when the error is indeed unknown.
- use getprogname() instead of __progname.
- make all locals static.
2003-10-09 15:32:37 +00:00
jrf df042318ea christos@netbsd.org suggested we replace whois
with one that is KNF, has ipv6, better error
handling, and recursion. I settled on OpenBSDs.
Christos found some nits and had me commit as
is. Christos will follow up with fixes shortly.
2003-10-09 14:21:49 +00:00
wiz 618a3a6591 Remove space that broke page. From Nicolas Joly in PR 23082. 2003-10-08 07:43:55 +00:00
lukem 53a9d2856c fix typo that prevented ${PROG}.unstripped from being removed in "clean" 2003-10-07 07:08:20 +00:00
christos 72eafe083f On MP systems, print a line for each cpu describing cpustate. 2003-10-03 15:32:06 +00:00
itojun 8af6887573 correct arg to setpeer() from main(). 2003-10-02 23:31:52 +00:00
itojun 8cf5cbae01 correct arg handling in setpeer(). 2003-10-02 21:33:05 +00:00
briggs ef852c60a0 Add option to remove escape character before comment character in
fparseln().  Add escape characters before comment characters in the
few places those appear in the calendar data files.
2003-09-30 15:00:18 +00:00
wiz 37ac1db454 available, not avaliable. From miod@openbsd. 2003-09-29 09:50:21 +00:00
simonb e74fba6f88 Extra columns appeared in one line of the "Memory statistics by type"
header in '94 and '97.  Grow the other line a little so that it looks
pretty again.
2003-09-28 23:31:48 +00:00
sjg d388dcd1a3 Implement :[] modifier to allow picking a range of words out of a variable.
Also :tW and a W flag to :C and :S to allow treating value as a single word.
Add unit tests for the above, and fix some corner cases.
Based on patches supplied by Alan Barrett <apb@cequrux.com>
2003-09-27 21:29:37 +00:00
dsl 0795bf3e7a Allow -ve integer constants in menu file.
Make y == -1 => after current messages (if msg_defs.h included).
Defer menu initialisation until after post_act() called (so function can
fiddle with more things.)
2003-09-27 09:44:13 +00:00
wiz db579612f4 Definition, not defintion. From miod@openbsd. 2003-09-26 22:25:21 +00:00
dsl 556e606c59 Add a msg_row() function that returns the current screen row.
Allows sysinst to place menus below any header text.
Remove msg_*.1 man pages for all the functions (they are in the wrong place
are a fair waste of directory space).
2003-09-25 18:32:10 +00:00