33818: fix types passed to sizeof detected by coverity as being wrong
33800: remove old workaround for ancient systems to
consume typeahead before setting up the terminal
33820: detect support for realpath() with a NULL
argument and fixes to the use of it
33823: overwrite mode shouldn't replace newlines