History log of /openbsd-current/usr.bin/less/cmdbuf.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.21 23-Sep-2021 tobias

Remove wpath from secure mode pledge.

Upstream removed history file support for secure mode. The history file
feature is off by default already, disallowing it altogether in secure
mode allows us to drop wpath.

Added a note about it to manual page.

ok benno, deraadt


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.20 02-Sep-2019 schwarze

Delete what remains of the support for combining characters into
ligatures: it was incomplete (only for the Arabic script and only
for the single ligature LAM WITH ALEF) and it was implemented in a
way that is unsustainable (with a static table inside less).

If we ever want ligature support, we are better off making a fresh
start. However, for languages like Arabic and Persian, even that
wouldn't really be useful without having bidirectional support first.

OK millert@
(and also considering comments from Mohammadreza Abdollahzadeh,
Evan Silberman, and benno@)


# 1.19 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


# 1.18 15-May-2019 schwarze

trivial replacement of the home-grown IS_ASCII_OCTET()
with the standard isascii(3)


# 1.17 15-May-2019 schwarze

UTF-8 cleanup in the function cmd_putstr().
This function is only ever called with constant ASCII string arguments,
so actually it doesn't need any UTF-8 handling whatsoever.
OK millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.16 17-Sep-2016 deraadt

little bit more KNF


Revision tags: OPENBSD_6_0_BASE
# 1.15 16-Mar-2016 mmcc

style(9) includes

ok nicm@


Revision tags: OPENBSD_5_9_BASE
# 1.14 12-Jan-2016 mmcc

Remove LINUNUM, a needless alias for off_t. Also, remove a redundant
condition.

ok nicm@


# 1.13 23-Nov-2015 nicm

Don't shadow a function argument.


# 1.12 09-Nov-2015 mmcc

Remove NULL-checks before free(), a needless comment, and a needless
void* cast.

ok nicm@


# 1.11 09-Nov-2015 deraadt

cleanup struct definitions


# 1.10 07-Nov-2015 tedu

replace save() with estrdup() and make estrdup() exit like all the other
ecalloc, etc. functions do.
ok mmcc nicm


# 1.9 06-Nov-2015 nicm

Garrett D'Amore has agreed to moving his copyright line up above the
terms with the existing copyright, so it is clear it applies the same
terms.


# 1.8 05-Nov-2015 nicm

Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 25-Apr-2014 shadchin

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 16-Nov-2011 nicm

Don't create a history file called -... doh. Pointed out by jmc.


# 1.5 16-Sep-2011 shadchin

Merge in less 444 plus local changes

ok nicm@


Revision tags: 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 OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 13-Apr-2003 millert

Merge in less-381 w/ local changes and remove obsolete files.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.3 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 29-Jan-2001 niklas

$OpenBSD$


# 1.1 21-Sep-1996 etheisen

branches: 1.1.1;
Initial revision


# 1.20 02-Sep-2019 schwarze

Delete what remains of the support for combining characters into
ligatures: it was incomplete (only for the Arabic script and only
for the single ligature LAM WITH ALEF) and it was implemented in a
way that is unsustainable (with a static table inside less).

If we ever want ligature support, we are better off making a fresh
start. However, for languages like Arabic and Persian, even that
wouldn't really be useful without having bidirectional support first.

OK millert@
(and also considering comments from Mohammadreza Abdollahzadeh,
Evan Silberman, and benno@)


# 1.19 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


# 1.18 15-May-2019 schwarze

trivial replacement of the home-grown IS_ASCII_OCTET()
with the standard isascii(3)


# 1.17 15-May-2019 schwarze

UTF-8 cleanup in the function cmd_putstr().
This function is only ever called with constant ASCII string arguments,
so actually it doesn't need any UTF-8 handling whatsoever.
OK millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.16 17-Sep-2016 deraadt

little bit more KNF


Revision tags: OPENBSD_6_0_BASE
# 1.15 16-Mar-2016 mmcc

style(9) includes

ok nicm@


Revision tags: OPENBSD_5_9_BASE
# 1.14 12-Jan-2016 mmcc

Remove LINUNUM, a needless alias for off_t. Also, remove a redundant
condition.

ok nicm@


# 1.13 23-Nov-2015 nicm

Don't shadow a function argument.


# 1.12 09-Nov-2015 mmcc

Remove NULL-checks before free(), a needless comment, and a needless
void* cast.

ok nicm@


# 1.11 09-Nov-2015 deraadt

cleanup struct definitions


# 1.10 07-Nov-2015 tedu

replace save() with estrdup() and make estrdup() exit like all the other
ecalloc, etc. functions do.
ok mmcc nicm


# 1.9 06-Nov-2015 nicm

Garrett D'Amore has agreed to moving his copyright line up above the
terms with the existing copyright, so it is clear it applies the same
terms.


# 1.8 05-Nov-2015 nicm

Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 25-Apr-2014 shadchin

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 16-Nov-2011 nicm

Don't create a history file called -... doh. Pointed out by jmc.


# 1.5 16-Sep-2011 shadchin

Merge in less 444 plus local changes

ok nicm@


Revision tags: 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 OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 13-Apr-2003 millert

Merge in less-381 w/ local changes and remove obsolete files.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.3 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 29-Jan-2001 niklas

$OpenBSD$


# 1.1 21-Sep-1996 etheisen

branches: 1.1.1;
Initial revision


# 1.19 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


# 1.18 15-May-2019 schwarze

trivial replacement of the home-grown IS_ASCII_OCTET()
with the standard isascii(3)


