Commit Graph

13989 Commits

Author SHA1 Message Date
jruoho
413ef23a32 Add more bugs. Namely, besides the return values that are confusing, no
function in a modern standard C library, exposed by <stdlib.h>, should be as
easy to (buffer) overflow as strsuftollx(3).

In addition, improvements to wording and markup.
2010-05-01 08:12:30 +00:00
jruoho
4519228649 Improvements to wording and markup.
In addition, list more bugs and caveats. Namely, the NetBSD implementation
(like the FreeBSD one where this was ported to) requires that the comparison
keys are allocated dynamically, and that hdestroy() will try to free(3) each
key. This obviously severely limits the portability, given that other
implementations (for example, the Linux one) make no such assumptions. Both
approaches are legitimate, and thus the real bug is in the ambiguity of the
standard.
2010-05-01 06:18:03 +00:00
jruoho
a293ac8fcc Rewrite the HISTORY section. 2010-04-30 10:24:02 +00:00
jruoho
eecb0b5e2c Put the period outside the quotation marks. 2010-04-30 10:09:23 +00:00
jruoho
cb375ee477 Add STANDARDS and CAVEATS. The latter notes the ambiguity of tdelete() when
deleting the root node.
2010-04-30 10:06:52 +00:00
jruoho
68cb312101 Remove the note about eaccess(); no such thing in NetBSD. 2010-04-30 09:41:59 +00:00
jruoho
42e4725801 Also: in the example EOVERFLOW is probably better than ENOMEM. 2010-04-30 07:16:35 +00:00
jruoho
67e69a6bf8 As err(3) instructs, use EXIT_FAILURE in the example. 2010-04-30 07:14:15 +00:00
jruoho
75d4d306c5 Steal the "malloc() vs. calloc()" -idiom from the OpenBSD's malloc(3).
While it may be debated how useful this is, good idiomatic usage examples
are exactly the kind of thing one would hope to see more in manual pages.
2010-04-30 07:00:51 +00:00
wiz
779fbbb100 Wording. 2010-04-30 06:54:16 +00:00
wiz
5a5627574d Sort errors. 2010-04-30 06:51:52 +00:00
wiz
0264ec21bd Merge two entries for the same error. 2010-04-30 06:48:20 +00:00
jruoho
54f0f8584b Use a SECURITY CONSIDERATIONS instead of the BUGS section, and steal this
section from FreeBSD (with minor modifications).
2010-04-30 06:34:23 +00:00
jruoho
1ad0e6c25b Put SECURITY CONSIDERATIONS as the last section. 2010-04-30 06:23:56 +00:00
jruoho
2f941c83c7 Fix the mess in the sections; someone went to sleep in the middle of a
sentence...
2010-04-30 06:22:28 +00:00
jruoho
b0e9ddf609 They've finally made gets(3) obsolete (in POSIX, at least). 2010-04-30 06:00:14 +00:00
jruoho
1b80a21f09 Add HISTORY. 2010-04-30 05:56:14 +00:00
jruoho
fba71b9825 Marked as legacy already in SUSv2; removed in POSIX 2001. 2010-04-30 05:50:46 +00:00
jruoho
d307542670 Deprecated in POSIX (rev. 2008). 2010-04-30 05:09:23 +00:00
jruoho
4078f3e9d1 Also tmpnam(3) and tempnam(3) are now obsolete in POSIX. 2010-04-30 04:55:10 +00:00
jruoho
92370ee67d Interestingly, the committees plan to remove also isascii(3) and toascii(3)
in the future.
2010-04-30 04:46:18 +00:00
jruoho
70d2311835 More obsolete things. These are all already deprecated in NetBSD, but it is
worth noting that also the standard has marked these as legacy.
2010-04-30 04:39:16 +00:00
jruoho
a2ebffc113 Reference timeradd(3). 2010-04-30 04:17:45 +00:00
jruoho
eccc1c42e1 Add STANDARDS section. Note that both functions were marked as obsolescent
in POSIX (2008); "timer_gettime(2) and timer_settime(2) should be used".
2010-04-30 04:15:49 +00:00
jruoho
71a03dd7f6 Small improvements to wording and markup. 2010-04-30 04:06:20 +00:00
jruoho
c6d218be32 .Nm -> .Fn. 2010-04-30 03:52:13 +00:00
pooka
30df4c9f8c If vfstype is MOUNT_RUMPFS, assume we don't actually want to mount
a file system, but attach to the root in the fs namespace of a rump
kernel.
2010-04-29 22:34:21 +00:00
jruoho
ec4fdaa41e It was nice to expect fts(3) to appear in the '88 revision. But perhaps
people had too high hopes.
2010-04-29 17:39:03 +00:00
jruoho
934551e44a No more usleep(3) in POSIX; "use nanosleep(2) instead". 2010-04-29 17:29:56 +00:00
jruoho
6adec4717c Fix markup. 2010-04-29 17:17:18 +00:00
jruoho
3d0a5d8f1c Note that also POSIX has deprecated utime(3). 2010-04-29 17:07:00 +00:00
jruoho
648a1295d8 Fix the standards: utimes(2) is still in SUSv4, although marked as legacy. 2010-04-29 17:02:38 +00:00
jruoho
61564b38a1 Note the ambiguity of the return value in the BUGS section.
From Christian Biere <christianbiere@gmx.de> in PR #39392.
2010-04-29 10:03:12 +00:00
joerg
79b996cbc6 Don't mix opening and closing macros of different types. 2010-04-29 08:35:03 +00:00
jruoho
c25207d763 Note POSIX compliance. 2010-04-29 08:06:21 +00:00
wiz
0c57838d7b Sort errors. 2010-04-29 07:31:02 +00:00
wiz
3292536e4b Add punctuation. 2010-04-29 07:27:30 +00:00
wiz
a917229f2a Improve a sentence. 2010-04-29 07:26:39 +00:00
jruoho
c792ab3e8e Note that utimes(2) no longer enjoys the blessing of POSIX. 2010-04-29 07:14:35 +00:00
jruoho
157d0c3eea Add some STANDARDS lingo, mainly to note the functions that have been
removed from POSIX (2008).
2010-04-29 06:54:26 +00:00
jruoho
c329b28a22 Properly mark the standard that "deprecated" all of these. 2010-04-29 06:07:35 +00:00
jruoho
8cd9bb9479 Note the recent changes. 2010-04-29 05:42:04 +00:00
jruoho
092ff05778 Note that the ucontext(2) et. al. were first moved from X/OPEN extensions to
the base POSIX-2001 and later marked as obsolete in POSIX-2008.
2010-04-28 14:07:03 +00:00
jruoho
2da6d4a4d9 Only put the actual header for the .In line. 2010-04-28 07:47:09 +00:00
jruoho
494f19760f Reference ffs32(3). Also note POSIX compliance and the movement of the
header from <string.h> to <strings.h>.
2010-04-28 07:44:04 +00:00
pooka
db171f695e Add rumpuser interface to fetch number of host cpus. 2010-04-28 00:33:45 +00:00
jruoho
fca63cde02 Note POSIX compliance. 2010-04-27 15:26:59 +00:00
jruoho
4efab6a05e Use .In for includes and .Va when listing the structure members. 2010-04-27 15:16:28 +00:00
jruoho
5430c65883 .Pp after .Ed. 2010-04-27 14:26:52 +00:00
wiz
eba2c99734 Various fixes, mostly for typos. 2010-04-25 10:32:44 +00:00
joerg
b9cf7d31ab Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00
dholland
df62afc03b Edit previous HISTORY patch for style; note our 64-bit time_t change.
Bump date.
2010-04-24 01:35:50 +00:00
drochner
d4def06880 -build ldexp/frexp/modf locally again rather than relying on libc
reaching over, to get things into a sane state,
-do the usual namespace protection game with scalbn(f) because it
 is used internally
