thorpej
4a23efc7bc
Fix botch in netbsd-1-2 merge (multiple inclusion of <sys/tty.h>),
...
pointed out by Jonathan Stone <jonathan@DSG.Standford.EDU>.
1996-10-10 00:27:41 +00:00
thorpej
f2e79979ad
Merge the netbsd-1-2 branch back into the mainline.
1996-10-09 00:59:15 +00:00
mycroft
02ee12e4ba
Use PHOLD() and PRELE() rather than frobbing p_holdcnt directly.
1996-10-09 00:04:39 +00:00
cgd
1878cacd45
KNF, de-static the functions that were static (so they'll show up
...
in ddb, etc.)
1996-10-08 03:40:40 +00:00
cgd
6ab18a1959
don't include <machine/exec.h> explicitly. No other changes needed, since
...
<sys/exec.h> was already being included.
1996-10-07 21:43:02 +00:00
cgd
cd3ab82ec2
clean up a comment added in the last commit
1996-10-07 18:29:24 +00:00
cgd
5d4cf83257
when loading interpreter: check its vnode type, check its mount point
...
for NOEXEC and NOSUID, and make sure the interpreter file is executable.
The mount point checks are done because, even though the interpreter
is not the program being 'executed', code from the interpreter is being
executed, and so the mount point's flags should be respected.
1996-10-07 18:24:48 +00:00
scottr
d2be4a69c2
Expand tab in copyright message; it loses on some consoles.
1996-10-05 06:32:43 +00:00
ws
2da166f660
Fix p_nice vs. NZERO code.
...
Change NZERO to 20 to always make p_nice positive.
On Christos' suggestion make p_nice explicitly u_char.
1996-10-02 18:04:56 +00:00
cgd
cc06b3f10f
Remove the implicit inclusion of EXEC_ELF32 when COMPAT_LINUX and/or
...
COMPAT_SVR4 is included.
1996-10-02 05:30:29 +00:00
cgd
ccd26363f6
allow a.out executable support to be optional (conditioned on EXEC_AOUT),
...
and shell script support to be optional (conditioned on EXEC_SCRIPT).
Remove the implicit inclusion of EXEC_ECOFF when COMPAT_OSF1 and/or
COMPAT_ULTRIX is included, and of EXEC_ELF32 when COMPAT_LINUX and/or
COMPAT_SVR4 is included.
1996-10-02 05:29:29 +00:00
cgd
60b9a20b61
initialize vnode_free_list and mountlist at compile time with the new
...
queue.h list/queue head initializer macros. mountlist was converted so
that panics (or other reboots) early on in kernel startup don't cause
sys_sync() to croak. vnode_free_list was converted because it was nearby.
1996-10-01 22:49:11 +00:00
cgd
3b34cba879
exec vnode locking protocol changes: in a nutshell, don't keep vnodes
...
locked for any longer than we have to.
1996-09-30 23:18:43 +00:00
cgd
6f5b5cefc7
make the check_header and load_file functions static
1996-09-30 23:02:14 +00:00
ws
0d59d2eb20
Enter new KGDB on panic just like other kernel debuggers
1996-09-30 17:32:01 +00:00
cgd
fea9aa2096
clean up a comment (in code derived from the a.out code, where i cleaned
...
up the comment earlier).
1996-09-27 03:38:27 +00:00
cgd
2f42e5b8ed
fix some typos and clean up some comments.
1996-09-26 23:34:46 +00:00
cgd
0e097578a2
add and use a machine-dependent header, which currently defines some
...
macros to use to remove #ifdefs from the machine ID case check.
Eventually, these headers will contain other information, e.g.
machine-dependent relocation information, etc.
1996-09-26 21:50:55 +00:00
cgd
79bd41b179
add support and reorganize for 64-bit ELF, included by EXEC_ELF64
...
option. (Also, make EXEC_ELF32 option a way to explicitly include
32-bit ELF support.)
1996-09-26 20:51:03 +00:00
christos
3f15a06497
Recognize %.2x as %02x
1996-09-25 21:03:06 +00:00
cgd
80c82b8766
rename exec_elf.c to exec_elf32.c, since it execs 32-bit ELF. exec_elf32.c
...
was copied from exec_elf.c on the CVS server to keep the logs intact.
1996-09-20 22:33:23 +00:00
jtc
16fe807b60
renamed sys_getlogin to sys___getlogin. required by libc namespace conventions
1996-09-19 04:52:12 +00:00
thorpej
0d3a57ea3f
Add COMPAT_M68K4K to the exec switch.
1996-09-10 22:05:03 +00:00
mycroft
7cbc74f45c
Use INFTIM, not -1.
1996-09-07 21:47:23 +00:00
mycroft
1449e67e30
Modify poll(2) prototype.
1996-09-07 14:20:09 +00:00
mycroft
07d2eae876
Regen.
1996-09-07 14:18:04 +00:00
mycroft
cdd2b02b50
Modify poll(2) prototype.
1996-09-07 14:16:42 +00:00
mycroft
264dd4757c
Regen.
1996-09-07 12:56:49 +00:00
mycroft
2bc736661a
Implement poll(2).
1996-09-07 12:40:22 +00:00
mycroft
59f71c45fc
Clean up sys_select() slightly.
1996-09-05 15:32:52 +00:00
mycroft
af113f915d
Use SET(), CLR(), ISSET().
1996-09-05 15:31:40 +00:00
mycroft
b3eac79b64
tty stop functions really should return void, not int, and certainly not both.
1996-09-02 06:43:16 +00:00
christos
da17295d91
Calling shmdt(2) before calling shmat(2) would crash the system because
...
p->p_vmspace->vm_shm would be NULL. Protected the rest of the cases where
that might happen too. This was the reason why sunxdoom would panic the
system in SVR4 emulation.
1996-09-01 22:53:06 +00:00
mycroft
de1c962824
Don't core dump if ruid != euid or rgid != egid.
1996-09-01 01:56:10 +00:00
cgd
f8ed933394
implement realloc(), just like the user-land version, except it takes
...
"type" and "flags" arguments a la kernel malloc().
1996-08-27 20:01:42 +00:00
cgd
d7083cda8d
update so that SYSCALL_DEBUG works again. s/nosys/sys_nosys/g.
...
(It must not have been used for a long time!)
1996-08-20 22:00:36 +00:00
explorer
a9ef8aef84
This fixes a nasty little bug where traceroute (and other raw-ip sending
...
programs which attach their own header) can crash the machine. The problem
in this case was:
a variable "space" was set to the total data to copy,
len was used to remember how much to copy in this chunk (mbuf),
in one case, len = min(MCLBYTES - max_hdr, resid) but
size -= MCLBYTES;
instead of
size -= len;
Note that userland programs can still crash the machine by providing
bogus data in the ip->ip_len field I suspect. I haven't verified this,
but will soon be doing so and applying a fix of some sort. Probably
clamping the ip->ip_len value to the true packet size will be ok.
1996-08-14 05:53:18 +00:00
explorer
1177a1fc69
formatting fix only
1996-08-14 05:43:35 +00:00
explorer
13659c5c84
spelling error only
1996-08-14 05:43:19 +00:00
thorpej
d719cb7901
Inside some DIAGNOSTIC code, cast some pointer arithmetic results
...
to long to quiet the compiler.
1996-08-13 23:25:10 +00:00
mrg
cd658e4447
oops, need to copyinstr() here. how come it worked anyway?
1996-08-11 04:05:33 +00:00
mrg
72bad48e62
implement RB_STRING, derived from SunOS, via compat_sunos.
1996-08-10 00:23:14 +00:00
mrg
5abbf990f3
Change reboot(2) to take two arguments: bootopt like normal and also
...
a boot string for firmware that can do this, such as the SPARC and
the sun3 models. It is currently silently ignored on all other
hardware now, however. The MD function "boot()" has been changed to
also take a char *.
1996-08-09 10:30:23 +00:00
thorpej
3946240709
Fix unititialized variable warning. Pointed out by Aaron Brown.
1996-07-25 20:41:48 +00:00
abrown
062b2cdd6b
Fix unused variable warning for an "int i" left over from the old disk
...
statistics code.
1996-07-24 16:13:04 +00:00
thorpej
aba7675464
In extent_alloc_subregion(), don't adjust the initial boundary check
...
value if we're not concerned with boundary checking. Avoids a stupid
infinite loop.
1996-07-23 23:09:10 +00:00
explorer
67b1de765f
Add compile-time and run-time control over automatic niceing
1996-07-17 21:54:04 +00:00
thorpej
0462d3063c
Remove old-style disk instrumentation code.
1996-07-12 22:00:42 +00:00
jtc
f9a9b2e372
Used signed instead of unsigned longs for sec and usec variables to
...
handle cases which would otherwise yeild wildly wrong results.
1996-07-11 00:09:29 +00:00
cgd
1c5ea3c014
print difference between pointers with %ld, so that -Wformat works
...
on the Alpha and for consistency. Also, other minor formatting cleanups.
1996-07-10 18:15:22 +00:00