Commit Graph

220499 Commits

Author SHA1 Message Date
dholland
aba78f7512 Tidy up more. This is pretty ratty code. 2013-08-11 01:42:35 +00:00
dholland
5e8eff378e Tidy up. 2013-08-11 01:29:28 +00:00
dholland
9f2ae0ea3d Pass -Wpointer-sign. 2013-08-11 01:00:13 +00:00
dholland
d506ddf6f7 avoid undefined behavior. 2013-08-11 00:52:17 +00:00
dholland
8a7a973b90 Don't explicitly zero bss variables that are already zeroed. 2013-08-11 00:49:15 +00:00
dholland
c47da08424 Add comments explaining how this works. 2013-08-11 00:48:37 +00:00
dholland
8b42fe334c Simplify the parser handling. 2013-08-11 00:39:22 +00:00
dholland
e141bc4323 Remove silly written-out initialization of string1. 2013-08-11 00:34:09 +00:00
dholland
88d97c8162 Remove xfail for PR 48113. 2013-08-11 00:29:21 +00:00
dholland
848d757378 Make tr -c work. Fixes PR 48113.
When -c is in effect, scan string1 first, complement it, and then
iterate over the results while scanning string2. Otherwise, scan
string1 and string2 together as before.
2013-08-11 00:28:46 +00:00
dholland
567ab40d47 apply some CSE 2013-08-11 00:12:47 +00:00
dholland
9dd74a9973 Restore preexisting wrong behavior of tr -c (translates all characters
to the last letter in string2) instead of a different wrong behavior
(translates all characters to 0xff) accidentally just introduced.
2013-08-11 00:11:46 +00:00
dholland
48dbbc109e sprinkle const 2013-08-11 00:05:49 +00:00
dholland
7f7f549599 Make the parser state opaque. While here, fix a memory leak when using
the [:foo:] syntax.
2013-08-11 00:04:14 +00:00
dholland
d05d2aa5a7 Expose less of the parser state outside str.c. 2013-08-10 23:54:41 +00:00
tron
986f886c15 Fix tool build under Mac OS X by using gettimeofday(2) instead of
clock_gettime(2). This needs a proper auto-config check.
2013-08-10 23:25:35 +00:00
dholland
3577391ca2 +tp 2013-08-10 22:37:06 +00:00
dholland
36890ffbb0 Add tests for tr, including an xfail one for PR 48113. 2013-08-10 22:36:16 +00:00
jnemeth
e0e417bef7 PR/48112 - Kai-Uwe Eckhardt -- add support for Sitecom N300 USB WIFI adapter 2013-08-10 21:32:07 +00:00
sjg
7f708505a0 ParseGetLine: don't treat a zero byte as end of buffer if P_end says it isn't.
Consume up to next newline, and issue a parse warning.
If no newline found before P_end, carry on as before.
2013-08-10 21:20:03 +00:00
jnemeth
2250093bdf PR/48112 - Kai-Uwe Eckhardt -- add support for Sitecom N300 usb wifi adapter 2013-08-10 21:15:26 +00:00
dholland
3c77b25ade punctuation usage 2013-08-10 20:59:27 +00:00
matt
d650209479 Make these under Thumb2 2013-08-10 19:59:21 +00:00
matt
8f8ed13c79 Never modify NLO/NHI (r2,r3) only LO/HI (r0,r1) so subsequent loops will work. 2013-08-10 19:02:22 +00:00
matt
d86c65aadb Use r2 instead of ip 2013-08-10 18:45:12 +00:00
dholland
39ab77f3dd Silence -Wpointer-sign on crypt-sha1.c.
This requires casts, which is not entirely desirable; however, this way
at least no *more* pointer sign issues can creep in.

