git: kernel - Adjust varsym API to match manual page, remove from uname

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Mar 31 14:16:14 PDT 2021


commit 631c21f29f6ab8047b8d808ab49cd3c4f1353d76
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Mar 31 14:09:19 2021 -0700

    kernel - Adjust varsym API to match manual page, remove from uname
    
    * Adjust the varsym system call to match the manual page.  It
      now returns 0 on success instead of the length, and returns
      -1 with an errno of EOVERFLOW if the supplied buffer is too small.
    
    * The uname*() code in libc actually assumed 0 would be returned
      on success, and thus never actually allowed varsym overrides.  Just
      remove the functionality (that nobody uses) entirely.
    
    Reported-by: dan

Summary of changes:
 bin/varsym/varsym.c    |  6 ++++++
 lib/libc/gen/uname.3   | 10 ++++------
 lib/libc/gen/uname.c   |  9 ---------
 sys/kern/kern_varsym.c |  5 +++--
 4 files changed, 13 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/631c21f29f6ab8047b8d808ab49cd3c4f1353d76


-- 
DragonFly BSD source repository



More information about the Commits mailing list