Commit Graph

6324 Commits

Author SHA1 Message Date
manu 6492e2171f Added support for dumping mach messages in ktrace/kdump. While we are
there, KNFify a few functions.
2002-12-09 21:29:20 +00:00
scw 4df9ab06e4 Add evbppc. 2002-12-09 13:00:05 +00:00
gson 936f6a1c3c When JobExec() was called from JobRestartJobs() via JobRestart(), it
executed the make job with sigprocmask(SIG_BLOCK) in effect for a
number of signals including SIGCHLD.  This caused recursive submakes
of the make process in question not to receive SIGCHLDs when their
jobs exited.  This was a second, independent cause of bin/18895 in
addition to the race condition already fixed.  Fixed by unblocking all
signals before executing the job.
2002-12-09 01:23:53 +00:00
perry 43e55ca474 add qsubst
re-sort and re-format SUBDIRs
2002-12-08 21:50:36 +00:00
perry 101d2f766f Some KNF, via indent(1) and hand work. Still needs a lot of cleanup. 2002-12-08 21:29:27 +00:00
mrg e7e34e98bb fix an error message 2002-12-08 10:49:22 +00:00
mrg 18c97a1496 remove some #if 0 debug code 2002-12-08 10:49:03 +00:00
mrg be9dc1869d fix the description for "-p" to match reality, new text provided in PR#18949. 2002-12-08 10:00:12 +00:00
thorpej 8fb0e9f9e9 Include <string.h> for prototypes. 2002-12-06 03:27:39 +00:00
thorpej 7b3d93e318 Avoid a strict alias warning. 2002-12-06 03:24:42 +00:00
thorpej 29d4b591ea Avoid strict alias warning. 2002-12-06 03:21:43 +00:00
thorpej 9f3eaa5002 Remove extra args from a printf. 2002-12-06 03:13:14 +00:00
thorpej f393397bd6 Avoid confict with reserved identifier "log". 2002-12-06 03:09:28 +00:00
thorpej e0e584cdfa Avoid a trigraph, and fix printf formats. 2002-12-06 03:05:04 +00:00
thorpej 22887c3c29 Avoid strict alias warning. 2002-12-06 02:57:30 +00:00
thorpej 8d965a0542 Need <stdlib.h> for exit() prototype. 2002-12-06 02:54:19 +00:00
scw ffeb337cd7 Lst exp -> Lst explist, to avoid warnings about gcc-current's
builtin exp() function.
2002-12-05 15:56:52 +00:00
fvdl 286cf86961 Get the right formats for x86_64. 2002-12-05 01:38:26 +00:00
junyoung d293fed282 Remove KNF from TODO list. 2002-12-02 14:08:17 +00:00
junyoung 2b65911602 KNF. 2002-12-02 14:05:11 +00:00
sjg ecdc5fc7ad Parse_DoVar: don't free cp until we are done with it!
Reviewed by: hannken
2002-12-01 05:53:30 +00:00
lukem d348d3d723 tweaks for fparseln(3) move from libutil to libc:
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
2002-11-30 03:10:53 +00:00
wiz 287a8f7fb0 Sync usage with man page (and actual options). 2002-11-29 19:15:41 +00:00
wiz 75c991f87d Bump date for -N; sort options. 2002-11-29 19:14:00 +00:00
wiz 80dfe4a842 Bump date for .PATH description; begin sentence with upper case letter;
new sentence, new line.
2002-11-29 19:10:25 +00:00
jdolecek d51c5abbd9 signame(): if sig == 0, return name " 0", so that the result would be
printed as:
   CALL  kill(0x1e4, SIG 0)
rathern than previous
   CALL  kill(0x1e4, SIG*unknown 0*)
2002-11-28 16:18:49 +00:00
atatat a19ac80340 Add -N which inhibits translation of system calls numbers into names. 2002-11-27 21:26:57 +00:00
tron 21f56aa969 Remove the statically initialized "sigaction" structure completely because
such usage is broken. Problem pointed out by Klaus Klein on
"sources-changes@netbsd.org".
2002-11-27 16:47:13 +00:00
tron f58cb59ba6 Add braces in a statically initialized "sigaction" structure to fix a
build problem after siginfo(2) has been added.
2002-11-27 14:44:46 +00:00
sjg 78610dd53d Whenever we update .PATH, set the variable ${.PATH} to reflect the
search list that will be used.  Thus 'dot' and 'cur' will appear in
${.PATH} either at the start or end depending on .DOTLAST even though
they are not strictly in dirSearchPath.

