Commit Graph

12287 Commits

Author SHA1 Message Date
phk
b744a1f417 Don't use %r, we havn't got it anymore.
Submitted by: bde
1996-01-25 07:15:40 +00:00
peter
eb3b1f018c This time, really make the procfs work when reading stuff from the UPAGES.
This is a really ugly bandaid on the problem, but it works well enough for
'ps -u' to start working again.  The problem was caused by the user
address space shrinking by a little bit and the UPAGES being "cast off" to
become a seperate entity rather than being at the top of the process's
vmspace.  That optimization was part of John's most recent VM speedups.

Now, rather than decoding the VM space, it merely ensures the pages are
in core and accesses them the same way the ptrace(PT_READ_U..) code does,
ie: off the p->p_addr pointer.
1996-01-25 06:05:38 +00:00
asami
d553122c89 Added Hidetoshi Shimokawa (simokawa@sat.t.u-tokyo.ac.jp). He is the
administrator of the Japanese mail exploder.
1996-01-25 05:35:31 +00:00
bde
aaffa65628 Fixed spelling of s_namlen so that this compiles again. 1996-01-25 00:45:37 +00:00
bde
bdbbbadb36 Restored newline at the end of panic messages. 1996-01-25 00:17:22 +00:00
ache
7c3532d583 Localize it. 1996-01-24 22:50:24 +00:00
ache
0ed53cb0c5 Use two-letters abbrev. for weekdays
Change months form
1996-01-24 22:49:33 +00:00
joerg
a19908742a Create symlinks for the MD5 libcrypt's in the bindist.
Jordan, this and my previous commit to lib/Makefile should
re-establish the libcrypt for our releases now. :-)