(more symbol renamings are necessary)

The weak_alias change for mc68881 is untested.
2010-04-23 19:17:07 +00:00
drochner
87941501db use the local versions of ldexp/frexp/modf again rather than pulling
in libm source code. The libm functions depend on other libm functions,
this requires symbol renaming, and with the reachover method this
is going to be a mess. Also, bundling the dependencies into one .o
file has the potential to cause symbol conflicts on static linking.
2010-04-23 19:04:54 +00:00
jruoho
829390ffbf gcc -> GCC, offset indent. 2010-04-22 13:41:40 +00:00
jruoho
69cf4af7f3 Use .In for includes. 2010-04-22 08:00:34 +00:00
pooka
a08942d291 Actually, support rumpuser_kill() only on NetBSD, since signal
numbers may not match on non-NetBSD hosts.
2010-04-21 11:16:41 +00:00
pooka
3cc6a65772 Add rumpuser_kill, which sends a signal to a host process. 2010-04-21 11:13:29 +00:00
christos
ca8b6091c1 Use the same hack for Solaris and MacOS/X. This is not right, we only really
support UTF-8, but it will get us going until this is fixed properly.
From Jess Thrysoee
2010-04-20 02:01:13 +00:00
christos
72c00e4a7a \033 is more portable than \e still. 2010-04-18 21:17:47 +00:00
christos
df810c5405 ffs needs strings.h 2010-04-18 21:17:22 +00:00
christos
d29e250074 shame on solaris that is the last OS not supporting $() 2010-04-18 21:17:05 +00:00
apb
67ca6b24d2 The number of byte pairs to swap is len/2, not len/2+1. 2010-04-18 11:39:39 +00:00
apb
fa3abaaeb7 Bitwise operations on signed types are well-defined if the values
happen to be positive, and indeed the values here were guaranteed
to be positive, but some compilers complained anyway, so convert
the bitwise operations to arithmetic operations.
2010-04-18 10:51:33 +00:00
christos
d403570167 simplify 2010-04-18 04:54:33 +00:00
christos
665a4f86a1 fix lint 2010-04-17 21:42:43 +00:00
wiz
96a3ffaf7c Remove trailing whitespace. 2010-04-17 20:29:20 +00:00
wiz
8cd16a22d0 Join URL. 2010-04-17 20:28:47 +00:00
christos
885d0edc52 Change and document for POSIX compliance. 2010-04-17 17:57:39 +00:00
christos
b2cf198a4c add restrict 2010-04-17 17:50:13 +00:00
jruoho
6d890644fe Use the common template for the USENIX paper. Add URL. 2010-04-17 10:08:21 +00:00
christos
839bac947e From Jess Thrysoee
- Fix wint_t to Int confusion
2010-04-15 00:57:33 +00:00
christos
5443e9b772 From Jess Thrysoee
- use nl_langinfo to test for UTF-8, because some locales are UTF-8 without
     reflecting it in their names.
