Commit Graph

166472 Commits

Author SHA1 Message Date
dholland
764ffd05f0 Part of the rename patches *doh* 2008-01-28 15:17:54 +00:00
dholland
36801625f9 Welcome to 4.99.51 - new vfsops for rename locking. 2008-01-28 14:34:36 +00:00
njoly
4eecf433ec Make shmctl + {IPC,SHM}_STAT work an amd64, by forcing use of IPC_64.
Following the Linux kernel behaviour.
2008-01-28 14:31:35 +00:00
dholland
717e1785a5 Fix some race conditions in rename.
Introduce a per-FS rename lock and new vfsops to manipulate it.
Get this lock while renaming. Also add another relookup() in do_sys_rename,
which is a hack to kludge around some of the worst deficiencies of
ufs_rename.
reviewed-by: pooka (and an earlier rev by ad)
posted on tech-kern with no objections.
2008-01-28 14:31:15 +00:00
njoly
ff7363568f Update struct linux_shmid64_ds for 64bits archs.
- shm_segsz should be of type size_t, not int.
- Disable padding fields used on 32bits archs.
2008-01-28 14:14:48 +00:00
njoly
29158b16e8 shmctl fixes.
- SHM_STAT take an index as input, and return the corresponding shmid.
- IPC_INFO and SHM_INFO returns the highest used index.
- SHM_INFO expected the total used pages (not bytes) in shm_tot field
  of struct shm_info.
