History log of /openbsd-current/lib/libcurses/tinfo/read_entry.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.19 12-Apr-2024 millert

Avoid snprintf() of NULL when _nc_get_source() returns NULL.
The filename buffer is not actually used in this case but it is
safer to set it to the empty string than to leave it uninitialized.
OK tb@


Revision tags: OPENBSD_7_5_BASE
# 1.18 17-Oct-2023 nicm

Update ncurses and associated libraries (form, panel, menu) to
6.4-20230826 (from 5.7-20081102).

Based on result from Thomas Dickey's ncu2openbsd script and then
modified. Switches to the upstream tput. Major bump for the ncurses
libraries and for libedit and libreadline.

Help from tb, millert.

ok deraadt sthen


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.17 03-Dec-2015 nicm

Instead of using our own custom BDB terminfo databases, use the ncurses
files in /usr/share/terminfo/*. This removes a large difference from
upstream ncurses and other systems.

ok millert


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 12-Jan-2010 nicm

Update to ncurses 5.7, with local changes reapplied.

This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.

A major bump for libcurses, libpanel, libform and libmenu.

ok deraadt


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.15 29-Jan-2008 krw

More read/write result checking fixes to avoid unsigned comparisons vs
-1.

ok henning@ beck@ ray@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.14 18-Mar-2003 millert

Use strlcpy() / strlcat() throughout.


# 1.13 17-Mar-2003 millert

use snprintf throughout


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.12 22-Jan-2001 millert

Update to ncurses-5.2-20010114


Revision tags: OPENBSD_2_8_BASE
# 1.11 22-Oct-2000 millert

update to ncurses 5.2


# 1.10 08-Oct-2000 millert

update to ncurses-5.1-20001007


Revision tags: OPENBSD_2_7_BASE
# 1.9 13-Mar-2000 millert

update to ncurses-5.0-20000311


# 1.8 10-Mar-2000 millert

Update to ncurses-5.0-20000304


# 1.7 09-Jan-2000 millert

Update to ncurses-5.0-20000108:
+ add prototype for erase() to curses.h
+ add TRACE_DATABASE flag for trace().
+ formatting changes (style)


# 1.6 02-Jan-2000 millert

+ corrected conversion from terminfo rs2 to termcap rs (cf: 980704)
+ make conversion to termcap ug (underline glitch) more consistently applied.
+ modify read_termtype(), fixing 'toe', which could dump core when it
found an incomplete entry such as "dumb" because it did not
initialize its buffer for _nc_read_file_entry().
+ use explicit VALID_NUMERIC() checks in a few places that had been
overlooked, and add a check to ensure that init_tabs is nonzero,
to avoid divide-by-zero (reported by Todd C Miller).


Revision tags: OPENBSD_2_6_BASE
# 1.5 15-Aug-1999 millert

Update to ncurses-5.0-990814


Revision tags: OPENBSD_2_5_BASE
# 1.4 02-Mar-1999 millert

ncurses-4.2-990301


# 1.3 23-Jan-1999 millert

make _nc_read_file_entry() look in terminfo.db too. Makes the -A and -B flags of infocmp more useful.


# 1.2 22-Jan-1999 millert

Move call to _nc_read_bsd_terminfo_entry() to _nc_read_entry() so reading
terminfo.db is transparent. This requires us to be able to tell which
of the entries in pathvec held the terminfo entry. To make that work
we only pass one pathname to cgetent(3) at a time. This might be a
slight performance hit but should not be noticable in normal use.


# 1.1 18-Jan-1999 millert

ncurses-4.2-990116


# 1.18 17-Oct-2023 nicm

Update ncurses and associated libraries (form, panel, menu) to
6.4-20230826 (from 5.7-20081102).

Based on result from Thomas Dickey's ncu2openbsd script and then
modified. Switches to the upstream tput. Major bump for the ncurses
libraries and for libedit and libreadline.

Help from tb, millert.

ok deraadt sthen


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.17 03-Dec-2015 nicm

Instead of using our own custom BDB terminfo databases, use the ncurses
files in /usr/share/terminfo/*. This removes a large difference from
upstream ncurses and other systems.

ok millert


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 12-Jan-2010 nicm

Update to ncurses 5.7, with local changes reapplied.

This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.

A major bump for libcurses, libpanel, libform and libmenu.

ok deraadt


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.15 29-Jan-2008 krw

More read/write result checking fixes to avoid unsigned comparisons vs
-1.

ok henning@ beck@ ray@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.14 18-Mar-2003 millert

Use strlcpy() / strlcat() throughout.


# 1.13 17-Mar-2003 millert

use snprintf throughout


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.12 22-Jan-2001 millert

Update to ncurses-5.2-20010114


Revision tags: OPENBSD_2_8_BASE
# 1.11 22-Oct-2000 millert

update to ncurses 5.2


# 1.10 08-Oct-2000 millert

update to ncurses-5.1-20001007


Revision tags: OPENBSD_2_7_BASE
# 1.9 13-Mar-2000 millert

update to ncurses-5.0-20000311


# 1.8 10-Mar-2000 millert

Update to ncurses-5.0-20000304


# 1.7 09-Jan-2000 millert

Update to ncurses-5.0-20000108:
+ add prototype for erase() to curses.h
+ add TRACE_DATABASE flag for trace().
+ formatting changes (style)


# 1.6 02-Jan-2000 millert

+ corrected conversion from terminfo rs2 to termcap rs (cf: 980704)
+ make conversion to termcap ug (underline glitch) more consistently applied.
+ modify read_termtype(), fixing 'toe', which could dump core when it
found an incomplete entry such as "dumb" because it did not
initialize its buffer for _nc_read_file_entry().
+ use explicit VALID_NUMERIC() checks in a few places that had been
overlooked, and add a check to ensure that init_tabs is nonzero,
to avoid divide-by-zero (reported by Todd C Miller).


Revision tags: OPENBSD_2_6_BASE
# 1.5 15-Aug-1999 millert

Update to ncurses-5.0-990814


Revision tags: OPENBSD_2_5_BASE
# 1.4 02-Mar-1999 millert

ncurses-4.2-990301


# 1.3 23-Jan-1999 millert

make _nc_read_file_entry() look in terminfo.db too. Makes the -A and -B flags of infocmp more useful.


# 1.2 22-Jan-1999 millert

Move call to _nc_read_bsd_terminfo_entry() to _nc_read_entry() so reading
terminfo.db is transparent. This requires us to be able to tell which
of the entries in pathvec held the terminfo entry. To make that work
we only pass one pathname to cgetent(3) at a time. This might be a
slight performance hit but should not be noticable in normal use.


# 1.1 18-Jan-1999 millert

ncurses-4.2-990116


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.17 03-Dec-2015 nicm

Instead of using our own custom BDB terminfo databases, use the ncurses
files in /usr/share/terminfo/*. This removes a large difference from
upstream ncurses and other systems.

ok millert


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 12-Jan-2010 nicm

Update to ncurses 5.7, with local changes reapplied.

This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.

A major bump for libcurses, libpanel, libform and libmenu.

ok deraadt


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.15 29-Jan-2008 krw

More read/write result checking fixes to avoid unsigned comparisons vs
-1.

ok henning@ beck@ ray@


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.14 18-Mar-2003 millert

Use strlcpy() / strlcat() throughout.


# 1.13 17-Mar-2003 millert

use snprintf throughout


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.12 22-Jan-2001 millert

Update to ncurses-5.2-20010114


Revision tags: OPENBSD_2_8_BASE
# 1.11 22-Oct-2000 millert

update to ncurses 5.2


# 1.10 08-Oct-2000 millert

update to ncurses-5.1-20001007


Revision tags: OPENBSD_2_7_BASE
# 1.9 13-Mar-2000 millert

update to ncurses-5.0-20000311


# 1.8 10-Mar-2000 millert

Update to ncurses-5.0-20000304


# 1.7 09-Jan-2000 millert

Update to ncurses-5.0-20000108:
+ add prototype for erase() to curses.h
+ add TRACE_DATABASE flag for trace().
+ formatting changes (style)


# 1.6 02-Jan-2000 millert

+ corrected conversion from terminfo rs2 to termcap rs (cf: 980704)
+ make conversion to termcap ug (underline glitch) more consistently applied.
+ modify read_termtype(), fixing 'toe', which could dump core when it
found an incomplete entry such as "dumb" because it did not
initialize its buffer for _nc_read_file_entry().
+ use explicit VALID_NUMERIC() checks in a few places that had been
overlooked, and add a check to ensure that init_tabs is nonzero,
to avoid divide-by-zero (reported by Todd C Miller).


Revision tags: OPENBSD_2_6_BASE
# 1.5 15-Aug-1999 millert

Update to ncurses-5.0-990814


Revision tags: OPENBSD_2_5_BASE
# 1.4 02-Mar-1999 millert

ncurses-4.2-990301


# 1.3 23-Jan-1999 millert

make _nc_read_file_entry() look in terminfo.db too. Makes the -A and -B flags of infocmp more useful.


# 1.2 22-Jan-1999 millert

Move call to _nc_read_bsd_terminfo_entry() to _nc_read_entry() so reading
terminfo.db is transparent. This requires us to be able to tell which
of the entries in pathvec held the terminfo entry. To make that work
we only pass one pathname to cgetent(3) at a time. This might be a
slight performance hit but should not be noticable in normal use.


# 1.1 18-Jan-1999 millert

ncurses-4.2-990116