Commit Graph

205799 Commits

Author SHA1 Message Date
christos a6015585d7 use RUMPFS_MAXNAMLEN consistently. 2011-09-27 01:45:04 +00:00
christos 874c018142 it is __CTASSERT() 2011-09-27 01:43:39 +00:00
christos 81de71ae58 use KERNEL_NAME_MAX to enforce the same limit to names as before, and
make sure that MAXNAMLEN == NAME_MAX
2011-09-27 01:42:45 +00:00
christos 803cf26243 Introduce KERNEL_NAME_MAX = 255, and bump NAME_MAX to 511. This makes
NAME_MAX match MAXNAMLEN, while at the same time does not allow names
to exceed KERNEL_NAME_MAX (enforced in vfs_lookup) so that binaries
don't break.
2011-09-27 01:40:32 +00:00
christos 1e439c8185 define NILFS_MAXNAMLEN and use it. 2011-09-27 01:34:41 +00:00
christos 2fcd0204c6 return UDF_MAXNAMLEN instead of NAME_MAX 2011-09-27 01:33:30 +00:00
christos 367fc9326f return TMPFS_MAXNAMLEN instead of NAME_MAX 2011-09-27 01:32:21 +00:00
christos ede3ff339a use FFS_MAXNAMLEN instead of NAME_MAX, making sure that it matches with
EXT2FS_MAXNAMLEN and LFS_MAXNAMLEN.
2011-09-27 01:30:54 +00:00
christos 5377c21fee use ISO_MAXNAMLEN instead of NAME_MAX 2011-09-27 01:27:44 +00:00
christos 44bf8904fe define RUMPFS_MAXNAMLEN and use it. 2011-09-27 01:25:32 +00:00
christos 44905f123b define PROCFS_MAXNAMLEN and use it. 2011-09-27 01:23:59 +00:00
christos a3c0501888 define KERNFS_MAXNAMLEN and use it.` 2011-09-27 01:23:05 +00:00
christos 7004654c0f define FDESC_MAXNAMLEN and use it. 2011-09-27 01:22:12 +00:00
christos 9d292e0f12 remove unused constant 2011-09-27 01:16:35 +00:00
christos d30021427a use NAME_MAX instead of MAXNAMLEN 2011-09-27 01:14:47 +00:00
christos 3a8df9f090 - rename UDF_MAX_NAMELEN -> UDF_MAXNAMLEN
- use NAME_MAX instead of MAXNAMLEN
2011-09-27 01:13:16 +00:00
christos a00d98eb66 define and use TMPFS_MAXNAMLEN instead of MAXNAMLEN 2011-09-27 01:10:43 +00:00
christos 8fd1333afa use NAME_MAX instead of MAXNAMLEN 2011-09-27 01:08:55 +00:00
christos ba2fe8705f use NFS_MAXNAMLEN for all names. 2011-09-27 01:07:38 +00:00
christos 0d448f6c48 use NFS_MAXPATHLEN instead of MAXPATHLEN 2011-09-27 01:05:08 +00:00
jym 325494fe33 Modify *ASSERTMSG() so they are now used as variadic macros. The main goal
is to provide routines that do as KASSERT(9) says: append a message
to the panic format string when the assertion triggers, with optional
arguments.

Fix call sites to reflect the new definition.

Discussed on tech-kern@. See
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html
2011-09-27 01:02:33 +00:00
christos 4fa49ab869 define and use ISO_MAXNAMLEN instead of MAXNAMLEN 2011-09-27 01:01:43 +00:00
christos 1c4884ad71 use the filesystem specific namemax not a hard-coded MAXNAMLEN 2011-09-27 00:56:14 +00:00
christos c51fe45f15 use CODA_MAXNAMLEN instead of bogus MAXNAMLEN 2011-09-27 00:54:47 +00:00
christos ac55ba72e3 return the namemax from the bsd statvfs which is filesystem dependent, not
a random value.
2011-09-27 00:52:55 +00:00
jym 586001f7c7 Document new *ASSERTMSG() prototype, and update KASSERT(9).
See also
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html
2011-09-27 00:36:49 +00:00
christos b96df713de move the size marker back to where it was, but fix the name. 2011-09-27 00:35:38 +00:00
christos e5b54c1cb6 compute the entry size correctly. 2011-09-26 22:43:07 +00:00
jym bfc65ee0bf Fix a fallout with my xensuspend merge: talk_to_backend() returns a
boolean, so checking for "true" with "== 0" is... wrong.

Now xennet(4) should work as expected, and not stay in the InitWait state
(which blocks network communication with the backend).

Thanks to riz@ and sborrill@ for reporting breakage with -current
xennet(4) after my merge.
2011-09-26 21:44:09 +00:00
christos be84a9917e remove pre-gcc-4.5 mknative remnants that have long ceased to function. 2011-09-26 21:16:14 +00:00
christos d3f9240343 Provide regset functions and gut parts that the new debugging thread library
does not provide yet, so that we can link. As expected this does not work
yet.
2011-09-26 20:38:54 +00:00
sjg 4a9afb4566 Update description for V4. 2011-09-26 19:02:39 +00:00
christos a6ca113b40 Resurrect old thread debugging code. Not hooked in, compiles. 2011-09-26 18:55:56 +00:00
jakllsch d85aed1639 options PMS_DISABLE_POWERHOOK is obsolete. 2011-09-26 18:14:07 +00:00
tsutsui 234e509874 Set WARNS?=2. 2011-09-26 18:08:09 +00:00
jakllsch 0597278574 Define and use symbolic bits in registers. 2011-09-26 18:07:37 +00:00
tsutsui 431958d51c Regenerate these compiled files properly in our own
xsrc/external/mit/xkeyboard-config/dist/ directory, i.e.
- pull changes from xkeyboard-config 2.0 to 2.3
- put back entries for sharp machines (zaurus and hpcarm wzero3s)
  removed in rev 1.4 (xkeyboard-config 2.0 merge)

XXX1: can't we generate these files during build?
XXX2: hpcarm W-ZERO3 keyboard on X still has some troubles...
2011-09-26 15:19:45 +00:00
christos 09d11d2f8f use gstdint.h from libdecnumber. 2011-09-26 14:31:25 +00:00
mrg 5f7fcf61d3 mknative files for armeb / binutils 2.21.1a 2011-09-26 09:33:45 +00:00
mrg 8f6ce38a21 mknative files for arm / binutils 2.21.1a
(built with a hack to gas/config/tc-arm.c.)
2011-09-26 09:26:58 +00:00
jruoho cb6e031ff5 Fix wrong err(3) message (no such thing as IOC_CPU_GETINFO). 2011-09-26 06:51:57 +00:00
christos 605c6d89d1 Build glue for x86_64. This is working gdb for amd64 minus kernel stacktrace
support. It is disabled for now because it breaks user program traces.
2011-09-26 03:02:44 +00:00
christos 97417a67ca mknative for gdb7 2011-09-26 02:36:19 +00:00
christos 3e93b50f82 Disable our custom stack unwinder for now. It is completely broken now because
gdb asserts when a frame returns 0. In previous versions of gdb, it just
printed 0, and stopped scanning. Our unwinder produces the same results in
both versions of gdb, i.e. it is broken and worse than the current gdb
default. We will need to revisit this for kernel debugging.
2011-09-26 02:35:33 +00:00
mrg b7e0bd3662 match END() with a relevant ENTRY*(). gas 2.21 complains about the
non-constant-ness of the symbol otherwise.
2011-09-26 01:52:22 +00:00
mrg 62b8778341 fix the spelling of libgomp_g.a. 2011-09-26 00:07:26 +00:00
joerg 41c1da9cfb Allow analyze to work by including bsd.clang-analyze.mk for kernels 2011-09-25 22:26:33 +00:00
christos ca07041815 mention kern.tty.qsize requested by Matthew Mondor. 2011-09-25 21:47:22 +00:00
jym c0cdfbbb3d Do as Joerg said and kill the __STDC__ blocks. They only make sense for
things used by assembler, which won't be the case for these macros.
2011-09-25 20:31:18 +00:00
christos 5ecf4f1c7e #define _KMEMUSER so that the struct lwp test works. 2011-09-25 20:26:04 +00:00