2008-01-28 14:05:32 +00:00
christos
8a85bb4332 remove Protocol=2 line; from Jukka Salmi 2008-01-28 13:57:02 +00:00
yamt
1a5be26b7e wrap a long line. 2008-01-28 12:23:42 +00:00
yamt
52838e34f5 remove a special allocator for uareas, which is no longer necessary.
use pool_cache instead.
2008-01-28 12:22:46 +00:00
pooka
cc7f05eb50 Do puffs_fakecc instead of puffs_usethreads for now. 2008-01-28 11:52:38 +00:00
yamt
12ff4ba098 save a word in pv_entry by making pv_hash SLIST.
although this can slow down pmap_sync_pv if hash lists get long,
we should keep them short anyway.
2008-01-28 11:06:42 +00:00
yamt
d8a5645f80 nfs_check_wccdata: unifdef wcc kludge messages. 2008-01-28 10:44:51 +00:00
yamt
aa144d4a0b regen. 2008-01-28 10:33:32 +00:00
yamt
80d10710d5 check off_t alignment. 2008-01-28 10:31:37 +00:00
yamt
4ad8bf4c8a pool_cache_get_paddr: don't bother to clear pcgo_va unless DIAGNOSTIC. 2008-01-28 10:26:12 +00:00
yamt
21832401a4 lwp_free: add assertions. 2008-01-28 10:24:45 +00:00
dholland
d4f48e67da Make the default WARNS for games 4. The only game that needs to set WARNS
to anything else now is rogue, so clear WARNS from the other makefiles.
2008-01-28 07:03:58 +00:00
dholland
d759c4a5e3 build with WARNS=4 2008-01-28 07:01:01 +00:00
dholland
3c439f438f Make hack build with WARNS=4. 2008-01-28 06:55:41 +00:00
dholland
c074bb6654 Make this build with WARNS=4 by not reusing names from <math.h>. 2008-01-28 06:20:15 +00:00
dholland
0f032c1fb8 Make this build with WARNS=4 by not reusing names from ctype.h. 2008-01-28 06:18:23 +00:00
dholland
4e5cdff5fd Make this build with WARNS=4. 2008-01-28 06:16:13 +00:00
dholland
712442be18 make mille build with WARNS=4 2008-01-28 05:55:10 +00:00
dholland
398690b6f4 Call srandom() as well as initializing the private random generator
(which is crappy and should be removed, but that's for another day...)
This way e.g. fortune cookies no longer appear always in the same order.
2008-01-28 05:48:57 +00:00
dholland
9cc7e27481 Larn now builds with WARNS=4. 2008-01-28 05:38:53 +00:00
dholland
3d81345939 Apparently the reason the printf arguments were all wrong is that larn
had its own private and not-quite-standard implementation of printf.
Remove it surgically with a chainsaw.
2008-01-28 04:04:17 +00:00
dholland
8ce4d17196 Add gcc printf format checking, and fix the abundant problems this revealed.
(It appears that someone sometime thought that you use %d to print a long.)
2008-01-28 03:39:30 +00:00
christos
20275a81fb mention posix_fadvise lossage. 2008-01-28 03:30:26 +00:00
dholland
733dc966d8 clean for WARNS=4 2008-01-28 03:23:29 +00:00
rumble
ff2d046b84 Fix MD set tweaking by introducing `md_init_set_status', which is called
at the end of `init_set_status'.

Previously, i386/amd64, mac68k and sgimips were using `md_init' to set the
appropriate kernel, but any changes made were being undone by a later call
to `init_set_status'.

This should fix IP3x installation issues on sgimips.

XXX - `md_init' is now unused. Should we G/C it?
2008-01-28 02:47:12 +00:00
dholland
3bf4735ba0 Work around gcc signedness warning: if you check for uid_t < 0, gcc warns
because it's unsigned, but I don't really want to rely on uid_t being
unsigned on every platform this code might propagate to.
2008-01-28 02:37:50 +00:00
dholland
a627b0395f Build with WARNS=4. Sort out the game's shadowing of its own variables,
which fixes at least one bug.
2008-01-28 01:58:01 +00:00
jmcneill
05b25a6836 Ensure that we don't clear the EHCI_PS_CLEAR bits by writing 1s to them
when modifying port state in ehci_suspend and ehci_resume.
2008-01-28 01:52:31 +00:00
dholland
bded8baaa8 Build with WARNS=4. (All fixes are cosmetic, except that it's definitely
bad karma to shadow a local variable with another of the same name in a
nested block...)
2008-01-28 01:38:59 +00:00
dholland
80def703dc Build with WARNS=4. 2008-01-28 01:15:55 +00:00
dholland
68bfa787b0 This builds with WARNS=4; set it in the Makefile so it stays that way. 2008-01-28 01:10:23 +00:00
christos
ef1144e6de Always try both tcp and udp, trying first the one specified by the protocol
wanted.
2008-01-28 01:10:22 +00:00
dholland
d463e4dba6 Build with WARNS=4. 2008-01-28 01:06:19 +00:00
jmcneill
e4e10d4f97 Release port ownership on detach, so devices will be routed to companion
controllers. This allows 'drvctl -d ehci0' to disable USB 2.0 mode.
2008-01-28 00:47:05 +00:00
jmcneill
515d26c53b Release ownership of EHCI to the BIOS when we suspend or detach the
device driver.
2008-01-28 00:44:17 +00:00
martin
e68297ad60 wrong argument type 2008-01-28 00:19:28 +00:00
pooka
eb6074e41f Replace vrelel() 010101-mania with a flags parameter. However,
leave flags unimplemented for a while (no change in functionality).
2008-01-27 22:47:31 +00:00
ad
b9839de884 Replace use of lockmgr(). 2008-01-27 21:58:39 +00:00
christos
dedb237183 Remove static module defines; they are done in openpam.h now. 2008-01-27 20:26:56 +00:00
martin
98e544d2b4 Regen (posix_fadvise versionend) 2008-01-27 20:14:12 +00:00
martin
c9146bcc25 Catch up with versioning of posix_fadvise 2008-01-27 20:13:07 +00:00
pooka
2ff7c33801 honor pager locking protocol in uao_detach() 2008-01-27 20:10:53 +00:00
jmcneill
31646d87c2 Don't attempt to claim ownership from the BIOS if the OS already holds
the HC OS Owned semaphore. Unconditionally clear SMIs as long as the
USB legacy capability is present.
2008-01-27 20:09:14 +00:00
jmcneill
b6294fbf32 Add some USB EHCI Legacy Support Extended CSR bit definitions. 2008-01-27 20:06:48 +00:00
pooka
18e91c156a Don't fool around when recycling vnodes, simply override refcount
to 1, hold on tight to your hat, and call recycle.  The reason is
that we might pick up extra references such as from lookup and we
don't really care about tracking those.  For example with p2k,
puffs in the kernel already does all the refcounting we could ever
dream of, and therefore it's left to the client and unnecessary.
2008-01-27 20:01:29 +00:00