Commit Graph

200831 Commits

Author SHA1 Message Date
christos 2d48e20cb6 include missing includes 2011-05-19 02:56:03 +00:00
christos 7471a8d9e4 include missing headers. 2011-05-19 02:54:58 +00:00
jakllsch 15bf553730 Specify that the sock argument of socktodesc() is an int,
instead of letting it default to int.
2011-05-19 02:37:41 +00:00
plunky 72323ee0ff add -Dlseek64=lseek to fix the build in geode_msr.c 2011-05-18 20:55:09 +00:00
mellon 0647473106 Include err.h and unistd.h to provide protos for err() and getpid(). 2011-05-18 19:45:05 +00:00
mellon b519b2e283 Include err.h to provide prototype for err(). 2011-05-18 19:44:18 +00:00
dsl 67d513dd66 Remove __P() 2011-05-18 19:36:36 +00:00
drochner 582edd8b2a include the SHA2 hashs into the proposal which goes out with
SADB_ACQUIRE -- this doesn't change much because racoon ignores
the proposal from the kernel anyway and applies its own configuration,
but having MD5 and SHA1 in the list but SHA2 not looks strange
2011-05-18 18:56:02 +00:00
tsutsui 35020d6832 WARNSfy 2011-05-18 18:41:59 +00:00
drochner 184e1b20e6 use monotonic time rather than wall time for lifetime related timestamps,
to make key expiration robust against time changes
2011-05-18 18:36:15 +00:00
christos 6009929c48 add a hacky version of sigsuspendsetup() to satisfy link requirements. 2011-05-18 15:57:14 +00:00
manu e0a6df40c2 - Proper permission checks when doing directory traversal. e.g.: run
rm dir/file while dir was never looked up since the mount. In that
situation, we get lookup with pcn_nameiop NAMEI_DELETE for dir before
we get it for file. But for dir we are just looking for PUFFS_VEXEC.
This is solved by honouring NAMEI_ISLASTCN, which is set for the last
element only

- do not send O_EXCL to FUSE as documentation forbids it.

- fix warning
2011-05-18 15:28:12 +00:00
manu 286587ad9c Set buffer size as big in nomal mode as we do in debug mode, when
perfused stays in foreground. The difference is a mistake and was not
intended.

There is still a bug ready to bite here, since SOCK_STREAM is not reliable.
We just hope that buffers are big enough to hold all packets, but if they
are overflown, we loose a packet and a file operation gets stuck.

