Commit Graph

147268 Commits

Author SHA1 Message Date
christos
fb4d7a1a6e - fix pointer problems and unsigned int -> int confusion that lead to
undetected errors.
- factor out the socket creation code so that we don't have 4 copies.
- add -p <port> argument
- fix the majority of the lint problems.
- change all the strncpy's to strlcpy's.
2006-05-20 20:03:28 +00:00
mrg
696ab05f50 add (char *) cast to quieten GCC. 2006-05-20 19:40:46 +00:00
mrg
995cc7365d initialise tmp_clock() for GCC4. 2006-05-20 19:22:36 +00:00
mrg
041a6c9d7d pull across missing files from GCC3 tree. these don't work yet as they
used old-style GCC3 functions and macros.
2006-05-20 19:21:56 +00:00
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