Commit Graph

7240 Commits

Author SHA1 Message Date
atatat
f9130f0cc1 Take the time to set gottime so that you don't have to waste time
trying to figure out why the time isn't the time you expected all the
time.
2003-10-29 04:25:46 +00:00
christos
bfac827045 include <malloc.h> only if we don't have <stdlib.h> 2003-10-28 20:43:51 +00:00
jmc
782579c57a SUSE3 says htonl and friends come in via arpa/inet.h. This will actually not
hurt on NetBSD and makes hosting on non-native for tools/ work correctly
2003-10-28 04:00:51 +00:00
wiz
a1a9c97ba0 Bump date for previous; fix a typo; use .Dq instead of \*( construct. 2003-10-28 00:28:56 +00:00
uwe
faa73a6d7e In test_error() use <& to duplicate input descriptors,
correct the order of descriptors in redirection that saves stdin.
2003-10-27 20:09:49 +00:00
heas
642593b012 break the description of the "open" command into two paragraphs and improve
description of .telnetrc.
2003-10-27 19:46:14 +00:00
uwe
03e0a01658 Deoptimize (gcc-sh3-sed hack) only if ${HAVE_GCC3} != "yes". 2003-10-27 13:27:41 +00:00
lukem
6182ef67e2 be consistent using #if HAVE_STRUCT_STAT_ST_xxx (versus #ifdef) 2003-10-27 00:16:21 +00:00
lukem
397ba902d6 enable ident strings for sources pulled in from libc 2003-10-27 00:14:59 +00:00
lukem
171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
chs
8caf978ec2 fix for systems which don't have st_*timespec. PR 23214. 2003-10-26 20:43:13 +00:00
lukem
6c22027ca8 On MACHINE_ARCH==arm, compile newsyslog(8) with -fno-gcse-lm.
Fixes PRs [toolchain/22986] [toolchain/23002] [toolchain/23217]
2003-10-26 01:56:54 +00:00
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
matt
8e34a1750e SYS___sigaction14 -> SYS_compat_16___sigaction14 2003-09-23 18:46:33 +00:00
martin
c88a5e7be4 Lint is a host tool - leave the sparc64 hack in place if compiling with
an old compiler.
2003-09-21 17:06:40 +00:00
bouyer
ebd3b31bf7 Check the right error code to fallback to rquota v1 RPC.
Problem found and fix tested by Jan Schaumann.
2003-09-21 17:01:43 +00:00
takemura
ffd38d4b14 Fixed array index checking to avoid segmentation fault problem. 2003-09-21 02:17:39 +00:00
matt
fe365eaf9d Fix printf botch 2003-09-20 22:24:00 +00:00
christos
73bb764e22 improve formatting in the non-siginfo case, by printing the code. This is
for compatibility with the old ktrace files.
2003-09-20 00:17:44 +00:00
christos
309234359e declaration for siginfo code number to name converter function. 2003-09-19 22:49:29 +00:00
christos
b612016506 Print siginfo_t information when available. 2003-09-19 22:49:02 +00:00
martin
cee04f319f No need to avoid long double on sparc64 any more. 2003-09-19 16:37:59 +00:00
itojun
407df6861c realloc pedant 2003-09-19 07:08:50 +00:00
yamt
9eeb053922 redo the previous in a different way; use vm_map_min/max macros. 2003-09-17 22:06:50 +00:00
yamt
4a1d5a0332 update lockdebug detection to follow uvm_map.h rev.1.35.
(vm_map.header.{start,end} was swapped.)
2003-09-17 21:59:52 +00:00
atatat
08e63b9e97 Hey, wiz! Doesn't this need a comma? 2003-09-17 05:34:15 +00:00
itojun
8acd0a2534 have DPADD 2003-09-17 00:41:17 +00:00
wiz
99612f8f60 Bump date for previous, reword a sentence. 2003-09-15 13:17:24 +00:00
mycroft
0e1a71bba5 WRT disk commands, make the man page consistent with the program, and add the
feature I expected.
2003-09-12 17:32:29 +00:00
mycroft
a84dcb3095 Allow lower case 'q' to quit. 2003-09-12 17:31:26 +00:00
cl
7272f1e99e include <inttypes.h> to get uint64_t defined 2003-09-12 12:59:34 +00:00
itojun
070ac19762 fix PR bin/22739 (netstat -nlv -f inet6 weird) 2003-09-12 10:43:42 +00:00
christos
c7360d4269 eliminate unneeded use of sigcontext. 2003-09-12 00:39:38 +00:00
jmmv
6c008dec3b Add the 'e' debug flag (i.e., '-d e'): when enabled, show the "target
failed" and "command failed" messages added recently.  These introduce
too much noise when debugging some kind of problems, specially in pkgsrc.
2003-09-10 18:04:22 +00:00
jmmv
328ce86893 Document the '-d f' flag. 2003-09-10 08:44:31 +00:00
erh
ac765b1532 PR# bin/22736: Allow unsorted tags file to work. If the initial binary
search fails to find a matching tag in any of the tags files, try a full
linear search.
2003-09-09 21:03:15 +00:00
lukem
f741d2d094 when displaying the 'Failed command:', collapse runs of whitespace in the
command to a single space.   suggested by David Laight in private mail.
2003-09-09 16:16:02 +00:00
drochner
1a9a16338e Remove some code which makes file lookup rely on the fact that
the first two directory entries are "." and "..".
This behaviour is not required by applicable standards, and
actually not provided by "coda".
Now we get the "." and ".." into the per-directiry hash tables,
but this should not hurt.
2003-09-09 14:44:35 +00:00
wiz
3de6998961 This is a host tool: use {u,}int64_t instead of {u_,}quad_t. 2003-09-09 09:45:47 +00:00
lukem
16cddad1c8 don't free cmdStart too early, as cmd points somewhere in there and we
may want cmd for error messages.
should fix [bin/22705] from itojun@
2003-09-08 23:54:54 +00:00
wiz
47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
kleink
cf0446b4df Add Xrefs to basename(3), dirname(3). 2003-09-06 20:56:40 +00:00
sjg
435f6fef84 Make empty() consider an undefined variable as empty,
rather than throw a syntax error.
2003-09-06 06:52:08 +00:00
wiz
91f2a1b827 Whitespace nits. 2003-09-05 06:55:46 +00:00
sjg
9ab525fdf0 Allow -V '${FOO}' to print the expanded version of FOO.
A side effect of adding and removing a -E option for the above is that
the cases in MainParseArgs are now ordered correctly?
2003-09-05 06:52:11 +00:00
itojun
0162be23d0 synchronize w/ inpcb/in6pcb change 2003-09-04 09:23:35 +00:00
lukem
5bb8036aeb Also display failed target. Given
printf "all:\n\ttrue\n\t@false\n" | make -f -
the error output now looks like:
	*** Failed target:  all
	*** Failed command: false
	*** Error code 1
instead of just
	*** Error code 1

XXX: add this support for  make -j  builds.
2003-09-02 23:40:11 +00:00
lukem
ea878e8983 display the command that failed.
this is useful if the command-line had been suppressed.
2003-09-02 12:17:40 +00:00
dsl
99135be3ff Use correct size when copying interrupt counters.
Fixes second part of bin/10095 (first part fixed in rev 1.25)
2003-08-30 12:57:03 +00:00
dsl
df54a17886 Bring description of vmstat page closer to reality. 2003-08-30 12:27:26 +00:00
dsl
cb20da8aae Add options_def.h to DPSRCS and CLEANFILES 2003-08-28 22:04:23 +00:00
dsl
43d69358c2 Use the options.awk script to generate options_def.h (as in nvi distribution).
Modify options.awk to detect an incorrectly sorted options array.
NB: if GTAGS is undefined theses sources will still generate invalid programs.
2003-08-28 16:23:40 +00:00
dsl
d264f181ea Fix typo in 'help', bump date in vi.1 2003-08-28 14:44:48 +00:00
dsl
5e8df6a3d7 Add definition of matchchars 2003-08-28 13:25:13 +00:00
dsl
41efebfb61 Make the order of these defines match the correctly sorted definition
in options.c.
Is there any reason why we don't use options.awk so this file would
always be correct?  (especially if the awk script checked the sort)
2003-08-28 13:19:05 +00:00
dsl
68b9f13602 Bump for inclusion of :set matchars 2003-08-28 05:00:09 +00:00
mrg
d47feee1f7 can't print size_t with %d 2003-08-28 01:55:17 +00:00
thorpej
e5adc13bea * Make it a little easier to add new "ioctl defns are in these files".
* Add the ability to decode the cryptodev ioctls.
2003-08-27 20:35:42 +00:00
thorpej
922a27ed29 NO_* have been changed to OPENSSL_NO_* in more recent OpenSSL releases,
including the one now in our tree.
2003-08-27 20:18:41 +00:00
dsl
f25691d97c Increase maximum terminal size from 500x500 to 4000x4000.
Add a 'matchchars' option to set the character pairs that % looks for.
Traditionally this was []{}() but someone added <> to nvi - probably
for editing html, but it is a pain for C. :set matchars=[]{}() will
restore the traditional behaviour.
If the 'open' and 'close' characters are the same (eg "" or '') then % will
alternate forwards and backwards searches.
Use common code to detect options that must have an even number of characters.
2003-08-27 15:15:13 +00:00
dsl
9290245176 Coorectly sort options table (it is searched with a binary chop). 2003-08-27 13:47:51 +00:00
wiz
31fd31ccf7 Make getlastlogx have the pathname to the lastlogx database as first
argument, to be consistent with updlastlogx.

Approved by christos, reviewed by kleink.

[The lastlogxname function should not be used any longer.]
2003-08-26 16:48:32 +00:00
erh
c0513eb911 Fix typo in the description of the -n option. 2003-08-25 19:06:57 +00:00
lha
afad8d1f7c libkrb depends on libdes, patch in private mail from
Harold Gutch logix at foobar franken de
2003-08-23 23:03:42 +00:00
wiz
f3d114a539 Improve grammar in last, and bump date for -0. 2003-08-23 22:36:21 +00:00
wiz
ad921c5f25 Comma and Pp police. Bump date for last. 2003-08-23 22:31:24 +00:00
atatat
2025668369 Remove jeroboam, magnum, and rehoboam from the "trivia" section and
put them in another section with all the other bottles (the new aptly
named "bottles" section).

Also, add shed (1e-24 barn).
2003-08-23 04:15:33 +00:00
christos
f49a04b8f2 make -0 actually work 2003-08-21 00:01:13 +00:00
christos
0d30aed428 Add -0 option. 2003-08-20 23:37:51 +00:00
christos
791007d1e3 Normalize the program's compilation options so they are all of the form SU_
and document them.
2003-08-20 14:11:17 +00:00
itojun
ccbbb1b94c fix comment; FD_SET is not used any longer 2003-08-20 03:35:38 +00:00
itojun
c636858983 correct strange indentation 2003-08-19 12:52:13 +00:00
pooka
63242450c2 back out revision 1.8 per discussion with Hubert
vgrind already worked properly in filter mode for source correctly
enclosed inside .vS and .vE.  The change more or less broke troff
processing, since e.g. \fI became \\fI when it went through vgrind.
2003-08-18 15:28:17 +00:00
pooka
7db1443cd2 make the macrofile point to the new name 2003-08-18 15:02:16 +00:00
pooka
b7fe06f1ae Use the new name for the macro file (vgrind.tmac) instead of the old
one (tmac.vgrind), the advantage being that the former exists.
2003-08-18 14:10:22 +00:00
itojun
b103dc8ce0 another fix for PR bin/22464; never set wwbaud to 0. 2003-08-13 15:21:07 +00:00
itojun
c0c6d52ab2 backout previous - commited by mistake 2003-08-13 15:14:55 +00:00
itojun
e0a59ddcd9 fix PR bin/22464 (hang up on kterm) 2003-08-13 15:13:46 +00:00
christos
fa2d773e2e Kill select. 2003-08-13 14:13:14 +00:00
dogcow
9217e5df47 add the smoot 2003-08-12 19:03:32 +00:00
dsl
55a20c5130 Correct boundary conditions for drive table for 'systat io num'.
Correct fix for bin/18823 (which was incomplete and wrong!)
2003-08-12 17:16:53 +00:00
skrll
d900731978 Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works.
Previously dlsym resolved to the version in crt0.o or libc which would
mean that the caller's shared object couldn't be determined correctly
using __builtin_return_address(0).

Mainly from FreeBSD, but adapted by me. Benefits of this solutions are:

	- backward comptibility maintained
	- existing broken binaries are fixed with a new ld.elf_so
	- __mainprog_obj can be removed from crt0.o
	- we do the same thing as FreeBSD

Fixes PR 22067.

OKed by Jason and Christos.
2003-08-12 09:18:38 +00:00
sjg
a41eaef46a Hook make unit-tests into regress 2003-08-08 06:42:38 +00:00
jdolecek
f84513a754 add TNF copyright 2003-08-07 11:32:34 +00:00
agc
89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz
0402922a63 Sort usage, and move a word. 2003-08-07 10:04:21 +00:00
wiz
136392f22f Add arguments to options in long description. 2003-08-07 10:04:01 +00:00
jdolecek
291a252c2e need to pass flags as argument to TIOCFLUSH ioctl
fixes bin/22391 by SAITOH Masanobu
2003-08-07 07:01:09 +00:00
martin
e6583feed7 Remove special case handling for $CPP and use execvp() instead.
Patch from Hiramatsu Yoshifumi in PR bin/22311, with minor cosmetic
adjustment suggested by Luke Mewburn. OK'd by Frank van der Linden.
2003-08-05 21:26:55 +00:00
grant
c330a8c5ed Discs->Disks 2003-08-05 20:01:25 +00:00
lha
0fe8a8550f libkrb depend on libdes
libkrb5 depends on libasn1 and libcrypto
2003-08-05 10:45:42 +00:00
itojun
4c488f6bec always print prefixlen for routes. it's CIDR age. 2003-08-04 11:10:33 +00:00
provos
ccc5fba3de Implement -iname for case insensitive matching on file names.
From freebsd/openbsd.  Approved by jaromir@, manu@, perry@.
2003-08-03 19:46:03 +00:00
jdolecek
fad5af1f3b add -DHAS_ISBLANK to CPPFLAGS, so that current nawk would use our isblank(3)
instead of it's own; pointed out by Stefan Kruger in private e-mail

add rules to install the gawk info file too; it's useful to have installed,
and allows nawk to be drop-in replacement without need to adjust file lists
2003-08-03 17:19:45 +00:00
jdolecek
ecb9302c7f if kvm_nlist() fails, nlisterr() would be called before the screen
curses context would be initialized; just use errx() instead in this case
this fixes coredump for cases like 'systat -N /netbsd.gz', reported by Walt
on port-i386

in nlisterr(), wait a while (5 seconds currently) before exiting, so that
it would be actually possible to actually see the error
2003-08-03 12:14:58 +00:00
jdolecek
37870ec770 mark nlisterr() as 'noreturn' 2003-08-03 11:56:57 +00:00
lukem
a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem
46261912cf Use SCRIPTS=unifdefall.sh instead of SCRIPTS=unifdefall,
as the latter causes the .sh: rule in <sys.mk> to be used, which
leaves unifdefall in the .OBJDIR unless a CLEANFILES rule is added.
2003-08-01 11:51:14 +00:00
sjg
3dfdacc170 Avoid \a as a test of invalid separator, since if we make ksh the default
shell, we get different results.  \x seems safe.
2003-08-01 04:57:20 +00:00
sjg
86b9a219d4 Fix for TEST_MAKE from Alan Barrett 2003-08-01 03:55:59 +00:00
sjg
3716ad7f49 Allow .SHELL: to control the shell used by compat mode too.
Add a shell spec for ksh - a nice portable posix shell.
Document .SHELL:
2003-08-01 00:39:52 +00:00
yamt
428f108569 remove remaining v_id. 2003-07-31 15:43:06 +00:00
scw
bc25d2ab5f Const poisoning. 2003-07-31 13:48:11 +00:00
lukem
462f170e30 crank version for:
* Work around broken ftp servers (notably ProFTPd) that can't even follow
  RFC 2389, and skip any amount of whitespace before a FEATure response.
  The RFC says 'single space' yet ProFTPd puts two.
  Noted by DervishD <raul@pleyades.net>.
* Improve formatting of features[] debug dump.
* Invalidate remote directory completion cache if any command which
  may change the remote contents completes successfully, including:
  del, mdel, ren, mkdir, rmdir, quote, and all upload commands
  Patch from Yar Tikhiy <yar@freebsd.org>.
2003-07-31 07:13:01 +00:00
lukem
8d51fbf035 Invalidate remote directory completion cache if any command which
may change the remote contents completes successfully, including:
del, mdel, ren, mkdir, rmdir, quote, and all upload commands
Patch from Yar Tikhiy <yar@comp.chem.msu.su>.
2003-07-31 07:06:41 +00:00
lukem
90bb61be44 * Work around broken ftp servers (notably ProFTPd) that can't even follow
RFC 2389, and skip any amount of whitespace before a FEATure response.
  The RFC says 'single space' yet ProFTPd puts two.
* Improve formatting of features[] debug dump.
2003-07-31 06:57:07 +00:00
lukem
6f5fbdb6de * $FTPUSERAGENT overrides the HTTP User-Agent header.
Based on patch from Douwe Kiela.
* Add about:tnftp
* Fix URL in about:netbsd
* Crank version
2003-07-31 05:23:59 +00:00
sjg
1ebbf35953 Test behavior of commandline variable assignments. 2003-07-31 00:46:15 +00:00
yamt
cc104d0635 eliminate v_id. 2003-07-30 12:10:57 +00:00
itojun
ca9ee227bb forgot to add 2003-07-30 08:53:50 +00:00
itojun
38b27406f9 remove unused macros 2003-07-30 08:51:55 +00:00
itojun
75c32b46eb use bounded string op 2003-07-30 08:51:04 +00:00
itojun
a788826020 unifdefall is available. 2003-07-30 08:24:11 +00:00
itojun
7c02fa33c0 ANSI C support, from http://dotat.at/prog/misc/
PR 22303
2003-07-30 08:21:46 +00:00
sjg
82cba16bce A couple of other places where delim should be set 2003-07-29 09:06:29 +00:00
sjg
b806b12f2d First bug picked up by the unit tests - delim wasn't always initialized.
Avoid putting '\' in test case script lines since shell's like that on
SunOS insist on interpreting them.
2003-07-29 08:44:41 +00:00
sjg
e3cd1dc68c Use single quotes to protect everything from shell's that might
alter the results.
2003-07-29 08:16:01 +00:00
sjg
6b9a4c9477 Regardless of the name of TEST_MAKE, force it to make in test.exp
to avoid needless failures.
2003-07-29 06:35:09 +00:00
sjg
db7ca3c993 Fix parsing bug for :ts - patch from Alan Barrett <apb@cequrux.com>
Also add simple unit-test jig (regress/usr.bin/make will use it too)
but having it local here makes inclusion in bmake simpler.
2003-07-28 22:52:10 +00:00
dsl
ee1a61d7eb No need for wrefresh() in msg_clear(), screen will be updated later.
Stops obvious redraw of header of some menus.
2003-07-28 09:55:24 +00:00
dsl
048dfb4fde More tweaks for sysinst.
Let 'display action' routine set menu->cursel (ie default menu item).
Remove 'opt' parameter I added to action routine (not that useful).
Make man page slightly closer to reality.
2003-07-27 07:21:57 +00:00
salo
0f5a0c156d netbsd.org->NetBSD.org 2003-07-26 20:34:11 +00:00
mrg
8c66a01dc4 build var.c with -Wno-cast-qual - gcc3.3 complains about VarWordCompare() 2003-07-26 16:04:29 +00:00
mrg
a1c0290e03 reorder some structure definitions to appease gcc3.3 2003-07-26 16:02:25 +00:00
itojun
182a98314c support new algorithms 2003-07-25 10:06:09 +00:00
dsl
5cd6e49033 Change variable name to compiles with WARNS=3 2003-07-25 07:48:02 +00:00
dsl
2304abbd2b Spinkle some consts and remove/change parameter names so that sysinst
will compile with WARNS=3.
2003-07-25 07:22:05 +00:00
atatat
d5fb781871 More properly host-tool-ify stat 2003-07-25 03:21:15 +00:00
wiz
52c00b06b5 Sort translation options list. 2003-07-24 18:21:31 +00:00
tron
86b35822ff Backout previous and revert su(1) to dynamic linking instead. 2003-07-24 16:18:21 +00:00
tron
b2df6d93aa Link with "libdes" if Kerberos IV support is enabled. 2003-07-24 16:06:45 +00:00
itojun
88ec7d3792 bring back krb4 support, just to suppress unwanted noise from other developers.
note that official openssh distribution have already dropped kerberosIV support,
therefore maintenance cost needs to be paid by us.  and have no intent to help.
2003-07-24 15:31:52 +00:00
itojun
906834fadf sync w/ openssl 0.9.7b 2003-07-24 14:20:59 +00:00
itojun
f4401cd869 upgrade openssl to 0.9.7b. (AES is now supported)
alter des.h to be friendly with openssl/des.h (you can include both in the
same file)
make libkrb to depend on libdes.  bump major.
massage various portioin of heimdal to be friendly with openssl 0.9.7b.
2003-07-24 14:16:30 +00:00
atatat
cfda71101a Reform the Gregorian Reform. This means that the previously hard
coded meaning of 1752/09/03 is only a default, and that everything is
now calculated dynamically.

You can now use -R reform-spec to specify an alternate reform.  Read
the fine (new) man page for details on this.  There is also a new -r
option which will make cal print the month (or year, if -y is also
given) in which the Gregorian Reform started.  I say started only
because if you apply the reform at 9999/1/22, a chunk of January is
knocked out, February and March are missing entirely, and April starts
on the 5th.  The use of -r with -y does pretty much what you'd expect.

Also, implement -d day-of-week so that you can tell cal to start the
week on something other that a Sunday.  This addresses PR bin/8539 at
long last.
2003-07-24 01:19:45 +00:00
atatat
c9c88988f6 Though I cannot reproduce the failure (which I suspect is rather
system dependent), the analysis provided in PR misc/22089 is correct.
Therefore, allocate one more slot and suck one more slot from the
kernel.
2003-07-24 00:43:50 +00:00
itojun
adeab29eca include des.h, not kerberosIV/des.h 2003-07-23 20:31:18 +00:00
sjg
59b1f67a11 Fix merge problem with ts modifier and const correctness.
Need to pass nstr to VarModify.
2003-07-23 18:06:46 +00:00
wiz
7d42d8e76f Be more verbose in error message if iconv_open fails. 2003-07-23 13:18:59 +00:00
itojun
e63468d8cc split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
2003-07-23 08:01:24 +00:00
itojun
0abe0bddb0 forgot to remove -lkafs. from rafal 2003-07-23 08:00:52 +00:00
lukem
49671e2e2b * don't compile in support for st_birth #ifdef HOSTPROG
* remove %B (birth) from default format strings, since %B isn't available
  #ifdef HOSTPROG, and it's not standard enough to be fussed about anyway
2003-07-23 07:23:23 +00:00
itojun
425dfd313c style 2003-07-23 04:12:33 +00:00
itojun
e97c220e91 use bounded string op 2003-07-23 04:11:12 +00:00
itojun
8556dff80c remove KRB4 and AFS support. sync w/ openssh main tree 2003-07-23 03:52:16 +00:00
yamt
808b43aeb1 fix garbages printed with -h option.
- always clear linebuffer.
- don't use an uninitialized variable.
2003-07-22 14:22:09 +00:00
lukem
4b391b57bf pass in -DHOSTPROG if a HOSTPROG 2003-07-22 13:58:49 +00:00
lukem
59efd8a9dd remove unnecessary rules 2003-07-22 12:34:40 +00:00
lukem
3839e0f0c0 use CPPFLAGS.getpwent.c=... to set file-specific cpp flags 2003-07-22 12:25:57 +00:00
itojun
aa96314290 support hmac-sha2. 2003-07-22 03:41:28 +00:00
agc
8a3e64ceb9 Fix a tyop - we want the readlink binary and manual pages when HOSTPROG
is not defined.
2003-07-21 10:16:55 +00:00