We really nee SOCk_SEQPACKET here, but unfortunately it is very broken at
that time.
2011-05-18 15:25:19 +00:00
manu e7a016f266 typos 2011-05-18 15:22:54 +00:00
christos fc6147c605 No need to mask twice. The setup function does it. 2011-05-18 14:48:04 +00:00
adam 84862a28ce Add support for LLVM/Clang 2011-05-18 13:08:14 +00:00
drochner 31eddb04eb remove unused expression 2011-05-18 12:54:15 +00:00
drochner d999ae2d7d remove stale declarations / empty function 2011-05-18 12:53:04 +00:00
nonaka e1f964c37f Added Psion Teklogix NETBOOK PRO entry. 2011-05-18 12:11:46 +00:00
nonaka 60cff5a788 Use "option noyywrap". 2011-05-18 12:10:22 +00:00
dsl cf5ef24619 Back out a local change 2011-05-18 06:36:48 +00:00
christos e2543d0362 PR/43625: Mark Davies: Fix pselect(2) to honor the temporary mask. pselect(2)
(and pollts(2)) are similar to sigsuspend(2) in that they temporarily change
the process signal mask and wait for signal delivery. Factor out and share the
code that does this.
2011-05-18 03:51:41 +00:00
christos e2d6a49943 Don't depend on the atf timeout stuff, do it ourselves. 2011-05-18 03:15:12 +00:00
christos 10217dda12 add pselect 2011-05-18 03:07:37 +00:00
christos 185865c435 Add a test for signal delivery during pselect, with temporary mask change. 2011-05-18 02:57:48 +00:00
christos 713ea1897d cleanup saving and restoring errno, and make it similar. 2011-05-18 01:59:39 +00:00
dyoung b11777e520 #include <sys/bus.h>, not <machine/bus.h>. 2011-05-18 01:02:43 +00:00
dyoung 399cdcdfe9 MI code must #include <sys/bus.h>, not <machine/bus.h>. 2011-05-18 01:01:59 +00:00
macallan fa88ee4233 add support for running the console in more than 8 bit
Now modes like 1680x1050 work. The hardware requires a stride of a multiple
of 32 bytes, with 1680 this requires 16bit colour.
2011-05-17 22:52:28 +00:00
macallan feea15727f wsfb is no longer borked 2011-05-17 22:29:06 +00:00
macallan 9924280d80 add some constants, clarify some hw limitations 2011-05-17 22:26:33 +00:00
dyoung a5ac491e65 Increase SYMTAB_SPACE to fix compilation of these kernels. 2011-05-17 22:19:37 +00:00
njoly 59bc3aabda Add require root user to test_case_xfail. Avoids reporting expected
failure for the wrong reason with unprivileged runs (puffs access
denied).
2011-05-17 22:01:41 +00:00
dsl c5191c6734 If a makefile if a multiple of the page size and doesn't end with a
newline, then it all goes horribly wrong when make tries to terminate
the last input line.
This was all ok before the mmap changes (rev 1.169) because the last
32 bytes of the input buffer were never read into.
The non-mmap case has a similar problem.
Bug found because my .depend files don't have a newline at the end of
the .OPTIO|NAL line (don't know if that is a local change).
2011-05-17 21:56:51 +00:00
drochner 8ec435e6ba cleanup some error handling to avoid memory leaks and doube frees,
from Wolfgang Stukenbrock per PR kern/44948, and part of kern/44952
2011-05-17 18:57:02 +00:00
drochner d1cd4a3eb4 fix lookup of SAs for outgoing packets in the !prefered_oldsa case,
as done in KAME and FAST_IPSEC after NetBSD imported the code
(The default differs: KAME uses the oldest valid SA while FAST_IPSEC
in NetBSD uses the newest one. I'm not changing this -- there is a lack
of specification and behavior can be changed with the "oldsa" sysctl.)
For incoming packets it shouldn't matter but I made it look similar
just to avoid unnecessary differences.
2011-05-17 18:43:02 +00:00
dyoung 60f387c8f0 Add some grotty #ifdef'age to make this compile w/o DIAGNOSTIC. 2011-05-17 17:42:46 +00:00
dyoung a6b2b8396b PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name.  Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
2011-05-17 17:34:47 +00:00
christos 5db3bccf35 add missing prototypes. 2011-05-17 12:56:44 +00:00
martin 7564d2bfd2 Disable DEBUG=-g by default again (accidently slipped in with last changes).
Ok: mrg
2011-05-17 07:57:02 +00:00
joerg eab53d10cd Add support for source specific AFLAGS and COPTS. 2011-05-17 07:16:02 +00:00
joerg c98c805c05 Trailing white space 2011-05-17 07:10:39 +00:00
dholland 5d71a1f21c typo in comment 2011-05-17 05:40:24 +00:00
mrg a852848eef fix the ordering and make UVMHIST enable KERNHIST automatically. 2011-05-17 05:32:31 +00:00
dholland ebbcc1e872 Add missing $NetBSD$ header. 2011-05-17 04:39:57 +00:00
mrg 8169e46991 move and rename the uvm history code out of uvm_stat to "kernhist".
rename "UVMHIST" option to enable the uvm histories.

TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories.  this is mostly just
  allocating something in a bitmap, and is only for viewing multiple
  histories in a merged form.


tested on amd64 and sparc64.
2011-05-17 04:18:05 +00:00
enami bde048cc49 Use Pq or Po macro for better output rather than putting raw open paren
at the end of line.
2011-05-17 03:35:38 +00:00
christos 6bbebf8328 Enable c99 mode by default.
This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB:	I've only ran a build on amd64, so other platforms MI code might break.
	If you can't wait for me to fix them, revert this commit.
2011-05-17 01:12:34 +00:00
christos 2bf6f45a6d fix prototypes. 2011-05-16 21:51:31 +00:00
joerg d14e81e4ad Update to LLVM/Clang revision 131404. This includes the fix for asm labels
on builtins (broke longjmp usage) and a better cross-compiling support
in combination with -m32/-m64.

Update configuration to include /usr/include/clang-3.0 in the search
path.
2011-05-16 19:27:47 +00:00