Commit Graph

147264 Commits

Author SHA1 Message Date
elad
b3e7e1b010 Better implementation of PaX MPROTECT, after looking some more into the
code and not trying to use temporary solutions.

Lots of comments and help from YAMAMOTO Takashi, also thanks to the PaX
author for being quick to recognize that something fishy's going on. :)

Hook up in mmap/vmcmd rather than (ugh!) uvm_map_protect().

Next time I suggest to commit a temporary solution just revoke my
commit bit.
2006-05-20 15:45:37 +00:00
rpaulo
d330ad3005 The check for LMC cards should return NULL, not 0.
No functional change.
2006-05-20 14:23:07 +00:00
dsl
0e765f005a When expanding "$@" add a \0 byte after the last argument (as well as all
the earlier ones) so that a separator is added before it when it is empty.
This wasn't needed before a recent change that chenged the behaviour of
trailing whitespace IFS characters.
Fixed PR/33472
2006-05-20 13:57:27 +00:00
uwe
64f867a645 Redo previous fix properly. Original code had a typo caused by very similar
function and variable names.  We need to protect tag comparison b/c we don't
want to perform it against an uninitialized tag.
2006-05-20 12:29:57 +00:00
yamt
0f0124d1a9 remove NOLOCKF and use normal NULL instead. 2006-05-20 12:20:55 +00:00
yamt
b22546608e remove an debug printf slipped into the previous. 2006-05-20 12:19:30 +00:00
yamt
a6518311cc fix F_SETLKW deadlock detection, which has been broken since lwpify.
although this doesn't work for processes with multiple lwps, it's better
than not working at all.
2006-05-20 12:06:20 +00:00
yamt
cecc761849 make lockfpool static. 2006-05-20 12:04:21 +00:00
yamt
408b7c1e5c move lockf implementation details from sys/lockf.h to kern/vfs_lockf.c. 2006-05-20 12:02:47 +00:00
mrg
9200f66337 update the uninit gcc4 list a bit more. 2006-05-20 11:17:55 +00:00
mrg
bf7f38130a fix merge botch 2006-05-20 11:06:50 +00:00
mrg
aa349aa646 s/0/NULL/ for execl*'s last argument. 2006-05-20 10:31:59 +00:00
mrg
a4efc02595 in code that looks like:
igsfb_pci_is_console(pci_chipset_tag_t pc, pcitag_t tag)
	{
		return igsfb_pci_is_console && (tag == igsfb_pci_constag);
	}

delete "igsfb_pci_is_console &&" as the address of igsfb_pci_is_console
is always true.  thanks gcc4.
2006-05-20 10:31:29 +00:00
mrg
4bdc7bbc2d add mknative files for sh3* and GCC4. these build the basics but bomb
out in libc due to the current implementation of va_arg() using lvalue
casts and GCC4 gets very unhappy with lvalue casts.
2006-05-20 09:57:48 +00:00
mrg
75a847818d also -I.../gcc/config. this fixes the sh3 builds. 2006-05-20 09:56:29 +00:00
yamt
fa971123c3 revive copyright notice for the code derived from libc/locale/utf2.c.
i've asked jdolecek@ about this, but got no reply.
2006-05-20 08:28:27 +00:00
yamt
ebeaf83fb7 do not keep to use nfsv3 filehandle when falling back to nfsv2. 2006-05-20 08:06:48 +00:00
yamt
ae4a112295 replace a magic constant with a macro. 2006-05-20 07:56:28 +00:00
yamt
248ca69bad copy missing copyright notices from
getnfsargs.c and sys/arch/i386/stand/libsa/nfs.c.
2006-05-20 07:48:39 +00:00
yamt
16dbcd1c54 mountnfs: reject wrongly-sized filehandle for nfsv2. 2006-05-20 07:42:02 +00:00
yamt
eb04c18e83 nqsrv_getlease: call nfs_init() to fix NFSSERVER && !NFS case. 2006-05-20 07:40:56 +00:00
mrg
82f7733046 in _rtld_bind() initialise result to appease GCC4. 2006-05-20 07:09:44 +00:00
mrg
afda9ed915 initialise pos.x and pos.y to appease GCC4. 2006-05-20 07:09:08 +00:00
mrg
4d86687f13 when casting to assign to a u_char pointer, use (u_char *) not (char *). 2006-05-20 07:08:26 +00:00
mrg
433f408f95 struct filesystem is now struct fs_ops, since i don't know when. 2006-05-20 07:07:40 +00:00
mrg
4a1ce46a44 mknative files for amd64 and GCC4. not yet known to run. 2006-05-20 04:01:34 +00:00
mrg
61772c2d25 generated sparc and m68k GCC4 mknative files. these are only build
tested and mvme68k was the m68k platform has been built.
2006-05-20 03:54:10 +00:00
tsutsui
21d08156dc Change range of PCI I/O space for pci_configure_bus(9)
so that viaide(4) works with PCI fixup (not enabled yet).
2006-05-20 03:38:03 +00:00
perseant
0e0bb04d7a Fix a bug in which FINFOs were written with a version number of zero.
Add assertions and add this to the DEBUG fip test in lfs_writeseg.
2006-05-20 01:10:18 +00:00
christos
0d1e2d0056 Remove -Wno-attribute for gcc4 2006-05-20 00:48:41 +00:00
christos
a58b86d582 Don't use -Wno-attributes for gcc4. All the code has been fixed and it will
just hide bugs.
2006-05-20 00:47:27 +00:00
christos
471f50c864 Don't remove files that are needed for a build after make clean. Before
'make clean; make' failed in tools because necessary configure generated
files were removed. The failure manifested itself with string_to_flags
being undefined in binstall.
2006-05-20 00:23:39 +00:00
liamjfoy
cf47cfe564 Mark CARP as complete (according to the format Alistair (agc@) said was
correct).

