Commit Graph

105913 Commits

Author SHA1 Message Date
thorpej
3c2d976305 Avoid strict alias warning. 2002-12-06 01:50:56 +00:00
thorpej
15edfc1544 Avoid confict with reserved identifier "expl". 2002-12-06 01:48:24 +00:00
thorpej
5759456a18 Avoid confict with reserved identifier "log". 2002-12-06 01:43:18 +00:00
thorpej
c87e2cf550 Avoid conflict with reserved identifier "exp". 2002-12-06 01:39:10 +00:00
thorpej
5da0736e3a Avoid strict alias warning. 2002-12-06 01:27:10 +00:00
lukem
e1af106002 remove unnecessary cruft after the recent etc/Makefile cleanup 2002-12-06 00:14:11 +00:00
christos
ef042d8e23 add a linux_rt_sigframe to support SA_SIGINFO, and use it when SA_SIGINFO
is requested. This appears to be how linuxthreads decides which signal handler
to use.
2002-12-06 00:02:59 +00:00
christos
c363ae66f1 add offsets for linux_rt_sigframe 2002-12-06 00:00:20 +00:00
christos
6b0fccd61c simplify 2002-12-06 00:00:04 +00:00
jonb
8a96157b87 While cleaning up other places that invoked $EDITOR, noticed that
this one had all the infrastructure of fork/exec/wait, like the
others, but called system instead of exec creating an extra PID
and associated memory usage during the edit.
2002-12-05 22:59:25 +00:00
jonb
e2fdabc65c Fix the way $EDITOR is started so the variable can have flags in addition
to the name of the binary to run.
2002-12-05 22:54:45 +00:00
manu
f0332ec923 In load_shared_file, do zero-fill uninitialized data segments that
explicitely request to be zero filled.
2002-12-05 22:48:53 +00:00
jonb
675b5ba3f5 swept through the tree with find and grep looking for EDITOR.
Cleaned up all broken occurances found.

Did not check crypto/dist. (filenames imply these are not for exec $EDITOR)
Did not fully check sh and ksh. (lost in twisty mazes of function calls
     and finally just assumed it was good)
and did not check gnu/dist/cvs (appears ok by testing with this commit)
2002-12-05 22:47:28 +00:00
jdolecek
851a5c50dd seems we don't need /usr/bin/strings in ramdisk 2002-12-05 19:37:04 +00:00
provos
fec70f4a84 typos; fgsch@olimpo.com.br 2002-12-05 19:33:39 +00:00
jdc
b055b9db77 Correct cross references. 2002-12-05 19:13:12 +00:00
fredette
0fee3368c3 Fixed a null pointer passed to printf(). 2002-12-05 18:05:33 +00:00
jdolecek
a32cc4158a seems like dreamcast distrib/ build needs GENERIC_MD kernel 2002-12-05 17:58:02 +00:00
jdolecek
6b5b4d2940 distrib/hpcsh appears to need the RAMDISK kernel for miniroot 2002-12-05 17:53:02 +00:00
junyoung
a2a55f2564 - FGPAT -> PAT, as documented in Intel manual.
- Feature flag 31 is "Signal Break on FERR" (SBF).
2002-12-05 17:25:26 +00:00
jdc
0bdde4e185 Add some (useful) debugging to wtouchln(). 2002-12-05 17:23:51 +00:00
jdc
ab39ef114a When copying a line from a window, only copy the changed part instead of
the whole line.
This fixes a bug when displaying displaying overlapping windows.
2002-12-05 17:22:13 +00:00
jdc
c5f3aee499 Mark lines on new windows unchanged.
Add window to __set_subwin() debug.
2002-12-05 17:14:34 +00:00
thorpej
4245ee1663 Wrap this file in "#ifndef _STANDALONE". 2002-12-05 17:12:06 +00:00
jdc
d899fbce8b Set LINES and COLS here so that __swflags() sets flags on the initial windows.
Remove no longer useful debug output.
2002-12-05 17:04:25 +00:00
wiz
247d6694f7 Handle links to absolute paths too. Closes my PR 19125. 2002-12-05 16:52:58 +00:00
wiz
90c017d88f Fix typo. 2002-12-05 16:52:07 +00:00
jdolecek
4c7e9f23da pipe_stat(): add S_IRUSR and S_IWUSR to mode; this is what Linux does,
and seems like generally sensible (more sensible than not doing so), so done
in generic code rather than compat glue only