Well, not sure, perhaps init(8) is linked against the wrong libcrypt
in the bindist. :-(
1996-01-24 21:42:37 +00:00
joerg
abda50783b Build libscrypt in addition to libdescrypt if RELEASEDIR is set.
Releases do need both libraries (they go into different distributions).
1996-01-24 21:32:46 +00:00
phk
e7b9c377f8 Use new printf features rather than local kludges. 1996-01-24 21:12:23 +00:00
phk
defff6cc5b Remove %r hack, we have vprintf() now.
Add %D for "dumping" data.  Good for ethernet/MAC addresses and such.
Handle 1 < radix < 37.
1996-01-24 20:56:20 +00:00
phk
b9b02a56e8 Extend to handle all radix < 37 1996-01-24 20:51:26 +00:00
wollman
18835fb2f0 Fix memory leak in case of adding a host route on top of another one.
Pointed-out-by:  Bill Fenner <fenner@parc.xerox.com>
1996-01-24 20:27:19 +00:00
nate
b3ab00ce02 Bring in the man page additions for PT_ATTACH/DETACH|GET/SET_REGS that
were deleted out after the initial import now that Peter's code has
implemented them in -current.
1996-01-24 20:17:17 +00:00
wollman
d49cf7fbf1 Disable $Log$ 1996-01-24 20:01:27 +00:00
peter
be43fa0648 Attempt to fix the procfs LKM after making some of the procfs
code shared with ptrace and "standard" in the config.
1996-01-24 19:34:49 +00:00
mpp
35fc06f05c Add a check to prevent a computation from underflowing and causing
a panic due to an attaempt to allocate a buffer for a terabyte or
so of data when an attempt is made to create sparse data (e.g.
a holey file) more than 1 block past the end of the file.

Note:  some other areas of this code need to be looked at,
since they might cause problems when the file size exceeds 2GB,
due to storing results in ints when the computations are being
done with quad sized variables.

Reviewed by:	bde
1996-01-24 18:52:18 +00:00
peter
945d0db76f Add commands for ptrace get/set registers.. (Same numbers as NetBSD) 1996-01-24 18:51:48 +00:00
peter
8e4035cf40 procfs_machdep.c is now shared with ptrace as well. It is now no longer
optional.
1996-01-24 18:47:58 +00:00
peter
60f6ecc87d procfs_{mem|regs|fpregs}.c are now completely shared with ptrace(),
and are no longer optional.  This cuts down some code duplication.
1996-01-24 18:44:42 +00:00
peter
7ce7970731 Major fixes for procfs..
Implement a "variable" directory structure. Files that do not make
sense for the given process do not "appear" and cannot be opened.
For example, "system" processes do not have "file", "regs" or "fpregs",
because they do not have a user area.

"attempt" to fill in the user area of a given process when it is being
accessed via /proc/pid/mem (the user struct is just after
VM_MAXUSER_ADDRESS in the process address space.)

Dont do IO to the U area while it's swapped, hold it in place if possible.

Lock off access to the "ctl" file if it's done a setuid like the other
pseudo-files in there.
1996-01-24 18:41:41 +00:00
peter
372aa68f42 Major fixes for ptrace()...
PT_ATTACH/PT_DETACH implemented now and fully operational.
PT_{GET|SET}{REGS|FPREFS} implemented now, using code shared with procfs
PT_{READ|WRITE}_{I|D} now uses code shared with procfs
ptrace opcodes now fully permission checked, including ownerships.
doing an operation to the u-area on a swapped process should no longer
panic.
running gdb as root works for me now, where it didn't before.
general cleanup..

Note, that this has some tightening of permissions/access checks etc.
Some of these may be going too far..  In particular, the "owner" of the
traced process is enforced.  The process that created or attached to
the traced process is now the only one that can "do" things to it.
1996-01-24 18:29:00 +00:00
peter
021011c8f8 proc.h: Add PHOLD()/PRELE() macros to ensure the U area is not swapped
while doing ptrace/procfs in it.
ptrace.h: uncomment PT_ATTACH/PT_DETACH, I am committing code to do this.
1996-01-24 18:11:23 +00:00
ache
5b094858b2 German LC_TIME
Submitted by: joerg
1996-01-24 11:30:26 +00:00
wosch
1fef0f123f man.1 depend on man.man 1996-01-24 00:22:27 +00:00
wosch
0fcfb3b175 manpath.1 depend on manpath.man 1996-01-24 00:18:29 +00:00
wosch
783b341893 add a manpage 1996-01-24 00:11:58 +00:00
wosch
625f6e5911 add a manpage
check for  argument 'path'
1996-01-23 23:59:36 +00:00
wosch
e7f0ee9940 install manpage 1996-01-23 23:41:50 +00:00
wosch
c9032f9a67 note in bugs section: madvise not yet implemented 1996-01-23 23:33:55 +00:00
joerg
af65cb03e8 Hide the probe warnings behind `bootverbose'. 1996-01-23 22:55:08 +00:00
se
9516aa2caf Make PCI interrupt handlers return void like everybody else does.
Reviewed by:	davidg
1996-01-23 21:48:28 +00:00
wollman
1d9e7dac5c Spelling error: Busting -> Bursting. 1996-01-23 21:31:51 +00:00
joerg
6af0a2b5ef `-w' was actually a flag, not an option... 1996-01-23 21:27:39 +00:00
phk
5a1d479ab0 Remove some now unused printfoids. 1996-01-23 21:17:59 +00:00
joerg
30e801a179 Add a hint that the -w flag to catman(1) is actually the command
wakewhatis(1) for us.

Closes PR # docs/966

Submitted by:	obrien@cs.ucdavis.edu (David E. O'Brien)
1996-01-23 21:09:39 +00:00
joerg
694c3b89fa Add an additional warning that a "dangerously dedicated" disk cannot have
a boot selector in sector 0.

Closes PR # conf/963: Using the...

Submitted by:	muir@idiom.com (David Muir Sharnoff)
1996-01-23 21:05:22 +00:00
wollman
7b8816e057 Got the sense of the L1 cache enabled test wrong; fixed. 1996-01-23 20:36:49 +00:00
wollman
5de35f4d42 Add support for dumping the configuration of the Intel
82371FB PCI ISA IDE Xcellerator (sic) chip.  The IDE function
will not be done until Stefan tells me how to access it.
1996-01-23 20:21:24 +00:00
mpp
3539397c32 Add a missing "chmod 755 /usr/include/ufs" when copies of the include
files are installed instead of symlinks.
1996-01-23 15:56:43 +00:00
bde
551dbd40f2 Search section 9. 1996-01-23 14:03:26 +00:00
mpp
7e3b21a299 Merged changes to resolve conflicts with file 3.19 import. 1996-01-23 12:40:36 +00:00
mpp
bed6c740ce This commit was generated by cvs2svn to compensate for changes in r13584,
which included commits to RCS files with non-trunk default branches.
1996-01-23 12:29:07 +00:00
mpp
c335a06568 Upgrade to file version 3.19. 1996-01-23 12:29:07 +00:00
pst
63156ffa52 Add dhcp aliases for bootp services 1996-01-23 11:14:41 +00:00
pst
94aa183d80 Fix getif() to work under 4.3bsd and later 1996-01-23 09:44:45 +00:00
fenner
ef1b06ef29 First piece of fixing ppp/proxy arp problem:
If an attempt to add a route fails because an "ARP table" entry is in
the way, remove the ARP entry and retry the add.

Reviewed by:	nate
1996-01-23 05:15:30 +00:00
dg
4332d58d94 Simplified savectx() a little and fixed a bug that caused it to return
garbage in the child process rather than "1" like it is supposed to.

Reviewed by:	bde
1996-01-23 02:39:24 +00:00
pst
94f23f6884 Remove bootpgw 1996-01-23 02:24:03 +00:00
pst
87ff188ec6 Disconnect bootpgw 1996-01-23 02:23:20 +00:00