Commit Graph

152227 Commits

Author SHA1 Message Date
thorpej
873293facc Make prop_number_t handle both signed and unsigned numbers. The *integer*
routines now take int64_t arguments, and new *unsigned_integer* routines
take uint64_t arguments.  See prop_number(3) for complete details.
2006-10-12 04:46:56 +00:00
thorpej
b5c9ebab95 Make this compile with -Wunused and handle the case where __predict_false()
is not defined (non-NetBSD environments).
2006-10-12 04:43:20 +00:00
thorpej
4c9ab4b0a8 _prop_object_fini(): Consume all of the arguments. 2006-10-12 04:41:51 +00:00
thorpej
1c717ab574 _prop_bool_free(): Consume all of the arguments. 2006-10-12 04:41:13 +00:00
thorpej
401a3924d5 uvm_swap_stats_locked(): Consume the cmd argument even if COMPAT_13 is
not defined.
2006-10-12 04:35:40 +00:00
thorpej
6cd7a64f41 Add __unused as necessary. 2006-10-12 04:32:34 +00:00
thorpej
f9e194e136 cpu_exec_aout_makecmds(): consume the arguments even if COMPAT_NOMID is
not defined.
2006-10-12 04:31:54 +00:00
thorpej
8fa57c4c57 mmopen(): Consume the flag argument even if COMPAT_10 is not defined. 2006-10-12 04:31:03 +00:00
thorpej
435147e718 Add __unused as necessary. 2006-10-12 04:29:37 +00:00
thorpej
867f8cb239 genfs_lease_check(): Consume the arguments even if NFSSERVER is not defined. 2006-10-12 04:25:43 +00:00
thorpej
25433eb1b5 ufs_quotactl(): consume the arguments even if QUOTAS is not defined. 2006-10-12 04:24:40 +00:00
christos
4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
elad
9ac35e8640 For raw disk requests, in case we don't have a vnode/device, use a
generic policy: always allow reading, allow writing in securelevel < 1
only.
2006-10-12 00:19:10 +00:00
apb
2eed134b40 De-__P(), remove trailing spaces, sprinkle a few const, WARNS=4. 2006-10-11 19:51:10 +00:00
gdt
ac02696458 Aggregate discharge rate over all batteries. Makes time remaining
reasonable when battery 0 is in use and battery 1 is fully discharged.
2006-10-11 19:14:29 +00:00
gdt
cf2f8187a8 Aggregate current charge level and lastcap over all batteries, rather
than taking values from the last battery checked.  Solves problem of
apm showing status of 2nd battery in a 2-battery system.
2006-10-11 19:00:12 +00:00
he
8bcd5596e1 Forward-declare "struct lwp" before using it in an argument declaration.
Gets rid of a recurring lint warning whenever this file is included.
2006-10-11 16:16:48 +00:00
gdt
846dd43c17 bump date for ubiquiti addition before wizd next runs 2006-10-11 14:41:13 +00:00
gdt
3163e1f232 add Ubiquiti SRC to list of supported cards, and note that
AR5213-based devices work.
2006-10-11 14:39:58 +00:00
gdt
630ae694c1 Add Novatel FlexPak GPS and Sierra Aircard 580.
Note that the Qualcom CDMA device is found in the Kyocera KPC650 EVDO
interface.
2006-10-11 14:33:51 +00:00
gdt
53eda44ae8 Match Novatel FlexPak GPS receiver and Sierra Aircard 580 (used with
Sprint EVDO).   From Armando Caro via acert.ir.bbn.com.
2006-10-11 14:32:28 +00:00
pooka
1cacfd0524 lower value mean higher priority for bridges
+ fix off-by-one