Ok: agc@
2006-05-19 22:47:48 +00:00
mrg
99fe721972 fix a merge-botch for CC1_SPEC32. now we have {} balance. 2006-05-19 22:38:44 +00:00
briggs
f46c445f90 Add a new section to divide developer branches into "Active/Dormant"
and "Terminated" so we can scan through the active/dormant a little
bit more easily.  Also note the sections up top and mention that the
entries should be alphabetized within each section.

Make it so.

Thanks to Chapman Flack for noticing that things were not adhering to
any specific order and that there was no indication of what order
things should follow.
2006-05-19 20:28:37 +00:00
rillig
2d158db9a6 Increased WARNS to 4. 2006-05-19 20:06:30 +00:00
rillig
902271403f Typo. 2006-05-19 20:03:30 +00:00
tsutsui
7ac8789a63 Use cobalt_id to probe com at mainbus. 2006-05-19 19:33:56 +00:00
christos
351fa65664 Instead of using -I- -I${.CURDIR} and #include "dot_init.h", use:
-I${.CURDIR} and #include <dot_init.h>, since -I- is obsoleted in gcc-4,
and it is too confusing anyway.
2006-05-19 19:11:12 +00:00
mrg
173e1af775 generated mknative files for amd64 and GCC4. not tested but a release
build completes.
2006-05-19 18:41:37 +00:00
chap
c5fb260e70 Instantiation of chap-midi branch. 2006-05-19 18:19:39 +00:00
tsutsui
d2152dcfde - getvfsstat(2) isn't in 2.1 but 3.0
- getffstat() -> getfsstat()
2006-05-19 17:59:28 +00:00
tsutsui
d3eabd24ce fhstatvfs(2) isn't in NetBSD 2.1 but 3.0. 2006-05-19 17:57:37 +00:00
tsutsui
d4b574cc47 Mention COMPAT_30. 2006-05-19 17:53:18 +00:00
tsutsui
68f7891240 Mention options COMPAT_20 is also required for obsolete getfsstat(2)
and fhstatfs(2) system calls.
2006-05-19 17:43:44 +00:00
christos
236f8aef2c Coverity CI D3758: Plug memory leak. 2006-05-19 17:29:01 +00:00
christos
19d4b5c5e9 Coverity CID 3757: Plug memory leak. 2006-05-19 17:27:06 +00:00
christos
ffbb87954b Coverity CID 3147: Plug memory leak. 2006-05-19 17:21:46 +00:00
pavel
225c3d2ff3 Do not warn that Ultra160 controllers are limited to 80MB/s. My AHA 29160
works in the Ultra160 mode:

ahc0 at pci0 dev 6 function 0: Adaptec 29160 Ultra160 SCSI adapter
ahc0: interrupting at eb164 irq 0
ahc0: aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
scsibus1 at ahc0: 16 targets, 8 luns per target
sd1 at scsibus1 target 0 lun 0: <SEAGATE, ST336607LW, 0007> disk fixed
sd1: sync (12.50ns offset 63), 16-bit (160.000MB/s) transfers, tagged queueing
sd2 at scsibus1 target 8 lun 0: <SEAGATE, ST336607LW, 0007> disk fixed
sd2: sync (12.50ns offset 63), 16-bit (160.000MB/s) transfers, tagged queueing

(Those two drives can read at a speed of 64 MB/s each, in parallel.)

Bump date.
2006-05-19 16:15:14 +00:00
yamt
c876210968 UVM_MAPFLAG: add missing parens. 2006-05-19 15:08:14 +00:00