Commit Graph

7466 Commits

Author SHA1 Message Date
ross
3856fab870 Briefly document the posix command line order and add that this
is (unfortunately) not enforced.
2004-02-05 23:40:52 +00:00
ross
380bdcb7fb Parse args with open code to eliminate use of getopt(3).
No functional change under NetBSD.

Restarting a getopt(3) loop is an extension to the posix getopt(3)
behavior and is not portable.

Fixes tools build (tools/groff) under Cygwin.
2004-02-05 23:31:34 +00:00
wiz
c732f0a853 Use more mdoc macros; new sentence, new line; bump date for previous. 2004-02-04 00:37:45 +00:00
chuck
51659857a7 add parent directory search for make as discussed on tech-toolchain.
- new dir.c function: Dir_FindHereOrAbove:
      Search for a path in the current directory and then all the directories
      above it in turn until the path is found or we reach the root ("/").
 - add hooks to use it in main.c for -m and syspath (compiled in
      _PATH_DEFSYSPATH and $MAKESYSPATH).
 - updated man page
2004-02-03 19:25:29 +00:00
lukem
f0cea2f5e2 Fix bug when calculating digest when copying from dev/null.
Problem noted by Matthias Scheler and Tomasz Luchowski.
2004-02-02 23:25:36 +00:00
christos
301d580988 Fix reversed logic (decimal argument passed in output_long, where it expects
hex). Change tests to <= 9 to a small(v) macro, so that negative numbers fail
too consistently.
2004-02-02 06:27:56 +00:00
christos
8e65a43404 Include iosfwd instead of iostream, since it is smaller; from Marc Espie. 2004-02-01 21:24:02 +00:00
snj
a6b397d6de New sentence, new line. Kill some extra whitespace. Mention calendar.netbsd
and calendar.lotr.  Okayed by wiz.
2004-02-01 01:03:57 +00:00
snj
54d71a44a7 Fix some typos and spelling errors. Okayed by wiz. 2004-02-01 01:00:43 +00:00
snj
9395c6ab06 Expand some names, fix a spelling error (Pete Townshend might disagree,
but "quadrophonic" is not the proper spelling), give George Gershwin's
year of birth, add Stevie Ray Vaughan's birth/death dates.  Okayed by wiz.
2004-02-01 00:59:28 +00:00
snj
6d087af2f4 Expand a couple names and fix some spelling errors. Okayed by wiz. 2004-02-01 00:51:27 +00:00
snj
a6c6550af8 Give year of MLK's birth. Expand some names. Okayed by wiz. 2004-02-01 00:48:50 +00:00
snj
22a35b2cee Jimi Hendrix's death date belongs in the music calendar. Okayed by wiz. 2004-02-01 00:46:05 +00:00
snj
7c73c22c56 It's "its." Add NetBSD 1.6.1 release date. Okayed by wiz. 2004-02-01 00:34:13 +00:00
atatat
9fa5182332 Lint police. 2004-01-31 20:53:55 +00:00
atatat
282eb9c623 Unfold the KDEREF() macros a little, and tweak the LOCKDEBUG detection
code, to detect a KDEREF failure instead of simply aborting.  If the
KDEREF fails, we're obviously not_using_lockdebug().
2004-01-31 18:25:27 +00:00
lukem
75b72cb4f9 Auso support -h hash for hard-linked files. 2004-01-30 01:38:25 +00:00
yamt
4480473553 follow the kernel vm_map_entry allocation strategy change. 2004-01-29 22:19:12 +00:00
mrg
49637d1931 use gzopenfull() 2004-01-29 13:18:58 +00:00
wiz
f46a4026cc Drop trailing space. 2004-01-29 11:17:37 +00:00
lukem
37cb4fb1d9 Implement -h {none,md5,rmd160,sha1} to determine the appropriate hash
(digest) when copying a file to store in the -M METALOG.
2004-01-29 07:58:33 +00:00
lukem
5541148775 now that -c is the default, use "copy" instead of "move" 2004-01-27 02:49:42 +00:00
lukem
f83f942f81 Document more SPECIAL SOURCES (aka ATTRIBUTES).
Improve description of variable modifiers.
In the variable list, be more specific referring to "environment variables"
rather than just relying upon the formatting difference between .Ev and .Va.
2004-01-27 01:38:01 +00:00
wiz
5ad6c16fa8 Bump date for previous. 2004-01-26 21:59:42 +00:00
dsl
c08c3c342b Pass -MD through to cpp so that it can generate a depend file.
(Actually pass any -M <arg> through, but -MD is most useful.)
2004-01-26 21:51:11 +00:00
dsl
36af2f9f0c Redo code that expands the 'xxx.o' to 'xxx.o xxx.so xxx.po xxx.ln' so that
is doesn't care which of the wanted suffixes are in the input file.
Needed for my autodepend code where you don't know which compilation ran last.
2004-01-26 21:47:04 +00:00
grant
23032f5513 void functions need not call return 2004-01-25 05:19:49 +00:00
dsl
c3032ca9a0 Restore correct name string when VarGetPattern() returns.
Stops error from free() evaluating ${x::=y} when x is undefined.
(Erm why is free() allowed to write to fd 2?)
2004-01-24 19:58:54 +00:00
wiz
49b12ea919 Some fixes from jmc@openbsd. 2004-01-24 17:03:26 +00:00
snj
33a43be982 Mention mixerctl.conf in FILES and SEE ALSO. While here, tidy up some
sentences.  Bump date.  Closes my own PR misc/23516.
2004-01-23 21:12:07 +00:00
dbj
6ea7ce87e3 fixes to keep default output under 80 columns
reduce default number of disks to 3 from 4
adjust widths of cpu stats if one of them is 100%
always put spaces between # of processes runnable (from pr 12691)
2004-01-22 21:47:55 +00:00
mrg
b1da97fd23 apply the patch from PR#24127: make audio_wav_parse_hdr() take u_int *
parameters for encoding, precision, sample rate and channels.
2004-01-21 11:55:07 +00:00
sjg
4d32648363 ternary is .PHONY 2004-01-19 00:32:26 +00:00
mrg
7ca9a9ac30 redo the former in light of making the kernel output normal 64 bit
records for 32 bit & 64 bit processes.  we still make some adjustments
when dealing with 32-bit processes, but largely things are handled the
same now.  make the code to match "netbsd32_<syscall>" in place of
plain "<syscall>" more general.
2004-01-15 14:42:09 +00:00
grant
fc6ca7735c uppercase NFS acronym 2004-01-15 03:33:20 +00:00
mrg
2ccd4840f5 - add a new flags field to the emulation vector, with one user so far
EMUL_FLAG_NETBSD32.  set EMUL_FLAG_NETBSD32 in any 32 bit on 64 bit
kernel emulation layers.
- if EMUL_FLAG_NETBSD32 is set, calculate the proper argument count.
(XXX: this should use register32_t, but that's not visible to all
builders of kdump...)

