Commit Graph

13695 Commits

Author SHA1 Message Date
enami
3df6d33667 Fix race condition on reallocation of huge category.
We need to remove the old region before mremap() since if it relesae the
old region, other thread may map it for the same huge category allocation
and insert it to the tree before we acquire a lock after mremap().

Fixes PR/42876.
2010-03-04 22:48:31 +00:00
roy
1f27d9b179 Convert padding for unknown capabilities as well. 2010-03-04 15:35:26 +00:00
roy
6855db0f30 Convert padding and give terminfo some default assumptions about termcap. 2010-03-04 15:16:39 +00:00
roy
ca77b139e2 Abort an error. 2010-03-03 12:09:49 +00:00
roy
4b2d6106cf Use _ti_get_token instead of strsep when parsing termcap entries.
This allows us to handle \E\ as a valid sequence.
2010-03-02 14:11:11 +00:00
christos
4fc887422c - KNF
- fix hertz()
- fix error and warning messages
2010-03-01 19:52:38 +00:00
pooka
15a168ac89 Join today's manpage mania by updating this to reflect the current
situation a "little" better.
2010-03-01 17:20:44 +00:00
pooka
510a73e003 Introduce RUMP_COMPONENT. It behaves mostly like a simplified
module which is linked into the kernel and cannot be unloaded.
The main purpose is to get the proper constructors run and create
any /dev nodes necessary for said component.  Once more of the
kernel (e.g. networking stack and device drivers) are converted to
MODULE and devfs pops up from somewhere, rump components can be
retired.
2010-03-01 13:12:19 +00:00
roy
c6aefd4d60 Escape , when converting to terminfo. 2010-03-01 11:02:31 +00:00
dholland
5c7d0d1fb6 compile.c needs sys/endian.h; PR 42875 from Henning Petersen. 2010-03-01 01:59:48 +00:00
pooka
6e4a9f9133 librumpuser is not _KERNEL code and does not belong in sys. Move
the source files from src/sys/rump/librump/rumpuser to src/lib/librumpuser
(from where it is already built).  Even so, keep rumpuser.h in
sys/rump/include for kernel source tree self-containment.
2010-02-26 18:54:20 +00:00
wiz
6d85ff35e1 '>' replacement for HTML output, be explicit about slash. 2010-02-26 07:03:49 +00:00
roy
007ba6f7e2 Implement captoinfo so that we can convert $TERMCAP into $TERMINFO.
We don't currently map %> %B %D.
That means no conversion for regent100, hz1500, act4, act5, mime terms.
2010-02-26 00:09:00 +00:00
roy
478e5b9ae4 If we only have a name then we flatten to an alias. 2010-02-25 23:44:02 +00:00
matt
7b012669b8 Adapt to <powerpc/spr.h> breakup. 2010-02-25 23:34:54 +00:00
wiz
d2a81ca5b2 Uncomment crash(8) reference. 2010-02-25 17:15:55 +00:00
drochner
90f3894847 fix wrong widechar assignment for "up arrow" 2010-02-25 10:56:24 +00:00
drochner
d32fd438b1 document wsyncup/wsyncdown/wcursyncup 2010-02-24 13:02:13 +00:00
drochner
452834f264 misc fixes and improvements:
-call setlocale(LC_CTYPE, "") before nl_langinfo(CODESET) if the
 locale settings is (still) at "C" - otherwise the CODESET doesn't work
-fix the type of the WACS_* symbols -- this needs to be cchar_t*
-add safeguards where the return value of wcwidth() is used for
 loop counters or indexing -- it can be -1
-use more common code in the widechar support case -- in particular
 let the wchar functions do the work even if chtype ones were called
-implement wcursyncup/wsyncup/wsyncdown
-somewhat experimental: allow ACS_* variables to refer to WACS_*
 table entries -- this way, programs using the old chtype using API
 can use UTF8 line drawing on terminals which support UTF8 but not
 ACS switching
-fix some logics bugs in UTF8 recognition and ALTCHARSET handling
2010-02-23 19:48:26 +00:00
roy
fde317d2b1 libterminfo can now compile a single terminfo description which allows
$TERMINFO to be a terminfo description as well as a file reference.

