]> git.baikalelectronics.ru Git - kernel.git/commit
tools/nolibc/stdlib: add a simple getenv() implementation
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Mar 2022 17:33:08 +0000 (18:33 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 21 Apr 2022 00:05:45 +0000 (17:05 -0700)
commitd1c91a0da484405faf252bfebc73cacb3b604504
tree5c30aa3ed1cdb95620b503a7a1211cd9f2cc69c4
parent3446942b7d664e44b732fa019efad6777ffa7b42
tools/nolibc/stdlib: add a simple getenv() implementation

This implementation relies on an extern definition of the environ
variable, that the caller must declare and initialize from envp.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/stdlib.h