bde
0d09dc88d5
Fixed a style bug in previous commit (misformatted comment). Fixed
...
some nearby bugs (rotted and missing comments). Use similar wording
for describing broken options.
2004-03-30 07:01:56 +00:00
kuriyama
9b713c0d7f
Down to WARNS=2 for a while.
2004-03-30 06:16:41 +00:00
scottl
5cbc345b39
Catch all cases where bread() returns an error and a valid *bp, and release
...
the *bp.
Obtained from: DragonFlyBSD
2004-03-30 05:01:48 +00:00
gad
283e539306
Switch to using strtoul() for parsing a potential UID or GID, which gets
...
this to correctly handle UID's and GID's larger than 2147483647.
Noticed by: bde
MFC after: 1 week
2004-03-30 04:20:33 +00:00
vkashyap
8e955dcc90
Initial check-in of the device driver for 3ware's 9000 series
...
PATA/SATA RAID controllers. This driver is a SIM under CAM, and
so, behaves like a driver for a SCSI controller.
2004-03-30 03:46:00 +00:00
rwatson
b5754b5316
Prefer NULL to 0 when testing and assigning pointer values.
2004-03-30 02:16:25 +00:00
gad
463bc2f183
Bruce would really like the prototype for fmt() to be split across lines
...
this way (although I still think it "looks weird"...).
Requested by: bde
MFC after: 1 week
2004-03-30 02:02:40 +00:00
gad
7bd5799f72
Minor style fixes, mostly adding indent-protection on some comment-blocks.
...
Noticed by: bde
MFC after: 1 week
2004-03-30 01:59:22 +00:00
gad
ec3d9baab5
Replace pscomp() with a cleaner version, mostly written by bde (*).
...
This corrects a problem of lost-precision for `-r' (sort-by-CPU). Also,
for sort-by-CPU and sort-by-memory, any processes which have the same
value CPU or MEMORY are now sorted by TTY and then (if needed) by pid.
(* - I just added the NODEV checks, after doing some testing of my own)
Submitted by: bde
MFC after: 1 week
2004-03-30 01:45:23 +00:00
kuriyama
235cde4aca
Make libdisk WARNS=4 clean.
...
Glanced by: jhb
2004-03-30 01:39:00 +00:00
peter
7957bc47f6
Shorten some XXXKSE commentry
2004-03-29 22:46:54 +00:00
peter
5e91995e52
Kill some XXXKSE's. vnlru/syncer are single threaded.
2004-03-29 22:45:33 +00:00
peter
1f224a3d83
Clean up the stub fake vnode locking implemenations. The main reason this
...
stuff was here (NFS) was fixed by Alfred in November. The only remaining
consumer of the stub functions was umapfs, which is horribly horribly
broken. It has missed out on about the last 5 years worth of maintenence
that was done on nullfs (from which umapfs is derived). It needs major
work to bring it up to date with the vnode locking protocol. umapfs really
needs to find a caretaker to bring it into the 21st century.
Functions GC'ed:
vop_noislocked, vop_nolock, vop_nounlock, vop_sharedlock.
2004-03-29 22:41:21 +00:00
rwatson
8e41c82b83
Add per-softc locking to if_tun:
...
- Add tun_mtx to tun_softc. Annotate what is (and isn't) locked by it.
- Lock down tun_flags, tun_pid.
- In the output path, cache the value of tun_flags so it's consistent
when processing a particular packet rather than re-reading the field.
- In general, use unlocked reads for debugging.
- Annotate a couple of places where additional unlocked reads may be
possible.
- Annotate that tun_pid is used as a bug in tunopen().
if_tun is now largely MPSAFE, although questions remain about some of
the cdevsw fields and how they are synchronized.
2004-03-29 22:16:39 +00:00
tjr
8aa9f6fafe
Remove duplicate MLINK.
2004-03-29 21:46:52 +00:00
robert
887e0f772b
Bring these files closer to style(9) conformance by comparing a
...
dereferenced character pointer to '\0' instead of using the ! operator.
2004-03-29 21:15:41 +00:00
imp
314f26c8ec
Eliminate support for FreeBSD 3.x and earlier now that we're in the
...
glide path for the 5.x branch.
2004-03-29 21:10:05 +00:00
des
3f9f949de6
Fix the case where $ntpdate_hosts was not specified and /etc/ntp.conf
...
does not exist.
Submitted by: ru
2004-03-29 20:00:54 +00:00
hmp
21981a0b0e
Mdoc Police:
...
* Use .Fa instead of .Pa for function arguments.
* Utilize the .Po/.Pc commands for parenthesis
so the format is not ruined.
Inspired by: pjd's last commit to this file
2004-03-29 19:42:21 +00:00
peter
09ff2f9fe5
Finish tidying up a couple of leftovers from the KSTACK_PAGES stuff. Some
...
files still #included the opt_ file. powerpc hadn't been updated yet.
2004-03-29 19:38:05 +00:00
pjd
58c539faf0
Note that we can pass NULL as 4th argument for copystr() and copyinstr()
...
functions.
With little mdoc(7) help from: hmp
2004-03-29 19:23:45 +00:00
rwatson
1d1b2c7f35
Lock down if_tun global variables using a new mutex, tunmtx. As with
...
other pseudo-interfaces, break out tear-down of a softc into a
separate tun_destroy() function, and invoke that from the module
unloader. Hold tunmtx across manipulations of the global softc list.
2004-03-29 18:42:51 +00:00
dfr
f758b08c5a
If we change obj_rtld.path after initialising __progname, make sure we
...
change __progname to point at the new storage otherwise it ends up
pointing at freed memory which leads to confusing garbled error messages.
2004-03-29 18:37:37 +00:00
rwatson
b39ce8f898
Use a common return path for filt_soread() and filt_sowrite() to
...
simplify the impact of locking on these functions.
Submitted by: sam
Sponsored by: FreeBSD Foundation
2004-03-29 18:06:15 +00:00
rwatson
4edcdd352b
In sofree(), moving caching of 'head' from 'so->so_head' to later in
...
the function once it has been determined to be non-NULL to simplify
locking on an earlier return.
2004-03-29 17:57:43 +00:00
rwatson
f31d099747
If debug.mpsafenet, initialize UNIX domain socket timeouts as MPSAFE;
...
otherwise, assert Giant in the callouts.
2004-03-29 17:00:05 +00:00
mtm
a9677be93b
o Also check that the mutex type is not less than the minimum allowable value.
...
o Don't check attribute for NULL. It's the callers responsibility.
2004-03-29 13:57:55 +00:00
mtm
f4172a5e78
Make the minimum implementation of pthread_kill conform to the
...
functionality spelled out in SUSv3.
o Signal of 0 means do everything except send the signal
o Check that the signal is not invalid
o Check that the target thread is not dead/invalid
2004-03-29 13:56:04 +00:00
mtm
1f163908e4
o Don't explicitly check the thread for NULL. That is the caller's
...
responsibility.
o If a thread is not joinable, the correct return value is EINVAL.
2004-03-29 13:53:43 +00:00
mtm
319c9db836
o If a thread is marked as detached AND on the dead threads list
...
the correct return value is ESRCH.
o Don't check the attribute for NULL. It's the caller's responsibility.
o Make the bitwise comparison explicit.
2004-03-29 13:51:51 +00:00
nyan
af934bf968
Add a comment about time stamper.
...
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
2004-03-29 12:51:46 +00:00
mtm
e278045fda
If a condition variable is statically initialized don't return
...
an error. Return successfully without doing anything.
2004-03-29 11:24:02 +00:00
des
2de3c90500
This commit was generated by cvs2svn to compensate for changes in r127563,
...
which included commits to RCS files with non-trunk default branches.
2004-03-29 11:18:25 +00:00
des
46ece38451
Synch with NetBSD: avoid "unused parameter" warning.
2004-03-29 11:18:25 +00:00
tjr
2a53b4b598
Add directories under /usr/share/nls and /usr/local/share/nls
...
for the new UTF-8 locales.
Reminded by: ache
2004-03-29 11:07:35 +00:00
mtm
f48b8920dc
The thread suspend function now returns ETIMEDOUT, not EAGAIN.
2004-03-29 09:35:07 +00:00
pjd
b1d34c6743
Make fingerd(8) WARNS2 clean.
2004-03-29 09:29:51 +00:00
tjr
c52614f2e5
Oops; remove ko_KR.eucKR/LC_MONETARY -> ko_KR.UTF-8/LC_MONETARY symlink.
2004-03-29 09:03:14 +00:00
mtm
e5540ff230
o Remove more references to SIGTHR
...
o Remove clock resolution information left over from libc_r
2004-03-29 05:45:01 +00:00
gad
e706cf764f
Oops. Remove some ';'s in #defines added by a previous update.
...
Noticed by: bde
2004-03-29 03:03:28 +00:00
rwatson
7360350f89
Conditionally acquire Giant when entering the sockets layer via the
...
socket-specific system calls based on debug.mpsafenet, rather than
acquiring Giant unconditionally.
2004-03-29 02:21:56 +00:00
bms
3ac6131b81
MFi386: Use the BSD madvise() syscall implementation for Linux binary
...
emulation, instead of treating it as an unimplemented syscall.
Requested by: marcel
2004-03-29 02:19:43 +00:00
wpaul
163b236504
Add missing cprd_flags member to partial resource structure in
...
resource_var.h.
In kern_ndis.c:ndis_convert_res(), fill in the cprd_flags and
cprd_sharedisp fields as best we can.
In if_ndis.c:ndis_setmulti(), don't bother updating the multicast
filter if our multicast address list is empty.
Add some missing updates to ndis_var.h and ntoskrnl_var.h that I
forgot to check in when I added the KeDpc stuff.
2004-03-29 02:15:29 +00:00
kensmith
44a5d7ca16
MFi386: correctly calculate the top-of-stack when a kthread is created
...
with a larger kernel stack. Remove inclusion of opt_kstack_pages.h now
that it's unused.
Note: If anyone's toes got stepped on by me doing this let me know
privately please.
Approved by: rwatson (mentor)
2004-03-29 02:01:42 +00:00
rwatson
3b7dc3c3f7
Conditionally acquire Giant when entering the socket layer via file
...
descriptor operations based on debug.mpsafenet, rather than acquiring
Giant unconditionally.
2004-03-29 01:55:32 +00:00
tjr
e2c58ec1b8
Add a new LC_MONETARY data file for the ko_KR.UTF-8 locale instead of using
...
the ko_KR.eucKR version.
2004-03-29 01:53:31 +00:00
rwatson
52c072609b
When validating that the length sum in recvit(), we fail to release
...
Giant on an error. Add a Giant acquisition.
Reviewed by: sam, bms
2004-03-29 01:37:06 +00:00
tjr
0a3e12070f
Add a new LC_MONETARY data file for the ja_JP.UTF-8 locale instead of using
...
the ja_JP.eucJP version. Although the latter looks like plain ASCII,
it is actually JIS Roman, so it is not correct to treat it as UTF-8.
2004-03-29 01:29:13 +00:00
gad
14c427e33e
Have this source explicitly include <sys/proc.h>, since it references
...
values such as P_CONTROLT and PS_INMEM. But this still won't define
PID_MAX for us, since that is hidden inside of '#ifdef _KERNEL'.
Noticed by: bde
2004-03-29 01:27:13 +00:00
kensmith
356f4db5a0
MFi386: correctly calculate the top-of-stack when a kthread is created
...
with a larger kernel stack. Remove inclusion of opt_kstack_pages.h now
that it's unused.
Reviewed by: marcel
Approved by: rwatson (mentor)
2004-03-29 01:24:13 +00:00