# 1.17 15-May-2019 schwarze

UTF-8 cleanup in the function cmd_putstr().
This function is only ever called with constant ASCII string arguments,
so actually it doesn't need any UTF-8 handling whatsoever.
OK millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.16 17-Sep-2016 deraadt

little bit more KNF


Revision tags: OPENBSD_6_0_BASE
# 1.15 16-Mar-2016 mmcc

style(9) includes

ok nicm@


Revision tags: OPENBSD_5_9_BASE
# 1.14 12-Jan-2016 mmcc

Remove LINUNUM, a needless alias for off_t. Also, remove a redundant
condition.

ok nicm@


# 1.13 23-Nov-2015 nicm

Don't shadow a function argument.


# 1.12 09-Nov-2015 mmcc

Remove NULL-checks before free(), a needless comment, and a needless
void* cast.

ok nicm@


# 1.11 09-Nov-2015 deraadt

cleanup struct definitions


# 1.10 07-Nov-2015 tedu

replace save() with estrdup() and make estrdup() exit like all the other
ecalloc, etc. functions do.
ok mmcc nicm


# 1.9 06-Nov-2015 nicm

Garrett D'Amore has agreed to moving his copyright line up above the
terms with the existing copyright, so it is clear it applies the same
terms.


# 1.8 05-Nov-2015 nicm

Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 25-Apr-2014 shadchin

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 16-Nov-2011 nicm

Don't create a history file called -... doh. Pointed out by jmc.


# 1.5 16-Sep-2011 shadchin

Merge in less 444 plus local changes

ok nicm@


Revision tags: 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 OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 13-Apr-2003 millert

Merge in less-381 w/ local changes and remove obsolete files.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.3 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 29-Jan-2001 niklas

$OpenBSD$


# 1.1 21-Sep-1996 etheisen

branches: 1.1.1;
Initial revision


# 1.18 15-May-2019 schwarze

trivial replacement of the home-grown IS_ASCII_OCTET()
with the standard isascii(3)


# 1.17 15-May-2019 schwarze

UTF-8 cleanup in the function cmd_putstr().
This function is only ever called with constant ASCII string arguments,
so actually it doesn't need any UTF-8 handling whatsoever.
OK millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.16 17-Sep-2016 deraadt

little bit more KNF


Revision tags: OPENBSD_6_0_BASE
# 1.15 16-Mar-2016 mmcc

style(9) includes

ok nicm@


Revision tags: OPENBSD_5_9_BASE
# 1.14 12-Jan-2016 mmcc

Remove LINUNUM, a needless alias for off_t. Also, remove a redundant
condition.

ok nicm@


# 1.13 23-Nov-2015 nicm

Don't shadow a function argument.


# 1.12 09-Nov-2015 mmcc

Remove NULL-checks before free(), a needless comment, and a needless
void* cast.

ok nicm@


# 1.11 09-Nov-2015 deraadt

cleanup struct definitions


# 1.10 07-Nov-2015 tedu

replace save() with estrdup() and make estrdup() exit like all the other
ecalloc, etc. functions do.
ok mmcc nicm


# 1.9 06-Nov-2015 nicm

Garrett D'Amore has agreed to moving his copyright line up above the
terms with the existing copyright, so it is clear it applies the same
terms.


# 1.8 05-Nov-2015 nicm

Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 25-Apr-2014 shadchin

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 16-Nov-2011 nicm

Don't create a history file called -... doh. Pointed out by jmc.


# 1.5 16-Sep-2011 shadchin

Merge in less 444 plus local changes

ok nicm@


Revision tags: 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 OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 13-Apr-2003 millert

Merge in less-381 w/ local changes and remove obsolete files.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.3 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 29-Jan-2001 niklas

$OpenBSD$


# 1.1 21-Sep-1996 etheisen

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.16 17-Sep-2016 deraadt

little bit more KNF


Revision tags: OPENBSD_6_0_BASE
# 1.15 16-Mar-2016 mmcc

style(9) includes

ok nicm@


Revision tags: OPENBSD_5_9_BASE
# 1.14 12-Jan-2016 mmcc

Remove LINUNUM, a needless alias for off_t. Also, remove a redundant
condition.

ok nicm@


# 1.13 23-Nov-2015 nicm

Don't shadow a function argument.


# 1.12 09-Nov-2015 mmcc

Remove NULL-checks before free(), a needless comment, and a needless
void* cast.

ok nicm@


# 1.11 09-Nov-2015 deraadt

cleanup struct definitions


# 1.10 07-Nov-2015 tedu

replace save() with estrdup() and make estrdup() exit like all the other
ecalloc, etc. functions do.
ok mmcc nicm


# 1.9 06-Nov-2015 nicm

Garrett D'Amore has agreed to moving his copyright line up above the
terms with the existing copyright, so it is clear it applies the same
terms.


# 1.8 05-Nov-2015 nicm

Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.7 25-Apr-2014 shadchin

Merge Less 458 plus local patches

ok guenther@, ok jmc@ for man bits


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.6 16-Nov-2011 nicm

Don't create a history file called -... doh. Pointed out by jmc.


# 1.5 16-Sep-2011 shadchin

Merge in less 444 plus local changes

ok nicm@


Revision tags: 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 OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 13-Apr-2003 millert

Merge in less-381 w/ local changes and remove obsolete files.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.3 19-Nov-2001 mpech

kill more registers

millert@ ok


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 29-Jan-2001 niklas

$OpenBSD$


# 1.1 21-Sep-1996 etheisen

branches: 1.1.1;
Initial revision