now netbsd32_ioctl(2) actually reports sane values, and other arguments
are mostly correctly printed (there are still some signed extension
issues with 32 bit numbers being displayed as "0xffffffff8xxxxxxx".)
2004-01-12 13:39:56 +00:00
jdolecek
bd4dbe8139 g/c SDEAD handling 2004-01-11 19:15:50 +00:00
dsl
4169574d6f Reindent search loop in SuffFindCmds using 'continue' and 'break' instead
of netsted ifs.  No logic change.
2004-01-11 17:24:25 +00:00
dsl
742a98df46 Change DEBUG(DIR) traces to indent subsequent filenames instead of
generating very long lines (basically changes "..." into " ...\n   ").
2004-01-11 12:22:40 +00:00
sjg
71746b839b Add unit test for ternary modifier 2004-01-09 00:56:44 +00:00
sjg
1752434408 Fix :?: modifier so that it works again. 2004-01-08 23:55:05 +00:00
atatat
a068aea23a Find the buf_map symbol, so that the submap can be labeled properly. 2004-01-06 14:01:19 +00:00
itojun
144fd6a2bf typo fix. do not go suicide by mistake. from millert@openbsd 2004-01-06 07:35:58 +00:00
sjg
345311007d Handle more complex conditional expressions.
CondCvtArg now returns NULL if it consumed all input, or a pointer
to any left overs.
2004-01-06 01:18:52 +00:00
jmmv
672f49e3a2 Let the usage message fit in 80 columns to avoid wrapping. 2004-01-05 23:35:41 +00:00
jmmv
b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
itojun
85dd54f188 KNF, from kevlo@openbsd 2004-01-05 19:20:10 +00:00
lukem
32e6b841fb Generate the copyright string from sys/conf/copyright rather than
replicating it here.  Idea from Simon Burge.
2004-01-05 03:53:10 +00:00
wiz
5b677ebe3a Bump Dd for previous. 2004-01-04 02:24:32 +00:00
wiz
86a0205ded Point people to re_format(7) instead of regex(3) for
RE description; from Greg A. Woods.
2004-01-04 02:24:07 +00:00
augustss
063a980b4e Fix typo about which mixer device is used. 2004-01-03 18:43:02 +00:00
lukem
986979b8c9 Consistently check ${TOOLCHAIN_MISSING} against "no". 2004-01-03 14:04:27 +00:00
mrg
d8d414bd77 prepend_gzip: avoid searching beyond this string 2004-01-03 02:39:18 +00:00
wiz
9b45ab8153 Remove superfluous max() macro.
Noted by Jeff Ito in PR 23932.
2004-01-03 01:18:14 +00:00
cjep
26e45f0c9a Import of our changes to grep developed in othersrc. A very
brief summary:

