Sync setmode(3) with FreeBSD:
authorPeter Avalos <pavalos@theshell.com>
Sun, 15 Mar 2009 04:20:21 +0000 (18:20 -1000)
committerPeter Avalos <pavalos@theshell.com>
Tue, 7 Apr 2009 07:09:52 +0000 (21:09 -1000)
commit36400f0d73290e7098533fcbc5c836e6c1788c18
treee2118a88532a0e2923861dc4a5154e0e9153bbb8
parent787d3afaff5c9a5a75fbda3f85d79a03124094b4
Sync setmode(3) with FreeBSD:

* Use correct error detection of realloc failure

* strtol negative return check

* use strtol to validate string instead of rolling our own
validation code

* terminate the command sequence correctly
lib/libc/gen/setmode.c