peter
9e4da6dd3b
Pacify gcc warning with a Douglas Adams reference.
2003-10-26 04:30:05 +00:00
peter
9ff77005b4
Fix some warnings by defining has_sa_sigaction to 1. When the configure
...
script was run (years and years ago), we didn't have it.
2003-10-26 04:26:52 +00:00
peter
ad3ca1dde1
Since I'm having so much fun with const, beat my head against the wall
...
some more. Make this compile cleanly.
2003-10-26 04:20:19 +00:00
peter
bfcf5b3a91
Pointers dont fit in an int on 64 bit platforms. Fix a gcc warning.
2003-10-26 04:12:02 +00:00
peter
b84f0fd155
The third arg to strncmp() is size_t, not int. This causes a warning on
...
systems where size_t is long, not int.
2003-10-26 04:10:50 +00:00
peter
92983ccab1
Preserve the constness of the value argument passed to env_setenv() as
...
it gets passed through the filter functions.
2003-10-26 04:04:12 +00:00
peter
cb29a24d26
Pacify gcc about casting pointers to integers (for the lowest few bits).
2003-10-26 03:55:58 +00:00
peter
79a9b01a78
(mostly) Clean up some const warnings here. The code takes some liberties
...
because it is the originator of various const strings and knows that they
came from malloc.
2003-10-26 03:51:47 +00:00
peter
eaeee19e67
clnt_call takes args of type xdrproc_t.
2003-10-26 03:43:35 +00:00
peter
7c422b97bd
Move the -Wtraditional warning from the global cpp flags to when the -p
...
(portability warnings) switch is used. Add -Wno-system-headers after it so
that we dont get 500 screenfulls of warnings about #elif in /usr/include.
I'm not entirely happy with this. Maybe cdefs.h shouldn't use #elif and
instead nest #else clauses?
2003-10-26 03:34:13 +00:00
peter
f121e493d5
Disable the log() builtin (the math function), because it will not do much
...
logging of information like the program expects.
2003-10-26 03:15:54 +00:00
peter
ee993cd50a
When we pass a string as auxillary data (type long), be sure to convert
...
it to a suitable type for the initialization.
2003-10-26 03:12:47 +00:00
peter
3957af6745
Fix a warning about mismatched pointers. A pointer to "void *" is not the
...
same as a pointer to "char *". Tell the compiler this is ok.
2003-10-26 03:01:24 +00:00
alfred
bc96d82ac8
constify bintime_add, bintime_sub, bintime2timespec, timespec2bintime,
...
bintime2timeval and timeval2bintime.
2003-10-26 02:38:34 +00:00
alfred
4ba4eee48e
constify the second args to timevaladd() and timevalsub().
2003-10-26 02:19:00 +00:00
grog
330554451e
Add coup d'état in Chile, 1973.
2003-10-26 01:18:08 +00:00
imp
7a210cb6a4
Const poison string accessor functions.
2003-10-26 00:51:40 +00:00
trhodes
f5b54933f1
style.Makefile: Add a '?' before '=' in WARNS.
2003-10-26 00:35:05 +00:00
grog
8a69810aef
Add end and start dates for DST.
2003-10-26 00:03:49 +00:00
phk
a98bdabe34
Consistently cast to (u_char *) when filling with junk.
2003-10-25 23:47:33 +00:00
alc
23a376f078
- Add some of the required vm object locking, including assertions where
...
the vm object lock is required and already held.
2003-10-25 23:42:17 +00:00
jmg
66ca0a8b51
fix spelling of ATTACH
...
Submitted by: Johny Mattsson
MFC after: 2 week
(do to code freeze)
2003-10-25 22:03:10 +00:00
imp
a499536827
Minor style nits suggested by sam and mdodd:
...
o give an argument to EP_BUSY_WAIT
o use foo_locked rather than foo_body
o Add locking assertions for extra safety.
2003-10-25 21:28:40 +00:00
imp
08148c6afb
Convert to bus_space.
...
Make the pccard attachment work with NEWCARD
Start locking of the driver, but only the macros are defined right now
Tested on: Megahertz CC10BT/2
# (These cards are very popular on ebay these days, and run < $10 including
# shipping from some sellers).
2003-10-25 19:56:19 +00:00
des
a7b0d81550
Better safe than clever.
...
Submitted by: das
2003-10-25 19:53:28 +00:00
peter
537239cace
For the SMP case, flush the TLB at the beginning of the page zero/copy
...
routines. Otherwise we run into trouble with speculative tlb preloads
on SMP systems. This effectively defeats Jeff's revision 1.438
optimization (for his pentium4-M laptop) in the SMP case. It breaks
other systems, particularly athlon-MP's.
2003-10-25 18:51:41 +00:00
alc
92470025a7
- Align a comment within struct vm_page.
...
- Annotate the vm_page's valid field as synchronized by the containing
vm object's lock.
2003-10-25 18:33:04 +00:00
rwatson
b43632b153
Check (locked) before performing an advisory unlock following a failure
...
of vn_start_write(). Otherwise, we may inconsistently attempt to release
the advisory lock.
Pointed out by: teggej
2003-10-25 16:43:50 +00:00
rwatson
e4935eb9ae
When generate a core dump, use advisory locking in an advisory way:
...
if we do acquire an advisory lock, great! We'll release it later.
However, if we fail to acquire a lock, we perform the coredump
anyway. This problem became particularly visible with NFS after
the introduction of rpc.lockd: if the lock manager isn't running,
then locking calls will fail, aborting the core dump (resulting in
a zero-byte dump file).
Reported by: Yogeshwar Shenoy <ynshenoy@alumni.cs.ucsb.edu>
2003-10-25 16:14:09 +00:00
rwatson
723804b261
Allow MAC policies to block/revoke kern_alq write access to a file.
...
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Reviewed by: jeff
2003-10-25 16:10:41 +00:00
rwatson
2e83725f4a
Make MAC_EXTERNALIZE() and MAC_INTERNALIZE() simply take the object
...
type, rather than "object_label" as the first argument. This reduces
complexity a little for the consumer, and also makes it easier for
use to rename the underlying entry points in struct mac_policy_obj.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2003-10-25 15:28:20 +00:00
simokawa
e7ca1c4552
Fix fwmem_strategy() race in 4-stable.
2003-10-25 15:05:59 +00:00
simokawa
ff63cdda69
Move validity check of 'xfer->fc != NULL' to right place.
2003-10-25 15:04:49 +00:00
simokawa
db06ba5447
update for conserver-8.0.4.
2003-10-25 14:53:53 +00:00
simokawa
57c5fc586d
remove debug message.
2003-10-25 14:51:36 +00:00
des
681563239d
Document fabsl(3).
...
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
2003-10-25 13:45:11 +00:00
simokawa
f3f4733531
dcons_crom.c needs dcons and firewire.
2003-10-25 12:59:22 +00:00
phk
9c4255e21c
Style changes. Inching closer to convergence with OpenBSD.
2003-10-25 12:56:51 +00:00
ume
bbeee5f0f7
revert following unwanted changes:
...
- __packed to __attribute__((__packed__)
- uintN_t back to u_intN_t
Reported by: bde
2003-10-25 10:57:08 +00:00
ume
b3c1e80175
correct namespace pollution.
...
Submitted by: bde
2003-10-25 09:37:10 +00:00
des
8c5b85e155
- fabsl.c should be named s_fabsl.c for consistency with libmsun's
...
documented naming scheme (unfortunately the documentation isn't in the
tree as far as I can tell); no repocopy is required as there is no
history to preserve.
- replace simple and almost-correct implementation with slightly hackish
but definitely correct implementation (tested on i386, alpha, sparc64)
which requires pulling in fpmath.h and the MD _fpmath.h from libc.
- try not to make a mess of the Makefile in the process.
- enterprising minds are encouraged to implement more C99 long double
functions.
2003-10-25 09:32:18 +00:00
ume
72898b10e9
according to RFC3542 10.5, the 5th argment of inet6_opt_next()
...
is not size_t but socklen_t.
Reported by: tinderbox
2003-10-25 06:51:23 +00:00
alc
e444c5c4e4
- Call vnode_pager_input_old() with the vm object locked.
2003-10-25 05:21:16 +00:00
peter
133df7e75d
GC workaround code for detecting pentium4's and disabling PSE and PG_G.
...
It's been ifdef'ed out for ages.
2003-10-25 05:14:38 +00:00
njl
bcfcc4ec03
Add devctl(4) notify support to ACPI. Various subsystems now notify
...
userland whenever events occur. See the example in devd.conf below
to see how to use it.
2003-10-25 05:03:25 +00:00
imp
cdc83babef
Whole grab-bag of changes:
...
o Make the driver MPSAFE
o Some changes due to diff reduction effort with vx.
o Removed some obsolete junk.
Reviewed by: sam, modd
2003-10-25 04:09:49 +00:00
imp
7359197bf8
Start to minimize diffs between vx and ep. These latter is based on a
...
more advanced version of the chips supported by the former. Matt Dodd
and I are working towards merging them, and this a step on that path.
2003-10-25 04:05:33 +00:00
rwatson
973f5bee09
Sort type declarations together.
...
Remove an excess carriage return.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2003-10-25 03:50:44 +00:00
imp
a73d1ed688
Convenience functions to generate notifications from the kernel. The ACPI
...
code will start using these shortly.
Reviewed by: njl
2003-10-24 22:41:54 +00:00
ambrisko
b7ad6d8ec6
Add support for another multiple serial port card based on OX16PCI954 device
...
id 0x950a.
MFC: after 4.9 release.
2003-10-24 22:34:56 +00:00