When .CURDIR is assigned to - re-set the 'cur' Path.

Finally, when checking subdirs, look in 'dot' and 'cur' (first or last
depending on .DOTLAST) just as we do in other situations.
2002-11-26 06:12:59 +00:00
enami b3e831985f Call fcntl() on the right file descriptors. 2002-11-26 05:30:01 +00:00
christos c02b3bbdf4 Fixes from David Laight:
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentiation between nornal and 'posix special' builtins
- correct behaviour (posix) for errors on builtins and special builtins
- builtin printf and kill
- set -o debug (if compiled with DEBUG)
- cd src obj (as ksh - too useful to do without)
- unset -e name, remove non-readonly variable from export list.
  (so I could unset -e PS1 before running the test shell...)
2002-11-24 22:35:38 +00:00
thorpej 7d013a7ef5 Skip passing -$ to the preprocessor, for now. 2002-11-24 20:24:54 +00:00
simonb 7a17e24ac5 Remove pc532-only hacks to access wildly different interrupt accounting
now that interrupts are tracked with evcnt(9) on this port.
2002-11-22 13:30:34 +00:00
simonb ecf6315bd0 Include <machine/intr.h> to get "struct iv" (in pc532-specific code). 2002-11-21 01:39:15 +00:00
nathanw 7ec345ff22 In getuptime(), use kread() to get the current time as well as boottime,
instead of calling time(3).

This makes rate calculations of crash dumps sensible; in contrast,
subtracting the boot time of the crash dump from the current time of the
running system produces a not-very-meaningful number.
2002-11-18 03:17:24 +00:00
gson 96f1cc8289 Fixed race condition that would cause make -j to pause for five
seconds if a SIGCHLD arrived while make was not blocked in poll(),
by making the SIGCHLD handler write to a pipe included in the poll.
Avoided the need to implement a duplicate fix for the USE_SELECT case
by emulating poll() in terms of select() when USE_SELECT is defined.
Fixes bin/18895.
2002-11-16 22:22:23 +00:00
itojun 5f2d0b666f error handling on strdup failure 2002-11-16 15:59:26 +00:00
itojun d118467d1c use strlcpy 2002-11-16 13:45:10 +00:00
itojun 0cf92ab036 use strlcpy 2002-11-16 05:24:44 +00:00
itojun 9593086444 use strlcpy 2002-11-16 04:34:13 +00:00
itojun 8fcb6ec6c6 use strlcpy to ensure string termination 2002-11-16 04:31:15 +00:00
nathanw 83be8543f2 Add a _rtld_dlerror() function, since it it now needed by search.c,
and otherwise make the error routines look more like what's currently
in rtld.c (so *this* is where _rtld_error_message was hiding...).
2002-11-15 22:39:17 +00:00
manu bcffe04b31 Now properly display Mach traps 2002-11-15 19:58:05 +00:00
christos 67dc335c98 PR/18896: Jason Thorpe: C99 structure member initializers broken for arrays.
XXX: The checking done does not work, but the code passes.
2002-11-13 21:50:57 +00:00
kleink a4d0ca7ffd setlocale(LC_ALL, "") on startup. 2002-11-12 22:41:01 +00:00
tron 60f1df5f64 Don't include obsolete include file "rpc_com.h" any more. 2002-11-08 14:19:42 +00:00
enami 988be8626f - file ... instead of filename ...
- "An asterisk (``*'')" instead of "A (``*'')" to be more consistient with
  rest of this manpage.
- Fix typo; ``w'' instead of ``''.
- There is no section named Sockets.  There is only SOCKETS.
2002-11-07 13:52:04 +00:00
enami 62bf3a2b33 - fix section of this manpage; it's 1 not 8.
- use Nm "" instead of just Nm in SYNOPSIS.
2002-11-07 13:40:16 +00:00
mrg c7cd1b33d0 fix PR#18909, but not quite exactly the same as the patch provided. also,
check if the filesize causes a size_t overflow and if so, use the fallback
read/write loop method.
2002-11-04 12:04:23 +00:00