2010-04-15 00:56:40 +00:00
christos
a5b37ffc65 From Jess Thrysoee
expose ct_enc_width()
2010-04-15 00:55:57 +00:00
christos
939651fa2b From Jess Thrysoee
- NARROW_HISTORY and IGNORE_EXTCHARS should not take effect if locale is UTF-8
- account for multi byte char length in
2010-04-15 00:52:48 +00:00
christos
b77d4fa5c5 From Jess Thrysoee: call setlocale so we can test UTF-8 2010-04-15 00:50:46 +00:00
christos
a9dd944f6b From Jess Thrysoee: add ifndef around def of _GNU_SOURCE 2010-04-15 00:50:03 +00:00
pooka
2734e549f0 Some _t purification. no functional change. 2010-04-14 14:15:48 +00:00
wiz
24e353786d Join URL. 2010-04-14 13:07:19 +00:00
jruoho
16a83e93ba Add the USENIX paper of Miller and de Raadt to SEE ALSO. 2010-04-14 11:07:20 +00:00
wiz
3877f39979 Sort ERRORS. 2010-04-14 09:10:30 +00:00
jruoho
99e0ab963b Use a list and sort it by the entries in the structure. 2010-04-14 09:06:00 +00:00
jruoho
354bfa433d Add offsets to the indentation in couple of places. 2010-04-14 08:57:21 +00:00
jruoho
8e36ebc45f Bump date for previous. (How hard can it be to remember this.) 2010-04-14 08:49:49 +00:00
jruoho
85eede30d6 Use subtitles instead of a list. 2010-04-14 08:47:19 +00:00
njoly
378ab16605 Add missing double quote. 2010-04-14 07:20:27 +00:00
wiz
957fbddadb Uncomment pdf link for paper. 2010-04-13 10:45:46 +00:00
jruoho
175f8fdaa8 Add the USENIX paper of Jonathan Lemon to SEE ALSO. 2010-04-13 09:24:09 +00:00
wiz
e80bcec341 New sentence, new line. Sort errors. Remove trailing whitespace. 2010-04-06 14:26:59 +00:00
christos
ca843a73b0 PR/43128: Paul Koning: Threads support in ptrace() is insufficient for gdb to
debug threaded live apps: Add an optional lwpid in PT_STEP and PT_CONTINUE to
indicate which lwp to operate on, and implement the glue required to make it
work.
2010-04-06 13:50:22 +00:00
joerg
20fc76af98 Fix escape sequences 2010-04-05 21:35:36 +00:00
joerg
727da1104c \\ -> \e 2010-04-05 21:33:54 +00:00
joerg
ffec7f50c0 Fix escape sequences 2010-04-05 21:33:25 +00:00
joerg
eff7f134e1 \\ -> \e 2010-04-05 21:29:47 +00:00
joerg
1ff41cb93a Fix escape sequences 2010-04-05 21:29:09 +00:00
joerg
a3d484cd9e \\ -> \e 2010-04-05 21:25:01 +00:00
wiz
1bc7bb47a0 Sort ERRORS section. 2010-04-05 07:53:47 +00:00
wiz
a59af7eb39 Fix date. 2010-04-05 07:44:28 +00:00
jruoho
a6664c93e0 Mention the history of stat(2) and fix the history of open(2). 2010-04-03 15:48:52 +00:00
jruoho
22451322a2 The functions read(), wait(), and write() appeared already in v2 UNIX. 2010-04-03 15:43:46 +00:00
jruoho
7e0f77d0f3 Add a history section. From OpenBSD. 2010-04-03 15:42:22 +00:00
jruoho
e029f37fb0 An unlink() appeared already in v2 UNIX. 2010-04-03 15:35:06 +00:00
jruoho
22c60c14ce Add some history. 2010-04-03 15:13:43 +00:00
jruoho
c1b7f739cf Some interesting additions to the history section. From OpenBSD. 2010-04-03 14:49:31 +00:00
jruoho
086a18e995 Trivia: one .Pp after .El, speak about NULL instead of nil pointers, etc. 2010-04-03 14:40:34 +00:00
pooka
69381b7a05 fix a few pastos 2010-04-01 09:57:00 +00:00
mrg
d5a3d97bc4 build s_frexp.c, s_ldexp.c and s_modf.c here for new platforms, since they
don't exist as compat functions in libc.