Tobias Nygren, bin/34781
2006-10-11 13:16:39 +00:00
gdt
b0c7441253 regen 2006-10-11 13:03:28 +00:00
gdt
2be186222f Add ids for Sierra Aircard 580 (for Sprint EVDO) and Novatel Flexpack
GPS receivers.
2006-10-11 13:02:58 +00:00
elad
dc2e62e609 Reword, based on changes from jmc@OpenBSD, thanks! 2006-10-11 11:22:50 +00:00
pooka
654c98d70a note that sun_len is ignored, per discussion on tech-net 2006-10-11 11:16:09 +00:00
hubertf
8a8b8c4204 xref fast_ipsec(4) 2006-10-11 10:14:31 +00:00
pooka
400dd61c41 nuke unused variable to make compile 2006-10-11 09:04:16 +00:00
dsl
505a3bb2b7 There is no need to resize the pollfd array, it can only ever have 2+maxJobs
entries, so allocate at startup.
Use an 'int jobPipe[2]' within the job structure, and create pipes directly
into it.  Common up the code that creates all the pipes - making them all
non-block on the read side in the process.
Call Job_CatchChildren() directly from Job_CatchOutput() so that it only
gets called when a child actually exits.
NB: Something causes a 'pregnant pause' if (for example) you call 'nbmake obj'
in src/tools.  Introduced between netbsd 3 and 4.
2006-10-11 07:01:44 +00:00
thorpej
e160c7cdec - Add specificdata_setspecific_nowait(). Not exposed by the wrappers yet
pending discussion on tech-kern.
- Re-enable the SLEEPABLE assertion in specificdata_fini().
2006-10-11 05:37:32 +00:00
jmcneill
648920a00e Size is the third argument to memset, not the second. 2006-10-11 05:12:06 +00:00
thorpej
12e8bb915e Don't free specificdata in lwp_exit2(); it's not safe to block there.
Instead, free an LWP's specificdata from lwp_exit() (if it is not the
last LWP) or exit1() (if it is the last LWP).  For consistency, free the
proc's specificdata from exit1() as well.  Add lwp_finispecific() and
proc_finispecific() functions to make this more convenient.
2006-10-11 04:51:06 +00:00
thorpej
42951eac01 Upon further reflection, make lwp_{get,set}specific() operate only on
curlwp.  Things that need to operate on "other" LWPs will get a very
special (and very private) API for their needs.
2006-10-11 03:46:42 +00:00
uwe
ba3cb45cce Oops, fix bug in previous. On SH4 (two-issue) sh_clock.cpuclock is
the spin count divided by two, so introduce a variable to hold the
original number that we later use to compute pclock.
2006-10-11 03:20:01 +00:00
uwe
61a805fc2c Do calculations to estimate cpu and pclock using 64-bit and doing all
the multiplications first.  Round to nearest, instead of down.

When estimating pclock don't compute sh_clock.cpucycle_1us * 1000000
sh_clock.cpuclock is exactly that (but without rounding errors).

This improves timekeeping on my Jornada.
2006-10-11 02:31:19 +00:00
uwe
f6a0f2334c Lift extern cpu_cd declaration to the top-level.
Make match/attach routines static.
Whitespace cosmetics.
2006-10-11 01:08:48 +00:00
riz
cc84101104 Also print blksize with %u - this is what I get for eyeballing
a patch instead of applying it directly.  PR#33966.
2006-10-10 23:35:29 +00:00
riz
31568e4a8e Print an unsigned parameter with %lu, not %ld. From David A. Holland
in PR#33966.
2006-10-10 23:30:23 +00:00
he
4072b525cc The use of a local variable is conditional on FBDEBUG, so make the
declaration too.  Makes this build without FBDEBUG defined.
2006-10-10 23:09:21 +00:00
dogcow
55ddfc9aae change the MOWNER_INIT define to take two args; fix extant struct mowner
decls to use it. Makes options MBUFTRACE compile again and not whinge about
missing structure declarations. (Also makes initialization consistent.)
2006-10-10 21:49:14 +00:00
tsutsui
62600ecc57 Replace magic numbers with proper macro. 2006-10-10 17:45:43 +00:00
mhitch
031f3db0fe Conversion to clock_ymdhms wasn't complete: the match routine was calling
ugettod() with a NULL pointer to test if the clock was present.  That
argument was changed to a struct clock_ymdhms pointer and is no longer
optional.  Change to pass the address of a local structure when probing
for the clock.
2006-10-10 17:24:23 +00:00
tsutsui
88c6f2c305 Clear pending flags before calling handers otherwise possibly some softintr
could be lost.
2006-10-10 13:26:47 +00:00
tsutsui
aa360516de Remove eeprom and clock at mainbus stuff.
They are available only on sun4 or sun4c.
2006-10-10 12:43:11 +00:00
tsutsui
4e4ba0146c Print ofboottarget and ofbootpartition on DEBUG even if they are not set. 2006-10-10 12:41:56 +00:00
rpaulo
a6762e54d7 Revert previous. The check is now done in tcp_congctl. 2006-10-10 11:13:02 +00:00
rpaulo
e1b1f65f6b tcp_reno_newack(): bring the exact original code.
tcp_newreno_newack(): call tcp_reno_newack() if partialacks < 0.
2006-10-10 11:12:39 +00:00
elad
08544bdaa5 Use kauth(9) instead of securelevel.
okay cube@
2006-10-10 10:23:58 +00:00
elad
5d97bceb4a Use KAUTH_PROCESS_CORENAME instead of checking securelevel. 2006-10-10 10:02:34 +00:00
yamt
f5209007e9 tcp_input: don't call congctl->newack when doing fast retransmit. 2006-10-10 09:19:40 +00:00