* Add NetBSD RCS Ids. Change to use a date based version number.
* Remove unused variables and functions.
* Move towards NetBSD code style.
* Add missing GNU options (except for --include, --exclude and
	--line-buffered)
* Bug fixes
* Bug fixes and changes from OpenBSD's src/usr.bin/grep

A full list of changes can be viewed in the NetBSD CVS repository at
othersrc/usr.bin/grep. A ChangeLog is also available at:
	ftp://ftp.NetBSD.org/pub/NetBSD/misc/cjep/grep-ChangeLog.txt

If you want to help out, please let me (cjep@) know so that we can
organise our efforts efficiently.
2004-01-02 15:00:29 +00:00
cjep
9ffc49ef33 Import of our changes to grep developed in othersrc. A very
brief summary:

* Add NetBSD RCS Ids. Change to use a date based version number.
* Remove unused variables and functions.
* Move towards NetBSD code style.
* Add missing GNU options (except for --include, --exclude and
	--line-buffered)
* Bug fixes
* Bug fixes and changes from OpenBSD's src/usr.bin/grep

A full list of changes can be viewed in the NetBSD CVS repository at
othersrc/usr.bin/grep. A ChangeLog is also available at:
	ftp://ftp.NetBSD.org/pub/NetBSD/misc/cjep/grep-ChangeLog.txt

