Commit Graph

171873 Commits

Author SHA1 Message Date
dsl
345ef58291 Comment out the 'continue' in EXPECTEOL().
It only terminates execution of the 'do .. while (0)' loop.
EXPECTEOL() is always followed by 'continue' when called.
2008-07-25 22:09:52 +00:00
dsl
a8f5b9cfc2 Comment out the 'do' and 'while (0)' from KEY_CHKSASTATE().
The expansion contains a 'continue' which is expected to continue
a loop in the callling code, not just abort the #define.
2008-07-25 20:55:43 +00:00
dsl
34519fcf41 Move the body of VLAN_INPUT_TAG() into a static inline function.
(Maybe it shouldn't even be inline - but I'd have to work out where to put it).
VLAN_INPUT_TAG() now calls vlan_input_tag() and does '_errcase' when it fails.
In reality the callers should all be changed, _errcase is ALWAYS continue,
which used to 'continue' (ie break) the do .. while (0) loop - not the
intended action!
Found by ramming all the kernel sources through a modified lint and grepping
for a specific error.
While here enclose the body of VLAN_OUTPUT_TAG() in ().
2008-07-25 20:04:50 +00:00
dsl
93b2e677b4 Add {} around VLAN_INPUT_TAG() - VLAN_INPUT_TAG() can't be a do ... while (0). 2008-07-25 19:45:06 +00:00
dsl
bc2387e293 Replace a 'do { ... } while (0);' with 'for (;;) { ... break; }'
so that the 'continue' has the (probably) desired effect.
2008-07-25 18:37:24 +00:00
christos
b00559d07e use bufsize instead of BUFFERSIZE 2008-07-25 18:36:50 +00:00
dsl
d4d6980a4b Add a check for 'continue' inside a 'do ... while (0)' loop.
'continue' has the same effect as 'break' - as that probably isn't
what the writer had in mind!
2008-07-25 18:33:53 +00:00
christos
3bccc0f766 Handle files with a large number of mappings gracefully. Reported by Nicholas
Joly.
2008-07-25 17:40:24 +00:00
reinoud
0dca08adcb Add metadata bitmap ICB file type 2008-07-25 15:37:56 +00:00
skrll
e49e2d2167 -CPPFLAGS+= -I${SRCDIR}
Otherwise, system util.h is not included when compiling ifconfig.c, the
snprintb prototype is missing, and the flags don't get printed correctly
on hp700.
2008-07-25 15:11:48 +00:00
christos
0119da7858 PR/39203: Paul Ripke: PPPoE issues with broken MTU/MRU implementations
Allow larger frames for systems that don't negotiate MTU/MRU properly.
2008-07-25 15:10:25 +00:00
christos
674681d3c0 fix gcc warnings from Alexander Shishkin 2008-07-25 14:05:25 +00:00
manu
cafe72412e Document apping between boothowto flags and boot(8) arguments selecting
aprint_*() verbosity. From Jean-Yves Migeon <jean-yves.migeon@espci.fr>
2008-07-25 07:33:57 +00:00
bjs
8151294949 - for DRM_NETBSD_HANDLE2ADDR/ADDR2HANDLE, do what uvm does to recover
the virtual address from a uoffset, e.g. uoffset + vm_map_min(kernel_map).

- Eliminate the bus_space_read/write-based DRM_READ/WRITE macros.  The
  memory we're reading/writing from is not always allocated with bus_space,
  and so this will not do.  Instead, since all of our bus_space maps are
  linear, volatile pointer dereferences will do just fine.

- Unify members of struct drm_dma_handle amongst freebsd and netbsd:
  the 'addr' member was superfluous; also, set dmah->tag from
  dev->pa.pa_dmat and use that.

- we don't need BUS_DMA_ALLOCNOW, as bus_dmamap_load is called immediately
  following bus_dmamap_create(), so there's no need to avoid deferring
  allocation to load time.

- Add check for nsegs != 1 in drm_pci_alloc().

- We don't need the DRM_PCI_DMAADDR macro right now--it was only
  used once.
2008-07-25 06:54:33 +00:00
gmcgarry
8385c9b102 Both legs of a conditional operator must return the same type. 2008-07-25 06:53:43 +00:00
bjs
f4821bc01a in the git sources, timo is jiffies + 5*DRM_HZ, not 5*DRM_HZ 2008-07-25 06:37:40 +00:00
mrg
03f0a9ffc4 note new drm 2008-07-25 05:31:15 +00:00
mrg
5560b89162 merge git-change-2580a065d81be645a14af1e91b8441f7e72fcbe4. 2008-07-25 05:30:08 +00:00
mrg
3eb83a79ce import mesa-drm git from change 2580a065d81be645a14af1e91b8441f7e72fcbe4.
this pulls in a few vblank fixes.
2008-07-25 05:27:51 +00:00
bjs
42cc23f284 IRQ_HANDLED should be 1, not 0. 2008-07-25 02:37:18 +00:00
uwe
4691dacd78 Declare lwp_exit_switchaway() __dead. Add infinite loop at the end of
lwp_exit_switchaway() to convince gcc that cpu_switchto(NULL, ...) is
really not going to return in that case.  Exposed by gcc4.3.