Output object files are unchanged on amd64.
2013-08-10 18:42:29 +00:00
matt
b8284f6dcd Use subs/sbc
Use push/pop
Don't adjust return for atomic_dec_64 since it's void and returns nothing
2013-08-10 18:40:19 +00:00
matt
617628a5a2 use push/pop 2013-08-10 18:39:48 +00:00
matt
8aac5a9bd0 Use push/pop 2013-08-10 18:39:25 +00:00
matt
fc14a14e9e use push/pop 2013-08-10 18:39:07 +00:00
matt
edb257bd2d cmpne -> cmp
Use push/pop
2013-08-10 18:38:33 +00:00
matt
d6ef347e93 Don't adjust return of atomic_inc_64 since it's void and doesn't return
anything.
2013-08-10 18:32:06 +00:00
matt
be0a794afa Fix add -> adds 2013-08-10 18:28:15 +00:00
dholland
90319e421c Redo -r1.53 correctly. 2013-08-10 18:14:21 +00:00
tsutsui
120fa04906 Make sure to check if the driver has a valid intr handler in virtio_detach().
Fixes a panic during shutdown on KVM under ubuntu 13.04 with virtio,
as reported in PR kern/48105 by Richard Hansen.

Should be pulled up to netbsd-6 branches.
2013-08-10 18:01:31 +00:00
mrg
cc564476de thanks to mhitch, we got all the interrupt issues sorted out for now,
so turn off PDB_INTR in the debug kernel.
2013-08-10 00:48:04 +00:00
lukem
2a4f324ee6 I don't have the resources to maintain OpenLDAP in NetBSD anymore. 2013-08-09 23:38:54 +00:00
aymeric
3ddee628a3 Comment out pseudo-device md so that ARMADAXP_INSTALL passes config(1).
Fixes evbarm releases.
2013-08-09 21:19:43 +00:00
jmcneill
b54c1c7c33 regen 2013-08-09 20:13:21 +00:00
reinoud
550f8483a8 Fix 32 bit issue in main file read-in function. On both 32 bit and 64 bit
hosts a missing cast would result in `garbage' after the 4Gbyte limit.
2013-08-09 20:13:18 +00:00
jmcneill
a46673afc5 makefs_udf uses clock_gettime, and on some versions of linux that lives in librt 2013-08-09 20:12:38 +00:00
kardel
7c088e1695 bump command timeout to 5 minutes. several
types of changers (Overland PowerLoader, Dell
PowerVault) have been exceeding the 100 sec
limit aborting a perfectly (slowly) progressing
operation.
2013-08-09 19:58:44 +00:00
kardel
a337cbba9e fix issues when reading variable block sized tapes.
symptoms:
	generic HBA error on console when reading
	with a larger blocksize. blocks read
	are padded to requested block size with
	a 5a... a5... pattern.

problems fixed:
	- controller scsi_status values did not match
	  the ones used by the spsipi layer.
	  a mapping function was introduced.
	- when experiencing an underrun (read 64k and
	  get a 63k block) the controller posted
	  not a SUCCESS status but CHECK status. handle
	  that like SUCCESS adjusting xs->resid and set
	  XS_SENSE.
	  now the correct data amount is returned and
	  nothing is 'added' and no 'generic HBA error'
	  occurs.
	- make decisions using variables and constants
	  from the controller domain.
2013-08-09 19:51:29 +00:00
pgoyette
59540f5ab1 Make the xsh man pages to unbreak the build (sets lists were updated to
expect these man pages, but they were not being built)
2013-08-09 15:35:54 +00:00
reinoud
857cc1af09 Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.
2013-08-09 15:11:08 +00:00
rkujawa
eef8c2bab2 Fix style. 2013-08-09 12:56:31 +00:00
rkujawa
6d759974a0 Add xsh(4) man page to dist list. 2013-08-09 11:41:24 +00:00
rkujawa
8882cc31f9 Add man page for xsh(4). 2013-08-09 11:40:08 +00:00
reinoud
a5f25cf5c7 Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.
2013-08-09 11:29:44 +00:00
skrll
6a24930e6a Fix debug kernel builds when the automatic symbol table resizing kicks in.
Previously, the TAIL/HEAD link steps were being executed twice and the
(relinked/stripped) kernel would overwrite the debug version.

XXX this is all ugly.
2013-08-09 09:08:47 +00:00