current list of new platforms: powerpc64.

from dennis.c.ferguson@gmail.com in PR#43042.  idea to not put compat
functions into new platforms from drochner@netbsd.
2010-03-29 06:59:42 +00:00
tnozaki
542176520a woops, fogot to include limits.h. 2010-03-28 18:19:52 +00:00
tnozaki
19f5aa7162 MB_LEN_MAX should moved from MD to MI. 2010-03-28 14:08:22 +00:00
tnozaki
186e12cc6b avoid mbrtowc/wcrtomb buffer overrun when CPUARCH=hppa and MB_CUR_MAX > 6.
it is not usual case(merely used such mutibyte locale, eg. ja_JP.ISO-2022-JP).

[background]
before merging minoura-xpg4dl branch(2001), we argued and decided to increase
MB_LEN_MAX 1 -> 32 all CPUARCH(*but* we forgot to change it MD to MI).

without knowing that NetBSD/hp700(mergeing -current 2002) incorrectly set
MB_LEN_MAX=6 (maybe this value taken from FreeBSD). but our setlocale(3)
assumes __mb_len_max_runtime as 32, so that mbrtowc/wcrtomb may overrun.

we have to increase hppa's MB_LEN_MAX upto 32, and change it MD to MI
next libc major bump(scheduled next release 6.0).
2010-03-28 14:05:09 +00:00
tnozaki
377cb4e4f9 1. {wctype,wctrans,mbstate}_t: switch MD to MI like other
libc implementation (such as *BSD and glibc2).

