* stdio/linewrap.c (lwupdate): New function, mostly was