If you want to help out, please let me (cjep@) know so that we can
organise our efforts efficiently.
2004-01-02 15:00:25 +00:00
cjep
232a750c61 Import of BSD-licensed grep by James Howard and Dag-Erling Coïdan
Smørgrav. This import is of version 0.16.
2004-01-02 14:58:43 +00:00
itojun
3d7bc49491 use snprintf, dude 2004-01-02 12:09:48 +00:00
simonb
95a042fe31 Fix off-by-one error in the malloc of the new argv in prepend_gzip(). 2004-01-02 10:09:42 +00:00
wiz
7569ff6812 Fix typo in comment. 2004-01-02 03:12:21 +00:00
wiz
75806e5a61 Sort sections. New sentence, new line. Bump date. 2004-01-02 03:01:13 +00:00
mrg
0b76a77c33 implement $GZIP handling. 2004-01-02 02:55:26 +00:00
mrg
91536bce55 note that $GZIP support is missing still 2004-01-02 01:40:59 +00:00
mrg
74e9c5767a allow HAVE_ZLIB_GZOPENFULL to be overriden externally 2004-01-02 01:34:01 +00:00
yyamano
0eb77d4bef Fix incorrect date: 1.4 and 1.4.2 release. 2004-01-01 16:50:05 +00:00
mrg
e4b2fd8644 don't dump core in the face of unknown long options. from cjep@ 2004-01-01 05:28:44 +00:00
wiz
a8763d1922 .P -> .Pp (typo fix). 2004-01-01 03:51:36 +00:00
mrg
09e6110c19 add some simple -DSMALL support. reduces the size of gzip(1) itself a by
nearly 2.5KB text.
2004-01-01 02:58:36 +00:00
mrg
ecadec7f36 port simonb's bzip2 support.
misc cleanups.
2004-01-01 02:44:09 +00:00
mycroft
a9866938b5 Welcome to 2004! 2004-01-01 00:00:05 +00:00
pk
498839ae5e Adapt to kernel buffer cache memort allocation changes.
Since the buffer headers do no longer exist as an array in the kernel anymore,
use the new CTL_KERN.KERN_BUF mib to fetch them from kernel space.

Also look at a vnode's specinfo field to properly associate an opened
block device special file with a mounted filesystem.
2003-12-30 12:52:48 +00:00
simonb
60e35b79cc Make "copy the file" (the -c option) the default behaviour. The -c option
is kept for backwards compatibility but now has no effect.

Patch from Bruce Nourish in PR bin/23874, with some minor changes by me.
2003-12-29 02:01:27 +00:00
wiz
e000293cc0 Add RCS Id. 2003-12-28 17:26:48 +00:00
wiz
6ac2a4f4db Add a BSD licensed zgrep written by me.
Much nicer than the old one, if I may say so.

