git: uname(3): Add env override capability

John Marino marino at
Tue Feb 16 03:38:25 PST 2016

commit d1be4fb6524f0f72f193e5743dc0ff31e63b6e1b
Author: John Marino <draco at>
Date:   Tue Feb 16 12:26:51 2016 +0100

    uname(3): Add env override capability
    The uname(1) program has honored UNAME_[x] overrides since DragonFly's
    beginning, but libc's uname never did.  Make it recognize the following
    environment variables:
    These variables cause uname() to return the specified values instead of
    what was built into libc.  This capability, which has been in FreeBSD for
    more than a decade, is required for package builders that need to define
    the jail environment different from the host (prime example: Python)

Summary of changes:
 lib/libc/gen/uname.3 |  30 +++++++++++++-
 lib/libc/gen/uname.c | 114 +++++++++++++++++++++++++++++----------------------
 2 files changed, 94 insertions(+), 50 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list