DragonFly-2.3.0.647.g36400 master lib/libc/gen setmode.c

Peter Avalos pavalos at crater.dragonflybsd.org
Tue Apr 7 00:14:29 PDT 2009


commit 36400f0d73290e7098533fcbc5c836e6c1788c18
Author: Peter Avalos <pavalos at theshell.com>
Date:   Sat Mar 14 18:20:21 2009 -1000

    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

Summary of changes:
 lib/libc/gen/setmode.c |   44 +++++++++++++++++++++-----------------------
 1 files changed, 21 insertions(+), 23 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/36400f0d73290e7098533fcbc5c836e6c1788c18


-- 
DragonFly BSD source repository





More information about the Commits mailing list