Change proposed in PR kern/18767 by Emmanuel Dreyfus.
2002-12-05 16:30:55 +00:00
jdolecek
16e3e3cd55 Couple fork-bomb defense changes:
- leave 5 processes for root-only use, the previous value of 1
  was unsufficient to execute additional commands once logged, and
  perhaps also not enough to actually login remotely with recent (open)sshd
- protect the log of "proc: table full" with ratecheck(), so that
  the message is only logged once per 10 seconds; though syslogd normally
  doesn't pass the repeated messages through, this avoids flooding
  syslogd and potentially also screen/logs
- If the process hits either system limit of number of processes in system,
  or user's limit of same, force the process to sleep for 0.5 seconds
  before returning failure. This turns 2000 rampaging fork monsters into
  2000 harmlessly snoozing fork monsters.
  The sleep is intentionally uninterruptible by signals.

These are not intended as ultimate protection agains fork-bombs.
Determined attacker can eat CPU differently than via repeating
fork() calls. But this is good enough to help protect against
programming mistakes or simple-minded tests.

Based on FreeBSD kern_fork.c change in revision 1.132 by
Mike Silbersack <silby at FreeBSD org>

Change also discussed on tech-kern@NetBSD.org, thread
'Fork bomb protection patch'.
2002-12-05 16:24:46 +00:00
junyoung
72510c5d3b - Identify VIA C3 processors. Fix PR#19163.
- While here, make use of CPUID2STEPPING() macro.
2002-12-05 16:19:08 +00:00
scw
69cddf09e6 Avoid a strict-alias warning. 2002-12-05 16:03:42 +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
agc
ecc0017939 Cast appropriately so that this compiles on sparc, sparc64, macppc etc. 2002-12-05 12:22:37 +00:00
pooka
98539df1fe Recognize a few more CT5880 chips. Only cosmetic, does not
affect functionality.
2002-12-05 11:26:26 +00:00
jdolecek
661f8e80e2 Add NOLUNS|NOSYNC quirk for NEC CD-ROM DRIVE:222.
Change sent in PR kern/19286 by Dave Barnes.
2002-12-05 10:39:58 +00:00
yamt
172a847692 initialize uvm.aiodoned_proc. 2002-12-05 10:30:00 +00:00
jdolecek
4ed167f658 a bit of KNF - function type on separate line than function name, function
name on start of line
2002-12-05 10:01:56 +00:00
ichiro
fa14fafc16 add IEEE1394 configuration(Comment out) 2002-12-05 09:32:22 +00:00
ichiro
f11d642c88 make compile 2002-12-05 09:21:26 +00:00
simonb
f8cc054e04 Fix typo in a.out link set macros (s/ifdef/ifndef/). 2002-12-05 05:47:24 +00:00
junyoung
fd1f5e8f1b A bit speedup: in _rtld_load_object(), save the number of calls to
strcmp() by performing path name length comparison first. In the test
with Mozilla, the number was reduced to 1068 from 7182 (yes, we saved
6114 strcmp()!).
2002-12-05 04:56:56 +00:00
explorer
e578f0eb06 add newly added ieee1394 directory and file 2002-12-05 03:59:19 +00:00
simonb
699bf96665 Drop the _KERNEL test; these functions are needed for SMP and other ports
don't bother with a _KERNEL check.
2002-12-05 02:56:51 +00:00
fvdl
4d6d0b8806 Makefile for kernels and other additional things. Incomplete at
the moment.
2002-12-05 02:33:32 +00:00
itojun
7955954132 correct the use of sizeof() on memset(). sync w/kame 2002-12-05 02:07:03 +00:00
fvdl
cc2e1c4082 FIrst cut at INSTALL kernel. 2002-12-05 02:06:44 +00:00
fvdl
a4da65a9cc sysinst glue for x86_64. 2002-12-05 02:05:56 +00:00
fvdl
39970b9661 Bootfloppy glue for x86_64. 2002-12-05 02:04:09 +00:00
yamt
eef82bb71b fix a typo in previous.
PR 19278 from Ryo HAYASAKA.
2002-12-05 02:03:56 +00:00
fvdl
286cf86961 Get the right formats for x86_64. 2002-12-05 01:38:26 +00:00