Commit Graph

112999 Commits

Author SHA1 Message Date
itojun 0e1bb4cd82 use strlcat/strlcpy 2003-05-17 21:03:21 +00:00
itojun ef713a2fe9 use strlcat 2003-05-17 21:00:57 +00:00
itojun 89bf339ad7 use strlcpy/strlcat 2003-05-17 20:58:39 +00:00
itojun c428db5b2f use strlcpy 2003-05-17 20:55:44 +00:00
itojun 9e390651ee remove local copy of strl{cat,cpy} 2003-05-17 20:49:28 +00:00
itojun 85da88227f use strlcpy/strlcat.
[fix off-by-one in displayq.c]
2003-05-17 20:46:42 +00:00
thorpej 5a467fa72d Add isinfl() and isnanl(). 2003-05-17 20:43:13 +00:00
thorpej 200111747f Add long double support. 2003-05-17 20:42:28 +00:00
itojun b37b18f113 remove obsolete comment 2003-05-17 19:19:50 +00:00
itojun d0f8b66023 strncpy -> strlcpy 2003-05-17 19:18:59 +00:00
he d963c8ed8a In disasm_fields(), add a buffer length argument and keep track of
the remaining length of the buffer to use with the modified
db_symstr() interface.  Also, convert to using snprintf() via some
local macros appending to the result buffer.
2003-05-17 19:17:43 +00:00
itojun 84e2880efb KNF 2003-05-17 19:14:25 +00:00
itojun d0512514bd use strlcpy. don't hardcode sizes, use sizeof. 2003-05-17 19:09:08 +00:00
itojun 4a1c105c26 ensure string termination 2003-05-17 19:00:22 +00:00
itojun f35cce81c8 strncpy -> strlcpy 2003-05-17 18:51:13 +00:00
itojun 3f62dc6d24 strlcpy 2003-05-17 18:19:20 +00:00
itojun 3d2b0dbc0e strncpy -> strlcpy 2003-05-17 18:13:55 +00:00
itojun 6ca34aa391 no need for ip_v recovery in output path too
(tcp_template includes ip_v setting)
2003-05-17 17:16:20 +00:00
itojun b29a40989d ip checksum logic no longer damage ip_v 2003-05-17 17:08:15 +00:00
christos acec85bb7c Initialize and reset curtxeps to zero each time the error rate is exceeded.
This stops the continuous spewing of error messages, making it just sporadic.
2003-05-17 16:46:03 +00:00
thorpej 4aef050969 Add DIOCKLABEL support. Fixes PR kern/21605 (Luke Mewburn). 2003-05-17 16:11:52 +00:00
mjl cf40158777 Typos in comments. 2003-05-17 15:53:42 +00:00
thorpej 548e1373f8 Another fix from Achim Leubner @ ICP:
Test-busy *before* marking the controller as processing a user ioctl,
otherwise the command queue could stall permanently if test-busy returned
true.
2003-05-17 15:34:12 +00:00
thorpej 8969ba6ff5 Build _isinfl() and _isnanl(). 2003-05-17 15:05:52 +00:00
itojun 0ba5684be4 possible scanf overrun 2003-05-17 15:05:19 +00:00
itojun 7b631c16fa scanf overrun 2003-05-17 14:58:53 +00:00
itojun 9e248e087b sscanf overrun 2003-05-17 14:58:19 +00:00
itojun 658519705e sscanf possible overrun 2003-05-17 14:56:40 +00:00
itojun 682aab7791 sscanf overrun 2003-05-17 14:54:53 +00:00
thorpej f9345ff71e Add _isinfl() and _isnanl() routines, currently for internal use only. 2003-05-17 14:51:24 +00:00
agc 23a6c4c9b7 Test the right variable after allocating space, and then get rid of an
unused local variable.
2003-05-17 14:26:30 +00:00
itojun 4e7f8e8660 backout previous. 2003-05-17 13:58:07 +00:00
itojun 405a7327c7 fix strncat too. from wiz 2003-05-17 13:56:41 +00:00
isaki 1175e83334 Style fix. 2003-05-17 10:38:55 +00:00
isaki 31e6e287c2 Style and indent fix. 2003-05-17 10:37:55 +00:00
dsl 7452c78152 Fix botched nathanw_sa_merge change
fixes port-i386/21603
2003-05-17 10:34:39 +00:00
isaki 29d1fbba67 More style fix. 2003-05-17 10:11:19 +00:00
scw 66cf68c402 On some platforms, sizeof(db_expr_t) > sizeof(long), so add a method
to select the right format string (at compile time) when displaying
variables of type db_expr_t.

This fixes a problem where ddb(4) would only display the low 32-bits
of registers for an ILP32 kernel on SH5, even though registers
(and db_expr_t) are always 64-bits wide.
2003-05-17 09:58:03 +00:00
isaki 8e975eac87 Use err(3), instead of original error(). 2003-05-17 09:55:43 +00:00
scw 273f50f75f Don't assume sizeof(db_expr_t) == sizeof(long).
Ditto for sizeof(db_addr_t), although I don't think this
one is currently an issue.
2003-05-17 09:48:05 +00:00
isaki 0b4ed52e83 Style and indent fix. 2003-05-17 09:43:58 +00:00
dsl 35605a88c0 A slightly better inet_parse(), tested in isolation. 2003-05-17 09:39:04 +00:00
scw 31a6b2aa80 Mask off the lowest two bits of the disassembly start address. This avoids
misaligned references caused by the SHmedia bit.
2003-05-17 09:31:33 +00:00
isaki b397b57870 Correct argument type of isdigit().
PR port-x68k/21173 by Christian Biere.
2003-05-17 09:24:15 +00:00
scw d1fb17639e defflag GT_ECC. 2003-05-17 08:27:58 +00:00
scw f8a82ee618 Fix some DPRINTF statements to deal with bus_addr_t and bus_size_t types
defined in terms if 'int' instead of 'long'.
2003-05-17 08:23:14 +00:00
lukem 33018a010a improve description of how "build.sh -m mach" sets the default
MACHINE_ARCH, and list the special cases that this does not occur for.
2003-05-17 08:10:39 +00:00
lukem e128ff2fcf Change evbsh3 to be like evbmips, in that a default MACHINE_ARCH
won't be provided for a MACHINE of "evbsh3"; the user has to explicitly
use "evbsh3-eb" or "evbsh3-el"
2003-05-17 07:52:52 +00:00
christos dfc37ed355 clock.o depends on config_time.h 2003-05-17 05:39:35 +00:00
itojun 6213663758 avoid constant, use sizeof
[not sure about string termination here, so leave strncpy untouched]
2003-05-17 03:12:08 +00:00