From eb22fd3b6e7fff7e9ef946a88b208debf5b419d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Mon, 8 Jun 2020 01:00:00 +0000 Subject: [PATCH] environ: link to from readme --- README.adoc | 4 ++++ userland/posix/environ.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index 1017a56..ffce22d 100644 --- a/README.adoc +++ b/README.adoc @@ -17822,6 +17822,10 @@ These links provide a clear overview of what POSIX is: * https://stackoverflow.com/questions/1780599/what-is-the-meaning-of-posix/31865755#31865755 * https://unix.stackexchange.com/questions/11983/what-exactly-is-posix/220877#220877 +==== Environment variables + +POSIX C example that prints all environment variables: link:userland/posix/environ.c[] + ==== unistd.h * link:userland/posix/count.c[] illustrates `sleep()` diff --git a/userland/posix/environ.c b/userland/posix/environ.c index 39ef1cb..198100b 100644 --- a/userland/posix/environ.c +++ b/userland/posix/environ.c @@ -1,4 +1,4 @@ -/* Print all environment variables. */ +/* https://cirosantilli.com/linux-kernel-module-cheat#environment-variables */ #include #include