Commit Graph

180052 Commits

Author SHA1 Message Date
elad
b7a329340e Replace KAUTH_GENERIC_ISSUSER with a better alternative. 2009-04-20 19:57:18 +00:00
elad
e84ac529f6 Document KAUTH_REQ_NETWORK_BIND_PORT. 2009-04-20 19:37:08 +00:00
elad
e75a3b5e33 Extract in6_pcbbind()'s guts into two new routines: in6_pcbbind_addr() and
in6_pcbbind_port(), used for binding to an address and a port respectively.

While here, fix a possible "leak" of an in6pcb when binding to an address
succeeded but binding to an auto-assigned port failed.

Proposed and received no objections on tech-net@:

	http://mail-index.netbsd.org/tech-net/2009/04/15/msg001223.html
2009-04-20 18:14:30 +00:00
elad
386808d4a0 Refactor some duplicated file-system code.
Proposed and received no objections on tech-kern@:

	http://mail-index.netbsd.org/tech-kern/2009/04/18/msg004843.html
2009-04-20 18:06:26 +00:00
christos
428488169d put back -u 2009-04-20 17:13:42 +00:00
drochner
dff56c2587 also fix a comment wrt use of the csysid/cstart/csize vars 2009-04-20 17:06:55 +00:00
drochner
0fa7059102 define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
drochner
3f2cf355d3 if YY_NO_INPUT is defined, disable not only the declaration but also
the definition of yyinput(), avoids compiler warnings with newer gcc.
from Kurt J. Lidl per PR misc/41160, with a minor change to make it
generate paired #directives in the "-+", ie c++, case
2009-04-20 16:01:17 +00:00
jnemeth
eb19d068d9 lbxproxy is no more 2009-04-20 15:39:46 +00:00
sborrill
45a4197562 When using -s flag, read start and size as unsigned to allow for larger
disks. (Thanks to drochner@ for catching it).
2009-04-20 15:03:56 +00:00
christos
2cca8c559f Bring back binary compatibility with the previous version of the resolver.
There was no room to allocate 16 bytes for _rnd in the struct in the _LP64
case, so we dynamically allocate now. Also put the _rnd field last, so that
we are bitwise compatible too. Now of course we've run out of space, so
next time will need to perform more evil tricks to fit.
2009-04-20 14:42:12 +00:00
tteras
7019ec4077 Fix a memory leak in certificate request generation. 2009-04-20 13:24:36 +00:00
tteras
f273c7c2bb Orignally from Bin Li: Fix possible memory corruption in binsanitize(). 2009-04-20 13:23:54 +00:00
tteras
a2f9e36ab3 From Stephen Bevan: Fix a x509 signature verification memory leak. 2009-04-20 13:22:41 +00:00
tteras
b1fd61f62f Originally from Bin Li: Fix a crash with racoonctl logout user. 2009-04-20 13:22:00 +00:00
tteras
8759a6c72c Fix a memory leak in nat-t keepalive code. 2009-04-20 13:17:35 +00:00
tteras
8c22b469e0 From Paul Moore: Phase2 message id's should be unique wrt phase1, not
globally.
2009-04-20 13:16:52 +00:00
tsutsui
bd6f58e511 Set STRIPFLAG= after ${MAKECONF} is included by <bsd.own.mk> via <bsd.prog.mk>.
Fixes PR install/40492.
2009-04-20 13:15:12 +00:00
pgoyette
e59bbd6c14 Missed this file in previous commit. This finished updates required
to enable support of i2c quick_{read,write} operations.
2009-04-20 12:58:33 +00:00
pgoyette
be22fa2534 One more i2c quick_{read,write} update. 2009-04-20 12:55:02 +00:00
pgoyette
9929afbc35 One more implementation of the quick_{read,write} I2C protocol. Note
that this is currently used only by the I2C_SCAN code (disabled by
default).

XXX Not tested due to lack of hardware.  Reviewed by simon@ and shige@.
2009-04-20 12:11:50 +00:00
mschuett
0d53a16d76 Add queue macros SLIST_FOREACH_SAFE, STAILQ_FOREACH_SAFE, STAILQ_LAST,
SIMPLEQ_CONCAT, and SIMPLEQ_LAST.

Remove seperate definitions outside of queue.h.
2009-04-20 09:56:07 +00:00
wiz
51004b901f Remove duplicate 'the' found by Jukka Salmi. 2009-04-20 08:37:22 +00:00
mrg
b17615a1f1 also obsolete Xp lint files for xorg. 2009-04-20 05:12:21 +00:00
mrg
0702cd1b2d don't need to build mkg3states without lbx. 2009-04-20 05:11:19 +00:00
mrg
e23cb6b0a7 remote dead xorg info 2009-04-20 04:11:26 +00:00
mrg
a89c8d6ca6 delete lbxutil and lbxproxy. 2009-04-20 04:03:49 +00:00
mrg
9a0a6d5470 don't need X11R7 Xprint* directories anymore. 2009-04-20 03:56:59 +00:00
mrg
5e9e14ff6e part two of excising Xprint support from native xorg:
- delete libXp, libXprintAppUtil and libXprinUtil
- delete printproto
- delete xphelloworld, xplsprinters, xprehashprinterlist,
  xpsimplehelloworld and xpxthelloworld