Thanks go to atatat for testing and suggestions.
2003-12-28 17:26:00 +00:00
mrg
0889156103 GNU gzip compatibility: don't let "gzip -dc" (zcat) operate on non-gzip
files by default.  -f must be used.
2003-12-28 13:42:28 +00:00
mrg
f13009df25 fix an error in the previous 2003-12-28 13:40:56 +00:00
mrg
7530d0a53d zdiff is also zcmp (from wiz) 2003-12-28 13:37:23 +00:00
wiz
98018344b7 No argument necessary after .Nm; add missing comma to enumeration. 2003-12-28 12:49:41 +00:00
wiz
28c2ebe997 Use more macros. 2003-12-28 12:48:03 +00:00
wiz
18a6b94f65 Uppercase CRT. 2003-12-28 12:47:52 +00:00
wiz
3a92ef57da Add RCS Id. 2003-12-28 12:43:43 +00:00
mrg
ff7efa72db install gzexe, zdiff, zforce, zmore and znew scripts and manual pages.
XXX: now only missing zgrep.
2003-12-28 12:37:42 +00:00
mrg
5ddb436023 import openbsd z* scripts and manuals. 2003-12-28 12:31:55 +00:00
jmc
6cf7ed4ade Fix PR#4980 and support common symbols correctly in crunched programs.
Exclude them from renaming and expect the linker to do the right thing in
resolving them all to the library copy (i.e. optarg) or locally as the
case may be. Testing multiple programs crunched which reference optarg shows
correct behavior now.
2003-12-28 09:21:36 +00:00
jmc
c392dc52fe Support crunch configs which specify relative srcdir's but don't use -D. For
these cases, prepend getwd() onto the front of them so a full correct path
is passed to the reach over make command (as it's running from at least
a subdir of the current directory for each object)
2003-12-27 22:28:38 +00:00
wiz
8114895bf3 Bump date for previous; use macros for marking up
the dollar sign.
2003-12-26 23:22:31 +00:00
jmc
31e37b335f Note that variable expansion can occur within SYSV style = substitions. 2003-12-26 23:18:18 +00:00
jmc
3eb499682d Support variable expansions inside of SYSV style = substitutions. Better matches
expectations (and some cases of historical behavior I've found). Also fixes
PR#3865
2003-12-26 23:13:32 +00:00
wiz
67ae4b51b8 .Pp\n.Pp -> .Pp. 2003-12-26 15:24:00 +00:00
mrg
63f41c4e03 --long-options are supported 2003-12-26 15:21:05 +00:00
wiz
cf79907567 New sentence, new line; avoid &; uppercase CRC. 2003-12-26 15:18:54 +00:00
mrg
f737ab4d3e bump .Dd 2003-12-26 15:16:05 +00:00
mrg
a4624b06a5 - document --list
- use unsigned char's that are used in unsigned calculations later.
2003-12-26 15:15:49 +00:00
mrg
9e3ca570b9 support gzip -l -v. 2003-12-26 15:06:16 +00:00
mrg
88899e3372 - print totals for --list.
- round down percentages, like GNU gzip does
- use "stdout" not "-", like GNU gzip does
- factor percent calculation code.
2003-12-26 14:49:37 +00:00
mrg
78b17b7b2b begin to start to support --list. 2003-12-26 14:11:01 +00:00
jmc
c7c6bf2bbd Don't assume startc is always {, set delim to endc when separating the args to
the ? test.
2003-12-26 08:03:06 +00:00
wiz
f239211326 Sort options; no spaces at EOL; limit line lengths.
Fix one typo.
2003-12-23 23:20:37 +00:00
mrg
75fa5559f5 - make this WARNS=3 happy
- add RCSID()
- document the version number
2003-12-23 15:02:40 +00:00
jdolecek
23c869fe88 fix markup of --suffix option
add zlib(3) xref also to SEE ALSO
2003-12-23 08:19:49 +00:00
jdolecek
3c67b87463 some const-poisoing, depend on bss to set gzipflags[] 2003-12-23 08:11:58 +00:00
jdolecek
1740f0282b remove one extra backslash from MLINKS 2003-12-23 07:56:01 +00:00
mrg
0a1b09ba9c install gunzip, zcat & gzcat links. 2003-12-23 06:23:32 +00:00
mrg
874b680779 delete unused variables 2003-12-23 06:23:18 +00:00
mrg
4084ec5402 import distrib/utils/x_gzip into usr.bin/gzip, with these enhancements:
- fully updated manual
	- -n/-N support
	- time stamp/owner/etc saved properly
	- GNU gzip --long-options supported (missing --ascii, --list
	  and --licence)
	- various cleanups & fixes

note that "-n" (save filename) support is currently disabled due to
depending on API changes in zlib.  for now, this support is disabled
(however "gzip -N -d" works.)

this gzip(1) replacement is ready for serious testing.  issues are:
	- might implement --list one day
	- zlib API addition
2003-12-23 05:16:31 +00:00
dsl
e2be127214 Use an array of pointers to menu definitions so the array can grow without
leaving code having stale pointers to menu ites.
2003-12-21 21:42:48 +00:00
kleink
4bd5e026a4 Update to keep file lengths in appropriate data types (off_t, as opposed
to u_int32_t).
2003-12-20 23:41:38 +00:00
jmc
1664a90985 Fixes for PR#18573 (make -j not stopping correctly on error).
Using -e in sh/ksh to stop on error doesn't work with grouped commands. At
least for any SUSE compliant sh(1). Instead, extend the Shell struct and add
errOut which provides a template to use to check error status from commands.
2003-12-20 00:18:22 +00:00
jmc
214b8c2d1e Add -f arguments into usage 2003-12-19 19:57:18 +00:00
jmc
66e9f52056 Start on adding support for -f flags as ldd did for a.out. PR#17786.
First, parse arguments correctly so -f isn't taken as a file name. For ELF
don't do anything yet, but for a.out compat, pass formats along when
exec'ing binary.
2003-12-19 19:56:56 +00:00
lukem
69e6f0aa33 -n is ignored for auto-fetch transfers 2003-12-19 03:46:02 +00:00
jmc
be1cdb8652 When looking for a makefile and curdir != objdir (i.e. working inside of an
objdir) try opening the file from curdir and if that fails try from objdir.
This way .depend files get picked up via their full path names rather than
just .depend so vars like PARSEDIR, PARSEFILE are then set correctly. This
fixes PR#13289 reporting incorrect pathnames for .depends with errors in
them
2003-12-18 22:36:18 +00:00
heas
16e5c22815 Initialize uid and gid so that the owner/group is not inadvertantly changed
when only one of -g or -o are given by the super-user and -g works for others.
2003-12-16 20:51:57 +00:00
skrll
eba79970b1 Remove the -fno-gcse-lm hack now that it is no longer needed. 2003-12-15 14:57:54 +00:00
chs
1a686b2ea3 rearrange lib stuff so that these link on non-shared-lib platforms. 2003-12-13 22:07:35 +00:00
dyoung
4758291178 Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
  distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
  9 out of 10 experts agree that it is ludicrous to build w/
  KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
  MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly.  That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles.  While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)