Reported on tech-kern by Alexander Shishkin.
2008-07-25 00:48:59 +00:00
reed
2ae533f9b5 Use absolute path for various /sbin tools.
This is consistent with several other rc.d scripts
and fixes problem with /sbin not in PATH.

(Tested several times for over three weeks, but not all
parts of this code were used by me.)
2008-07-24 19:48:19 +00:00
christos
1a43d7316a PR/39525: Joachim Schueth, Frederik Sausmikat:
cgd inadvertently encrypts blkno eight times to generate IV

Add "encblkno1" IV type to encrypt only once, rename old "encblkno" to
"encblkno8" for clarity, and make "encblkno" an alias for "encblkno8"
for backward compatibility.
2008-07-24 19:07:36 +00:00
christos
ecfa5800d4 PR/39201: Brian Marcotte: "who am i" problem when using ptyfs, because it
strips pts/
2008-07-24 15:35:41 +00:00
christos
3e1a92fedd PR/39200: Geoff Wing: Fix memory stomping on multi-cpu machines. 2008-07-24 15:10:34 +00:00
matthias
f0f728186b Do not crash when boot->FSNext contains garbage (i.e. -1). 2008-07-24 14:23:16 +00:00
blymn
9b9ad40a56 * Add the BSS node during the auth phase so negotiation can occur
* Make the adding of a node into a function instead of duplicating code
2008-07-24 13:04:00 +00:00
njoly
c1c4ce8861 Regen for rt_sigpending. 2008-07-24 12:11:14 +00:00
njoly
efde75ae99 Add rt_sigpending syscall. 2008-07-24 12:09:56 +00:00
darrenr
9f0bfbf3da 2020447 IPFilter's NAT can undo name server random port selection 2008-07-24 09:37:57 +00:00
sborrill
474699860b Add support for Broadcom 5722 and identify 5755 ASICs. 2008-07-24 08:14:49 +00:00
skrll
dccd9ddf7f RCSID police 2008-07-24 06:51:58 +00:00
dholland
25360444b2 Adjust this to not need -Wno-pointer-sign. 2008-07-24 06:13:21 +00:00
dholland
e3b90707f6 bzero the passphrase before freeing it, to discourage chill attacks. 2008-07-24 05:35:59 +00:00
dholland
2c1061aba6 Adjust this to not need -Wno-pointer-sign. 2008-07-24 05:32:45 +00:00
dholland
8bc7b72389 Fix this to not need -Wno-pointer-sign. Make it pass -Wsign-compare too,
while I'm at it.
2008-07-24 05:21:12 +00:00
matt
38bdc8954f Refactor common code to _rtld_relocate_plt_object to i386 and arm so they
act like the other versions.
In _rtld_bind, if the result is 0, call _rtld_die.
Initialize _rtld_sym_zero.st_value to -_rtld_objself.maprelocbase.  Now when
the symbol is resolved, st_value + maprelocbase will equal 0 and the above
check in _rtld_bind will fire and a call to NULL will be avoided.
2008-07-24 04:39:25 +00:00
christos
ee372c7d11 Disable PIE for kernel builds. Some architectures pass -mcmodel to gcc and
this is incompatible with PIE. And we don't really want pic objects in the
kernel
2008-07-23 23:21:56 +00:00
apb
7cb9e72bbb Avoid using \$ in an awk script. Instead, store '$NetBSD$'
in an awk variable and interpolate it where needed.

Based on the patch by Martin Husemann in PR 38766.
2008-07-23 21:17:25 +00:00
christos
d3b459e727 abort() if we are trying to use an undefined weak symbol from the plt. Remove
check from relocate_plt_object() since we cannot return _rtld_sym_zero anymore.
Code from gimpy.
2008-07-23 18:16:42 +00:00
mgrooms
9ef0a25aeb Add some missing ifdefs required for non-radius enabled builds. 2008-07-23 17:36:00 +00:00
tteras
4521811287 Do not use GNU make specific extension. 2008-07-23 13:53:08 +00:00
tnozaki
5bf0fcb63d remove redundant semicolon. 2008-07-23 13:44:02 +00:00
tnozaki
97d29a42cd add workaround for PR/39175(Curses regression causes disoptimal and
confusing output), act as rev1.25 does when wcwidth == 1.
2008-07-23 13:32:41 +00:00
martin
8db09ad5b7 dhcpcd is at 4.0.0 RC1 now 2008-07-23 12:57:40 +00:00
njoly
066b9aabb5 Add linux32_getifconf, following recent linux_getifconf addition. 2008-07-23 12:32:09 +00:00
christos
8dd0b4459d handle more types. 2008-07-23 11:59:43 +00:00
tteras
28aa26f3de Do flex/bison invocation in a more standard way, and keep the generated
files in the dist tarball.
2008-07-23 09:06:51 +00:00
matt
875074d9fa Make sure to update root.cache too. 2008-07-23 07:43:12 +00:00
dyoung
7e7bddae2b Fix this another way: add the missing case statement. 2008-07-23 06:34:31 +00:00