This enables the user to modify the terminfo description on read-only
media.
2010-02-22 23:05:39 +00:00
wiz
66c83b53c8 Bump date for previous. 2010-02-20 10:23:04 +00:00
drochner
f138ed81f2 explain a non-portable behavior 2010-02-19 19:09:15 +00:00
joerg
7921be2c51 Link libroken against libcrypt for crypt(3). 2010-02-19 17:57:06 +00:00
joerg
e8e2c01488 libss uses strupr from libroken, so depend on that. 2010-02-19 17:48:59 +00:00
njoly
62fab5d4b7 Do clean generated terminfo.5 file. 2010-02-19 13:53:17 +00:00
christos
48bf0eec29 Fix a bug reported by Gene, and debugged by Robert Elz. fsck_ffs can coredump
if the timezone file fails to load, due to late initialization of sp->goahead
to false in tzload, causing localsub to return NULL in the "cannot happen"
case. The fix is belt and suspenders:
	- initialize sp->goback and sp->goahead very early in tzload
	- replace all malloc calls with callocs, and remove the bogus
	  casts (it is not the 70's anymore!)
2010-02-17 17:25:55 +00:00
dyoung
20ecd150d5 Link atomic_cas.3 to atomic_cas_{32,64,ptr,uint,ulong}_ni.3. 2010-02-12 22:34:38 +00:00
dyoung
ba71f034aa With help from rmind@, describe the non-interlocked (*_ni) variants of
the standard atomic compare-and-swap operations.  Tell some caveats.

Manual page links, *_ni.3 -> atomic_cas.3 are coming up after a
successful 'build.sh distribution'.
2010-02-12 22:23:17 +00:00
wiz
3127fa5dcf Fix typo. 2010-02-12 12:29:10 +00:00
roy
420f923a19 Store the generated compiled terminfo descriptions so that we can build
a consistent library just from source.
2010-02-12 12:18:33 +00:00
martin
33f9f146f2 Fix an array bounds check - fixes PR lib/42793.
Restore a comment (from libterm/tputs.c), requested by jdc.
2010-02-12 10:36:07 +00:00
roy
c1a1881ef9 Don't try to map obsolete termcap bc and nl to terminfo. 2010-02-12 10:18:56 +00:00
roy
1bc5794aa0 Change from scroll_forward to cursor_down.
cursor_down is more similar to our old termcap use of nl.
Fixes PR lib/42770.
2010-02-12 10:06:15 +00:00
wiz
6e41b81e29 Oxford serial comma. 2010-02-11 16:28:06 +00:00
roy
45b8382fe3 Include xterm. 2010-02-11 14:49:56 +00:00
roy
2680cfc1a1 Use $TOOL_TIC 2010-02-11 14:44:44 +00:00
roy
b32b792e3b Respect TERMINFO_DIRS and document using an embedded database. 2010-02-11 14:36:09 +00:00
roy
a2e27dcd47 Use structures so we know how long each description is. 2010-02-11 13:11:47 +00:00
roy
582936ff0d Don't assume the terminal has a description. 2010-02-11 11:45:47 +00:00
roy
0c02e7a2e0 Allow a NULL description. 2010-02-11 09:42:03 +00:00
roy
1aacca65aa Remove silly debug. 2010-02-11 09:34:12 +00:00
roy
90cead5eeb Embed ansi, dumb, vt100, vt220 and wsvt25 compiled terminal descriptions
into libterminfo.
Constify some foo.
2010-02-11 00:27:09 +00:00
roy
bf4a786d84 Correct date 2010-02-11 00:22:41 +00:00
roy
64c4b99ad2 We should always generate terminfo.5 to save human error syncing. 2010-02-09 22:16:12 +00:00
roy
a017e721b1 Fix an off-by-one error.
Thanks to Matthias Drochner.
2010-02-08 20:45:22 +00:00
wiz
3d24ede313 Sync with terminfo(5): Remove /etc/terminfo.db. 2010-02-06 07:12:25 +00:00
roy
298c3fd52c Don't look in /etc for a terminfo database.
Don't report the rescue database if we did not find the terminal in
there AND we were able to access prior databases.
2010-02-05 19:21:02 +00:00
he
1c8b1eb3f5 More adaptation for ports with unsigned char as char. 2010-02-05 14:39:07 +00:00
roy
ae351fab5b Store the aliases against the entry, so that infocmp can reproduce them.
Handy for creating smaller terminfo databases.
2010-02-05 12:31:56 +00:00
roy
e0d0a8eecc Allow loading of a terminfo database in /rescue. 2010-02-05 09:42:21 +00:00