2003-12-11 09:46:26 +00:00
lukem
d11f9c3d61 Don't warn about "ignored setsockopt" failures unless debugging is
enabled.  Suggested by Todd Vierling.

Allow empty passwords in ftp://user:@host/file auto-fetch URLs,
per RFC 1738.  Requested by Simon Poole.

Update version.
2003-12-10 12:34:28 +00:00
agc
7db1d33cba Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
dmcmahill
e399647d5d Use grep in favor of egrep in a few places. The pattern being searched
for is just a string and some egrep's (notably the Solaris one) don't like
the -w option.
2003-12-08 23:57:13 +00:00
wiz
15dcc3baa6 Drop trailing spaces. 2003-12-07 20:48:25 +00:00
dsl
2bd419cb33 Add back 'on error' that got deleted by mistake. 2003-12-07 20:46:44 +00:00
dsl
7da2fe51b3 Add a -Dg3 which outputs the 'input graph' only on error exit.
Lets you see the wood for the trees...
2003-12-07 20:30:28 +00:00
dsl
43296f2aec Only emit each filename once in a single .OPTIONAL line when -o is given.
(Saves several MB for kernel .depend files.)
2003-12-07 20:22:49 +00:00
christos
6a02b7be66 - avoid coredump by returning NULL when read fails and don't keep following
the list.
- avoid zerodivide.
XXX: still does not work, but at least it does not core-dump.
2003-12-07 07:28:05 +00:00
christos
676abde787 be more descriptive about what failed by printing the errno and the
variable we were trying to fetch.
2003-12-07 07:27:09 +00:00
dmcmahill
5455115fd1 Conditionally include nbtool_config.h to make sure __P has been defined
when this is built as a host tool on some non-netbsd hosts such as
solaris-2.6.  fgen now correctly builds there.
2003-12-07 01:02:36 +00:00
dmcmahill
ef962b8e93 include arpa/inet.h for htonl/htons. Needed for building on solaris as
a host tool.  Change ok'ed by Matt Green.
2003-12-06 05:15:29 +00:00
mycroft
8ee74ae180 Recognize reciprocal conversions and generate output like GNU units(1). 2003-12-05 22:26:43 +00:00
lukem
037eb18f90 correct URL syntax in comment 2003-12-04 12:51:18 +00:00
lukem
08680ea4eb yy_flex_realloc(): apply __attribute__((__unused__)) instead of
wrapping with  #ifndef YY_USES_REJECT  .  Fixes [toolchain/11845].

Use __attribute__((__unused__)) instead of __attribute__((unused)).
2003-12-02 06:22:14 +00:00
dsl
092f7d2e16 Add '[no] clear' to lex/yacc spec.
Fix some menu sizing bugs for menus where the user code changes the size.
Don't reduce the size of a menu with 'scroll' every timeit is displayed.
2003-11-30 09:22:25 +00:00
wiz
03a2c411d5 Fix documentation of lesskey config file path per PR 23597
by Christian Biere.
2003-11-30 01:17:03 +00:00
wiz
df5a50364e Use $NetBSD$ instead of $Header$. 2003-11-28 23:52:34 +00:00
manu
bb938d861a Fix cross-build problem on sparc caused by a cast size_t -> int 2003-11-24 22:12:14 +00:00
wiz
c4f3c3c55c Bump date for previous (hi manu!). 2003-11-24 18:00:49 +00:00
manu
23f30b17cb Enable tracing of out of line data sent with Mach messages 2003-11-24 16:53:38 +00:00
dsl
1cedefc117 - Call delwin() when we stop displaying a window, saves space and newwin
is fast enough anyway.  Lets the calling code change some fields (eg
  the title for the 'yes/no' menu) between calls.
