Commit Graph

7161 Commits

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