The NetBSD Project

CVS log for src/lib/libterminfo/curterm.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libterminfo

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13.2.1 / (download) - annotate - [select for diffs], Sun May 31 10:43:05 2020 UTC (3 years, 9 months ago) by martin
Branch: netbsd-8
Changes since 1.13: +7 -7 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.5 (colored)

Pull up following revision(s) (requested by roy in ticket #1552):

	lib/libterminfo/curterm.c: revision 1.14

terminfo: test strlcpy result against space free, not string length

riastradh@ yep, looks good.

Revision 1.13.12.1 / (download) - annotate - [select for diffs], Sun May 31 10:41:39 2020 UTC (3 years, 9 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.13: +7 -7 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.5 (colored)

Pull up following revision(s) (requested by roy in ticket #936):

	lib/libterminfo/curterm.c: revision 1.14

terminfo: test strlcpy result against space free, not string length

riastradh@ yep, looks good.

Revision 1.14 / (download) - annotate - [select for diffs], Sat May 30 16:03:58 2020 UTC (3 years, 9 months ago) by roy
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.13: +7 -7 lines
Diff to previous 1.13 (colored) to selected 1.5 (colored)

terminfo: test strlcpy result against space free, not string length

riastradh@ yep, looks good.

Revision 1.12.6.1 / (download) - annotate - [select for diffs], Thu May 11 02:58:34 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.5 (colored)

Sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 4 09:42:23 2017 UTC (6 years, 10 months ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, is-mlppp-base, is-mlppp
Branch point for: netbsd-9, netbsd-8
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.5 (colored)

Clean up some compile warnings.

Revision 1.10.8.1 / (download) - annotate - [select for diffs], Wed Jan 18 08:46:23 2017 UTC (7 years, 2 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored) to selected 1.5 (colored)

Sync with netbsd-5

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Mon Dec 12 07:37:53 2016 UTC (7 years, 3 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored) to selected 1.5 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1307):
	lib/libterminfo/curterm.c: revisions 1.11, 1.12
	lib/libterminfo/term.c: revisions 1.18-1.20
	lib/libterminfo/termcap.c: revisions 1.18, 1.19
	lib/libterminfo/terminfo.3: revision 1.13
	lib/libterminfo/tparm.c: revision 1.16
terminfo.3: fix ti_puts prototype
--
PR/50092: Fix memory leak.
--
PR/50092: Rin Okuyama: Fix memory leak.
--
We have the max length; use snprintf.
--
From PR/50092:
- handle calling _ti_readterm with an existing initialized terminal
- simplify free code
Also:
- fix an inconsistency in userdefs count computation
--
Always copy the area buffer, even when the length was the same
(from Rin Okuyama)
--
- if we are freeing cur_term, set it to NULL.
- preserve and free "last" properly.
--
off-by-one in memcpy. Found by ASAN (Carsten Kunze)

Revision 1.12 / (download) - annotate - [select for diffs], Fri Apr 1 19:59:08 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored) to selected 1.5 (colored)

- if we are freeing cur_term, set it to NULL.
- preserve and free "last" properly.

$ cat foo.c
#include <stdio.h>
#include <termcap.h>

int
main(void)
{
	tgetent(NULL, "dumb");
	tgetent(NULL, "network");
	tgetflag("so");
	return 0;
}
$ cc foo.c -lterminfo
$ MALLOC_OPTIONS=J ./a.out
Boom.

XXX: pullup-7

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 25 18:38:21 2015 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored) to selected 1.5 (colored)

PR/50092: Fix memory leak.

Revision 1.8.8.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:21 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.8.8.1: +1 -1 lines
Diff to previous 1.8.8.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.5 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Thu May 22 11:37:00 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored) next main 1.9 (colored) to selected 1.5 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 18 20:51:03 2013 UTC (10 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7-nhusb, netbsd-7
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.5 (colored)

Use an empty string, not a null pointer for nullname.

Revision 1.8.8.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:21:08 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) to selected 1.5 (colored)

resync from head

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 7 13:16:18 2013 UTC (10 years, 9 months ago) by roy
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) to selected 1.5 (colored)

Whitespace

Revision 1.8 / (download) - annotate - [select for diffs], Wed Oct 5 10:46:08 2011 UTC (12 years, 5 months ago) by roy
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.7: +44 -2 lines
Diff to previous 1.7 (colored) to selected 1.5 (colored)

There is no standard way of getting a list of aliases for the
terminal. However, some applications such as telnet want to know this.
ncurses dumps the terminfo header into an undefined variable ttytype
and these applications then parse it to work out the aliases.
We should do the same for now, until a standard mechanism for getting
the information is available or the need for it goes away.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 4 11:01:14 2011 UTC (12 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.6: +14 -2 lines
Diff to previous 1.6 (colored) to selected 1.5 (colored)

Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 3 19:18:55 2011 UTC (12 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.5: +11 -5 lines
Diff to previous 1.5 (colored)

Remove _ti_freeterm as consumers should just use del_curterm.

Revision 1.5 / (download) - annotate - [selected], Sun Oct 2 19:24:25 2011 UTC (12 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.4: +12 -3 lines
Diff to previous 1.4 (colored)

Add termname(3) as defined by POSIX.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Feb 22 23:05:39 2010 UTC (14 years, 1 month ago) by roy
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.3: +4 -6 lines
Diff to previous 1.3 (colored) to selected 1.5 (colored)

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.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Feb 11 09:34:12 2010 UTC (14 years, 1 month ago) by roy
Branch: MAIN
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored) to selected 1.5 (colored)

Remove silly debug.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Feb 11 00:27:09 2010 UTC (14 years, 1 month ago) by roy
Branch: MAIN
Changes since 1.1: +4 -3 lines
Diff to previous 1.1 (colored) to selected 1.5 (colored)

Embed ansi, dumb, vt100, vt220 and wsvt25 compiled terminal descriptions
into libterminfo.
Constify some foo.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Feb 3 15:16:32 2010 UTC (14 years, 1 month ago) by roy
Branch: MAIN
Diff to selected 1.5 (colored)

Import my terminfo implementation.
This uses the ncurses terminal definitions.

OK: core@, jdc@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>