2. don't typedef void * wc{type,trans}_t, suggested by soda@-san.
   it may pass through compiler type check, it's harmful.
   so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does).

no ABI change was made.
2010-03-27 22:14:09 +00:00
christos
533e2fe94f fix tpo. 2010-03-27 16:47:05 +00:00
tnozaki
5ad520e6d1 _locale_cache_t: change ldata and items to pointer for future binary compatibility. 2010-03-27 15:25:21 +00:00
explorer
fc70b598c4 fix the pthread pt_lid in the fork callback function that runs in the child instead of a function that may be going away. KNFify 2010-03-25 01:15:00 +00:00
explorer
3f82e012db Correctly set pt_lid in the child, after a fork 2010-03-24 07:27:22 +00:00
drochner
1982972a07 catch up with the __RENAME of nanosleep(2) a while ago, otherwise we
get the compatibility function which assumes a different struct timespec
2010-03-23 20:35:44 +00:00
drochner
ebfe3c0a28 remove some stray __weak_aliases, where the target functions were
__RENAMEd due to the time_t/dev_t type changes, which caused bogus
references to compat functions
now a libc built with BUILDCOLD is usable
2010-03-23 20:28:58 +00:00
christos
f576147073 https://bugzilla.redhat.com/show_bug.cgi?id=575383
Handle EINTR properly.
2010-03-22 22:59:06 +00:00
joerg
e382e1d38b Use .In instead of .Aq Pa and variantes for header files. 2010-03-22 22:00:37 +00:00
joerg
f63b030c15 Use .In instead of .Ar Pa for header files. 2010-03-22 21:58:31 +00:00
joerg
f70c7c0422 Use .In instead of .Ar Pa 2010-03-22 21:56:05 +00:00
joerg
3c70878e9a Use .In instead of .Ar Pa for headers. 2010-03-22 21:55:06 +00:00
joerg
1c3412fa2f Use .In for header files instead of .Ar Pa and variations. 2010-03-22 19:30:53 +00:00
jruoho
66475d5b9d Break the (too) big lead paragraph into three smaller ones. 2010-03-22 13:15:54 +00:00
pooka
1019474331 Wrap DOCALL and DOCALL_KLOCK in a new block (for easy adding of
debug prints before them.

XXX: can't use the standard do-while0 because lint doesn't like it.
2010-03-22 09:39:02 +00:00
mrg
3bdcb2e4b5 add a nop to provide enough space for the linker and long calls.
fixes link errors with 'cerror' and libposix.

from dennis.c.ferguson@gmail.com in PR#43010.
2010-03-22 02:17:23 +00:00
mrg
093c642fac replace kernel-only 'stmd' and 'lmd' operations in userland with equivalent
sequences of code, as done in eg, powerpc64/gen/_setjmp.S rev 1.2.

from dennis.c.ferguson@gmail.com in PR#43009.
2010-03-22 01:39:11 +00:00
mrg
4e60bef737 convert -idirafter to -isystem, as recommended by cgd in PR 11843.
most of the list in that PR were already done.
2010-03-22 01:29:29 +00:00
jruoho
67dcd1d1f0 Bump date for previous. 2010-03-21 20:38:20 +00:00
jruoho
341372abaa Note inttypes(3) also here. 2010-03-21 20:34:52 +00:00
jruoho
61f4a4ebdc Mention the recommended usage of inttypes(3) when applicable. 2010-03-21 19:55:19 +00:00
jruoho
ab524958e3 Emphasize imaxint_t. 2010-03-21 13:39:51 +00:00
tnozaki
56bf19aaea fix byte order mark related bug introduced by previous commit,
reported by Sverre Froyen via current-user, thanks!
2010-03-20 18:15:32 +00:00
joerg
ec66a10c91 Namespace protection for mi_vector_hash. 2010-03-19 18:11:30 +00:00
tnozaki
36a8b8869c 1. fix wrong byte order mark of utf-16, reported by NARUSE Yui -san.
patch provided by tshiozak@ -san.

2. don't eat 0xfeff/0xfffe if they don't appear at the first of bytestream.
noticed y tshiozak@ -san, patch provied by me.

thanks a lot.
2010-03-15 15:00:58 +00:00
mrg
19499f3f8d update all of these makefiles for the .so -> .pico change.
most of them are most harmless, but the libgcc parts are quite essential.
before this change, all the special rules for .pico files were not applied,
and exception handling wasn't enabled.  this caused c++ exceptions not to
work on sparc64.


this fixes the build of boost-headers (it was correctly calling exception
support broken!), which in turn makes all the things that depend upon it
to actually work again on sparc64.
2010-03-14 00:26:09 +00:00
uwe
6fc217346b Add memset to libkern on vax, moving existing memset.S to src/common.
While kernel source code is supposed to use <machine/macros.h> via
<sys/param.h> and pick an inline asm version from there, gcc itself
can generate direct calls to memset() for structure initialization, so
the symbol must be provided.

Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to
initialize a struct in uvm_fault_internal().
2010-03-12 09:12:34 +00:00
pooka
b405c8d23e mfs is a bit off in the sense that mount(2) doesn't return since
mfs uses the mounting process for the backing store memory.  I
guess mfs could be fixed to just reference the process vmspace and
let it return, but that would probably cause wait() to return for
other worms.  So it's easier to dance according to mfs's tune: if
mounting mfs, create a thread for extra execution context.
2010-03-08 12:38:14 +00:00
snj
d4a6f9b098 These functions are going to first appear in 5.1, not 6.0. 2010-03-08 02:35:50 +00:00
snj
b513aa9a56 Fix broken RCSID. 2010-03-08 01:05:20 +00:00
dholland
d5343f0177 indentation/whitespace 2010-03-07 23:49:14 +00:00
dholland
97e205be98 remove stray semicolon 2010-03-07 23:45:22 +00:00
pooka
05e0f1dba9 Update to use newstyle rump_module interfaces. 2010-03-05 18:49:30 +00:00
pooka
c2efc59235 During bootstrap, process all modinfos in a DSO in one go. Get
rid of dependency tricks, since they are no longer necessary.
2010-03-05 18:47:49 +00:00
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
roy
d8609d0687 Allow hash to be build on other hosts. 2010-02-04 12:25:08 +00:00
roy
7ffeaa6526 Include nbtool_config.h as we need to be part of the terminfo toolchain. 2010-02-04 10:27:08 +00:00
roy
eedd9ade82 Fix build issues on other hosts. 2010-02-04 09:46:26 +00:00
roy
c4a14cdcf2 Sync terminfo.5 changes into terminfo.5.in 2010-02-04 09:45:30 +00:00
wiz
69221deade More markup. 2010-02-04 09:12:55 +00:00
snj
51684bf8b3 Regenerate to pick up the changes from terminfo.5.in revision 1.3. 2010-02-03 21:02:39 +00:00