i'll be removing the sources shortly.
2009-04-20 03:07:13 +00:00
christos
0852251407 PR/41250: David H. Gutteridge: librefuse fuse_opt.h header doesn't accommodate
C++ compilation
2009-04-19 22:25:29 +00:00
rmind
419f4aa241 - Remove a bunch of unused declarations in proc.h header.
- Move yield() and suspendsched() to sched.h, where they should belong.
2009-04-19 22:15:39 +00:00
mrg
68b1f14092 oops. these files should never have made it in here. 2009-04-19 21:43:44 +00:00
mrg
3d49c6ee6e in preparation for removing Xprint:
- retire libXaw8
- remote Xprint support from xmore
- bump libXaw7 to major 10 so that "libXaw.so" gets a new SONAME, and
  make it the "libXaw" used.


XXX: this probably should be pulled up to netbsd-5, which is why i have
XXX: separated it out from the general Xprint removal
2009-04-19 21:36:46 +00:00
tsutsui
12de89c17b Fix harmless merge botch. 2009-04-19 18:08:56 +00:00
ad
4d8f47ae2f cpuctl:
- Add interrupt shielding (direct hardware interrupts away from the
  specified CPUs). Not documented just yet but will be soon.

- Redo /dev/cpu time_t compat so no kernel changes are needed.

x86:

- Make intr_establish, intr_disestablish safe to use when !cold.

- Distribute hardware interrupts among the CPUs, instead of directing
  everything to the boot CPU.

- Add MD code for interrupt sheilding. This works in most cases but there is
  a bug where delivery is not accepted by an LAPIC after redistribution. It
  also needs re-balancing to make things fair after interrupts are turned
  back on for a CPU.
2009-04-19 14:11:36 +00:00
ad
d857e7b19e call rw_obj_init() 2009-04-19 14:04:51 +00:00
ad
e2c5e0a204 In this case "XXX free other data structures XXX" includes stopping and
destroying the callout.
2009-04-19 12:32:52 +00:00
msaitoh
3322726436 regen. 2009-04-19 11:18:07 +00:00
msaitoh
2449d3efc1 Oooops. Back out some of previous my commit. 2009-04-19 11:17:46 +00:00
msaitoh
4d9e9f6912 Some fixes and enhancements:
Both if_bge* and brgphy.[ch]:
    Check the parent's MAC and use the quirk code for the bug like OpenBSD and
    FreeBSD. Some bugs can't identify the PHY ID. For example, 5704 Ax has the
    ADC bug, but 5704 A3 and 5704 B0 have the same PHY ID and revision. Add
    BGE_PHY_CRC_BUG, BGE_PHY_ADC_BUG, BGE_PHY_5704_A0_BUG, BGE_PHY_JITTER_BUG,
    BGE_PHY_ADJUST_TRIM and BGE_PHY_BER_BUG for this flag. Some of the DSP
    patches are newly taken from OpenBSD and FreeBSD.

  if_bge*:
    Remove duplicated BGE_CHIPID_BCM5714_A0 entry in the known CHIPID table.
    Fix obsolete comments.

  brgphy.[ch]:
    Add some PHY IDs.

TODO:
  Add more three quirk code into bge and brgphy (the brgphy side's are
  currently #if0'ed).
  Add support for bnx into brgphy (currently #if0'ed)
2009-04-19 11:10:36 +00:00
msaitoh
559b0165b6 Add mii_mpd_rev to keep MII PHY revision. 2009-04-19 10:47:48 +00:00
msaitoh
ed6e698500 regen 2009-04-19 10:25:48 +00:00
msaitoh
a57ebfe2e5 Add some boradcom's PHYs.
Sort.
2009-04-19 10:25:25 +00:00
mrg
8cf404da0f add a NetBSD_DISABLED_* target for config.h.in. 2009-04-19 10:22:10 +00:00
mrg
fc2793ab5b add some code to cope with dev.db's that have 32 bit time_t's in them.
shouldn't be relevant very much as dev.db should be re-created at boot,
but it helped me at least twice so far...
2009-04-19 10:19:26 +00:00
lukem
193dbe5711 fix -Wshadow 2009-04-19 08:53:37 +00:00
ad
8625673e64 Add SPCF_NOINTR to indicate that the CPU has been shielded from hardware
interrupts (as SPCF_OFFLINE is to unbound LWPs).
2009-04-19 08:45:09 +00:00
lukem
9a5b6d41c6 fix -Wshadow 2009-04-19 08:40:48 +00:00
ad
a8bd3c39aa Add rw_obj_*() functions to mirror the existing mutex functions.
Proposed on tech-kern quite some time ago.
2009-04-19 08:36:04 +00:00
lukem
0350114585 Fix WARNS=4 issues (-Wshadow -Wsign-compare) 2009-04-19 07:54:08 +00:00