bc(1): Sync with openBSD
authorJoris Giovannangeli <joris@dragonflybsd.org>
Fri, 20 Sep 2013 21:17:36 +0000 (23:17 +0200)
committerJoris Giovannangeli <joris@dragonflybsd.org>
Fri, 20 Sep 2013 21:17:36 +0000 (23:17 +0200)
commitcb7e3b3c9433ef3b14752f26e3bfdca1094c47e2
tree3cb127f90447abe992a1db7b6ccfd0beb07f635e
parent3ccdeb339729f066c7128525b7a1ad61241589ec
bc(1): Sync with openBSD

This include the following changes :

 * repair function when used with different scales

 * Better error message on unexpected newline

 * save/restore tty state on SIGTSTP/SIGCONT

 * protect errno from damage in the signal handler

 * make ^D behave well
   dont't echo it and make it work if the cursor is at start of line after a ^C

 * avoid usage of YY_FLUSH_BUFFER

    - avoid YY_FLUSH_BUFFER: it is not signal safe and it does not work as intended
    after the introduction of editline
    - honour editline edit off mode

OpenBSD updated files revisions :
    - scan.l : 1.28
    - bc.y : 1.42
    - bc.library : 1.4
    - extern.h : 1.10
    - tty.c : 1.1

Obtained-from: OpenBSD
usr.bin/bc/Makefile
usr.bin/bc/bc.1
usr.bin/bc/bc.library
usr.bin/bc/bc.y
usr.bin/bc/extern.h
usr.bin/bc/scan.l
usr.bin/bc/tty.c [new file with mode: 0644]