John Baldwin
bd78cece5d
Change the kernel's ucred API as follows:
...
- crhold() returns a reference to the ucred whose refcount it bumps.
- crcopy() now simply copies the credentials from one credential to
another and has no return value.
- a new crshared() primitive is added which returns true if a ucred's
refcount is > 1 and false (0) otherwise.
2001-10-11 23:38:17 +00:00
John Baldwin
698166ca55
Whitespace fixes.
2001-10-11 22:49:27 +00:00
John Baldwin
6a90c862d3
Rework some code to be a bit simpler by inverting a few tests and using
...
else clauses instead of goto's.
2001-10-11 22:48:37 +00:00
Matt Jacob
5aa8fe17f8
Fix declaration disagreement.
2001-10-11 22:02:14 +00:00
Bruce A. Mah
6af023343d
New release note: isp(4) Qlogic 2300 support. For some reason this didn't
...
get committed along with its accompanying hardware note entry.
2001-10-11 21:48:35 +00:00
Matt Jacob
cbedf1aa6f
Remove the hiding of some prototype declarations.
2001-10-11 21:48:02 +00:00
Matt Jacob
abafa9b9aa
remove unused variable declaration
2001-10-11 21:47:27 +00:00
David E. O'Brien
14a4ecde9e
We use proc_rwmem (with the correct number of args) rather than procfs_domem
...
in the new world order or procfs.
Submitted by: des
2001-10-11 21:17:31 +00:00
Jonathan Lemon
d2b4566aa6
Fix the ``WARNING: Driver mistake: repeat make_dev'', caused by using
...
the wrong index variable within a loop. I have no idea how this managed
to work on my test box.
Spotted by: fenner
2001-10-11 18:39:05 +00:00
Matt Jacob
458c32f2e8
Note that PROCFS is mandatory at this time- until we fix the
...
ptrace code to not call things directly from procfs we can't
very well have procfs be a module.
2001-10-11 18:36:41 +00:00
John Baldwin
fa78c35ad2
Oops, these already included sys/lock.h, they just did so after
...
sys/mutex.h which is too late.
2001-10-11 18:25:57 +00:00
John Baldwin
61d80e90a9
Add missing includes of sys/ktr.h.
2001-10-11 17:53:43 +00:00
John Baldwin
7106ca0d1a
Add missing includes of sys/lock.h.
2001-10-11 17:52:20 +00:00
Mike Barcroft
43e13bf58f
Note that strncmp() will not compare characters after a NUL character.
...
Add a missing word. Bump document date.
Inspired by: IEEE Std 1003.1-200x (Draft 7)
MFC after: 3 days
2001-10-11 17:02:44 +00:00
Mike Barcroft
a9227c40eb
Clarify that strnstr() will stop searching after in encounters a NUL
...
character. Bump document date. Add a missing comma.
2001-10-11 15:49:06 +00:00
Bruce A. Mah
56ccbf72ac
Move two misplaced release notes to the correct location.
2001-10-11 15:38:48 +00:00
Bruce A. Mah
5b2f237ee0
MFCs noted: amdpm(4), new newfs(8) cylinder group defaults.
2001-10-11 15:37:26 +00:00
Ruslan Ermilov
506d9c18e9
- Bump document date for eaccess(2) addition.
...
- Mention ``eaccess'' in the NAME section.
- Use intro(2) terminology.
- Markup fixes.
Reviewed by: rwatson
2001-10-11 15:27:53 +00:00
Ruslan Ermilov
146db49f97
Fixed bugs from revision 1.27. Specifically:
...
- Restore the ability to look up network names in the networks(5)
database by passing getnetbyaddr(3) shifted network numbers,
but without duplicating the old bug that was fixed in 1.27 (we
now only shift netnums with standard netmasks). For example:
Before:
$ netstat -r
[...]
127.0.1/24 localhost UGSc 0 0 lo0
127.0.2/24 localhost UGSc 0 0 lo0
After:
$ netstat -r
[...]
subnet1/24 localhost UGSc 0 0 lo0
subnet2/24 localhost UGSc 0 0 lo0
- Only try to lookup with the forged netmask if the mask was not
explicitly specified, like it was before 1.27. For example:
Before:
$ netstat -r
net-44.ampr.org/25 localhost UGSc 0 0 lo0
net-44.ampr.org/25 localhost UGSc 0 0 lo0
After:
44.108.2/25 localhost UGSc 0 0 lo0
44.108.2.128/25 localhost UGSc 0 0 lo0
- Make sure to null-terminate the resulting string.
MFC after: 1 week
2001-10-11 14:30:42 +00:00
Doug Rabson
65601f6da8
Fix typo in comment.
2001-10-11 13:47:20 +00:00
Doug Rabson
47806f084a
Implement MCOUNT hook for assembler. Probably doesn't work right.
2001-10-11 13:35:31 +00:00
Doug Rabson
b4cc6db2df
Implement mcount trampoline (untested).
2001-10-11 13:31:55 +00:00
Doug Rabson
3749c9e54d
Change to track the new calling convention for execve. This version only
...
needs one line of assembler to initialise gp.
2001-10-11 12:33:05 +00:00
Doug Rabson
f334c8bff7
* Change the calling convention for execve so that it conforms to normal
...
C calling conventions. This allows crt1.c to be written nearly without
any inline assembler.
* Initialise cpu_model[] so that the hw.model sysctl works properly.
2001-10-11 12:31:50 +00:00
Dima Dorfman
80037d24bb
Add missing space.
2001-10-11 12:18:14 +00:00
Yaroslav Tykhiy
397fa0d94b
Add missing section number to a cross-reference to login(1).
...
MFC after: 3 days
2001-10-11 11:29:37 +00:00
Maxim Sobolev
77b90d2a0e
Make `-t' flag in pkg_*(1) tools actually working.
...
PR: 30843
Submitted by: Vladimir B. Grebenschikov <vova@express.ru>
MFC after: 2 weeks
2001-10-11 11:29:12 +00:00
Crist J. Clark
4479e72cc6
Documentation nitpick. IPFIREWALL_VERBOSE logging really has nothing
...
to do with "dropped packets." Any packets matching rules with the
'log' directive are logged regardless of the action, drop, pass,
divert, pipe, etc.
MFC after: 1 day
2001-10-11 11:21:18 +00:00
Yaroslav Tykhiy
dc72bf81a8
Fix the phrase about "both files", which must be left
...
from login(3). This page, logwtmp(3), speaks of only
one file -- wtmp(5).
MFC after: 1 week
2001-10-11 11:02:50 +00:00
Peter Wemm
9e3b3d75f0
Update comments regarding the transient nature of k_kproc and u_md
...
in struct user.
2001-10-11 08:15:16 +00:00
Michael Reifenberger
91a701cd13
Fix SysV Semaphore Handling.
...
Updated by peter following KSE and Giant pushdown.
I've running with this patch for two week with no ill side effects.
PR: kern/12014: Fix SysV Semaphore handling
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
2001-10-11 08:15:14 +00:00
Jonathan Lemon
ffb5a10458
Move device nodes into a /dev/net/ directory, to avoid conflict with
...
existing devices (e.g.: tunX). This may need a little more thought.
Create a /dev/netX alias for devices. net0 is reserved.
Allow wiring of net aliases in /boot/device.hints of the form:
hint.net.1.dev="lo0"
hint.net.12.ether="00:a0:c9:c9:9d:63"
2001-10-11 05:54:39 +00:00
Warner Losh
7549e3fe46
takashi shibagaki-san posted a similar patch to nomads. It seems that
...
more laptops work w/o the shutdown code than with it on reboot. So
let's disable it for a while.
2001-10-11 05:41:27 +00:00
Jonathan Lemon
cfeff1b693
Set if_type and if_addrlen before calling if_attach(), so the values are
...
available for the routine to use.
2001-10-11 05:37:59 +00:00
Warner Losh
f3bfc73757
Use the NetBSD init code for the TOPIC parts as a more complete basis
...
for initializing the parts. Since I don't have any of these parts in
any of my working laptops, I'm committing this to allow people to test
it. Will MFC when I receive reports of it working.
2001-10-11 05:37:32 +00:00
Paul Saab
cbc89bfbfe
Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader
...
tunable.
Reviewed by: peter
MFC after: 2 weeks
2001-10-10 23:06:54 +00:00
John Baldwin
f21fc12736
Add a temporary hack that will go away with the ucred API update to bzero
...
the duplicated mutex before initializing it to avoid triggering the check
for init'ing an already initialized mutex.
2001-10-10 20:45:40 +00:00
John Baldwin
6a40eccec3
Malloc mutexes pre-zero'd as random garbage (including 0xdeadcode) my
...
trigget the check to make sure we don't initalize a mutex twice.
2001-10-10 20:43:50 +00:00
John Baldwin
19d1491b60
Remove references to nfsiod and nfs_client_flags now that they are
...
obsolete.
Submitted by: Gordon Tetlow <gordont@gnf.org>
2001-10-10 20:36:51 +00:00
David E. O'Brien
e0770023cc
Shared libraries from 4.4-FreeBSD needed for proper binary compatibility.
2001-10-10 20:33:20 +00:00
Doug Rabson
e913ca22e2
Move setregs() out from under the PROC_LOCK so that it can use functions
...
list suword() which may trap.
2001-10-10 20:04:57 +00:00
Archie Cobbs
6628011155
Fix bug that cheated hook names out of the last 2 bytes.
...
MFC after: 3 days
2001-10-10 19:58:11 +00:00
Archie Cobbs
129bc89568
Let "raw" mean IPPROTO_RAW instead of IPPROTO_IP.
...
Noticed by: jdp
MFC after: 3 days
2001-10-10 19:51:13 +00:00
Peter Wemm
a4476fcc22
Add an ia64 configuration. This is not likely to be optimal, but does
...
compile and seems to work. We should run configure after everything
else is self hosting to test the speeds of the various options.
2001-10-10 19:07:31 +00:00
Archie Cobbs
f3ca697239
Update reference URL.
...
MFC after: 3 days
2001-10-10 18:34:28 +00:00
Orion Hodson
9b6a5708db
use pcm_getbuffersize()
2001-10-10 17:56:35 +00:00
Luigi Rizzo
ce28e3e9fe
Add a -d flag to show deltas as opposed to cumulative counters
...
in interface statistics. Most useful when used with the -w flag e.g.
ns -i -w 1 -d
2001-10-10 17:52:04 +00:00
Bruce Evans
6eabd84580
Compensate for "Compensate for header dethreading" by backing it out.
2001-10-10 17:48:44 +00:00
David E. O'Brien
260a117141
Fix tabbing damage in last commit.
2001-10-10 17:26:27 +00:00
Ruslan Ermilov
6686600758
-r is implied with -B.
2001-10-10 16:26:56 +00:00