git: <sys/ttydefaults.h>: Sync up with FreeBSD, mainly for r179567.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Feb 9 13:22:44 PST 2020


commit bdd0cdb1c52f4bad0d62036da0ba32857ee6bd1e
Author: Sascha Wildner <saw at online.de>
Date:   Sun Feb 9 22:22:25 2020 +0100

    <sys/ttydefaults.h>: Sync up with FreeBSD, mainly for r179567.
    
    The rest of it was already brought in.
    
    FreeBSD's commit msg:
    
    r179567 | ed | 2008-06-05 19:44:18 +0200 (Thu, 05 Jun 2008) | 13 lines
    
    Fix faulty character to control-character conversion for CTRL().
    
    The CTRL() macro seems to perform character to control-character
    conversion (i.e. 'A' to 0x01) to lowercase characters. This is actually
    not valid. If we use lowercase characters, conversions such as
    CTRL('\\') and CTRL('?') will result to invalid conversions.
    
    Because we must still support old source code that uses CTRL() (bad!),
    we make CTRL() accept both forms. When the character is a lowercase
    character, we perform the old style conversion.

Summary of changes:
 sys/sys/ttydefaults.h | 49 ++++++++++++++++++++++++++++++-------------------
 1 file changed, 30 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bdd0cdb1c52f4bad0d62036da0ba32857ee6bd1e


-- 
DragonFly BSD source repository



More information about the Commits mailing list