Commit Graph

7133 Commits

Author SHA1 Message Date
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