- Don't update m->x, m->y, m->w the changed values aren't needed once
  the window has been created.
- Allow the window title to span multiple lines.
- Fix a nasty bug caused by having pointers into the memory area freed
  by realloc when creating lots of dynamic menus.
- Fix check that ought to have allowed dynamic menus to be deleted.
2003-11-22 22:18:32 +00:00
christos
dd092f8c34 munmap() so that we don't accumulate memory on multiple files. 2003-11-21 21:20:25 +00:00
dsl
33dbb7eda9 Fix box width calculation for menus without a 'shortcut' ("a: "). 2003-11-20 13:03:44 +00:00
nathanw
31bbd833a9 Change the make(1) command lines generated by crunchgen from:
"make -a -b VAR=VALUE -c -d target" to
"make -a -b -c -d VAR=VALUE target"

to avoid depending on make's undocumented and unportably-implemented
handling of the former case.

Makes crunchgen and nbmake work together on Cygwin.
2003-11-19 22:44:15 +00:00
gson
924d7858aa Make ktruss compile again after recent change to kdump/setemul.h. 2003-11-19 05:20:50 +00:00
christos
2f971ecfcb More g++-3 fixes:
- std:c{in,out,err}
	- include <iostream>
	- use std::endl instead of \n
2003-11-18 21:37:39 +00:00
christos
07c6ad20d0 Try to fix cplusplus by adding std:: in some places. 2003-11-18 17:02:27 +00:00
manu
32f7275395 For Mach messages, always display the message Id in decimal. The information
is indeed in the message, but in hex. It's a bit inconvenient.
2003-11-18 14:21:59 +00:00
dsl
3433691e60 Stop core dump if an ioctl trace has fewer than expected arguments.
- Check names of system calls (for special treatment) because emulations
  might use different numbers.
- Report an error if arguments to -p or -m non-numeric.
- Just take last of -x and -Xvalue, stop -X0x80000000 being valid (core dumps).
- Keep 'last used' emulation_ctx at top of list, create on lookup (usually
  EMUL anyway), delete when exit called (doesn't return).
- Slightly improve hack to get correct system call name in execve return
  when emulation has changed.
- Rename global variables 'current'/'previous' to 'cur_emul'/'prev_emul'.
(TODO: save system call type (and maybe an argument) per pid so GIO trace
format can depend on the actual system call.)
Fixes part of PR sparc64/23473 - but system call arguments will still not be
displayed correctly.
2003-11-18 13:21:53 +00:00
wiz
4bbfee09ca Various typo fixes from Jonathon Gray via jmc@openbsd. 2003-11-17 11:16:10 +00:00
wiz
690130c2ef New sentence, new line; add comma in enumeration. 2003-11-16 23:10:00 +00:00
manu
e59cd6c2b4 Following mycroft's comment, restore -x to its original behavior: without
an argument. Introduce -Xsize to do the job. -x is equivalent to -X1
Of course -x and -Xsize are mutually exclusive.
2003-11-16 21:52:33 +00:00
dsl
826153cc5c Validate the numeric argument to -x, support -x1|2|4|8|16.
Produce sensible output on little-endian systems.
2003-11-16 14:51:26 +00:00
wiz
e0f60703ab Bump date for previous. New sentence, new line. 2003-11-16 10:16:56 +00:00
manu
91d6d92c2e Add an argument to the -x flag to choose between byte per byte display
and word per word display in hex dumps.
-x1 gives you byte per byte, -x4 word per word, and -x defaults to -x1
2003-11-16 10:13:48 +00:00
manu
94d3385454 Re-add the static root conditionnal that was removed by mistake. 2003-11-16 10:10:37 +00:00
manu
a0399121cc kdump now displays Mach services names itself, including a table of
id/names in sys/compat/mach/mach_services_names.c

Remove ports and flags displays, the information is already in the message.
2003-11-15 23:10:31 +00:00
ragge
ab6a210f76 Use itimerval() instead of alarm() for interval displaying. This increases
accuracy on interval stats also on fast machines.
2003-11-15 11:54:34 +00:00
dsl
eceb7dddfb Don't create targets if dependant files marked .OPTIONAL are missing. 2003-11-14 22:32:44 +00:00
matt
fefcf7d025 s/awk/${AWK}/ 2003-11-14 05:25:59 +00:00
dsl
7a7ad1c63b Look for siginfo in the correct place - otherwise kdump is rebuilt all the time. 2003-11-13 13:07:01 +00:00
matt
9bd74136be Use envariable AWK 2003-11-13 05:52:12 +00:00
wiz
d581e50802 Convert to mdoc. 2003-11-12 12:33:13 +00:00
wiz
234b8c45e9 Sort sections and other fixes. 2003-11-11 13:48:50 +00:00
wiz
6b3137c450 Bump date for last changes; remove duplicate "the"; mark up NULL. 2003-11-11 13:41:37 +00:00
dsl
60dd40c33a Don't rely on mmap giving a NUL terminated buffer.
Let '--' be used to separate options to mkdep from those to cc.
2003-11-11 10:55:24 +00:00
ross
3d7196f4d4 Simplify set(). No functional change. 2003-11-10 21:40:22 +00:00
ross
714ccc9c51 Refix last delta's string copying edits 2003-11-10 21:37:36 +00:00
dsl
c934ce564a Fix continuation line handling. 2003-11-10 18:43:15 +00:00
dsl
cffe183eef Add the following options with a view to using 'cc -MD' to automatically
create dependency files:
	-d	process xxx.d files to generate .depend (don't run ${CC})
	-o	add .OPTIONAL: <headers> to output file
	-q	don't print warnins for missing files (with -d)
	-s suf	list of suffixes to replace ".o"
The -s suf should allow all the 'afterdepend' stuff to be killed.
(christos thought this might be a good idea...)
2003-11-10 17:56:38 +00:00
christos
04a20c38b9 don't emit #line directives. 2003-11-08 18:44:52 +00:00
christos
60d5c19922 ansify and knf 2003-11-08 18:12:01 +00:00
itojun
434c034061 safer realloc, from openbsd 2003-11-07 04:44:57 +00:00
itojun
bad71a3818 prevent integer underflow. freebsd rev 1.32. via openbsd 2003-11-07 03:58:06 +00:00
lukem
a2f8083d5d Add some subsections in the VARIABLE ASSIGNMENTS section.
In the "modifier description" list, show each modifier with the leading `:'.
Rationale: it's hard to search for modifiers without it, and we already do
the same thing in the -options and .makecommands lists.  I now find it much
easier to find the description for a modifier in the man page.
2003-11-07 01:01:46 +00:00
itojun
9a941e2d01 handle KAME scopeid hack for multicast addr. Matthias Drochner 2003-11-06 06:11:48 +00:00
thorpej
3d11ccec8c Clean up getopt() usage, removing unnecessary warnx()'s.
From Sergey Svishchev <svs at ropnet dot ru>.
2003-11-02 17:43:01 +00:00
thorpej
2dc0580879 Remove unnecessary warnx() in getopt default case.
From Sergey Svishchev <svs at ropnet dot ru>.
2003-11-02 17:40:41 +00:00
ross
405db788de Defensively rewrite a string moving loop.
Constify.
Check for an allocation error.
2003-10-31 01:25:54 +00:00
ross
a1a806781b Fix the broken "!" escape and "shell" (&-prompt) commands. These problems
were related to closed PR bin/21896, and to the 2003-3-29 code import.
2003-10-29 05:11:26 +00:00
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