diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-14 23:21:32 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-15 00:02:54 -0600 |
commit | 900ab571ba496f73b1e66204f8c66560afda29e6 (patch) | |
tree | fe49d91e74bba4129c5d11ddf804aa31a6f56e23 /libgcompat | |
parent | 48030f9988d803da367af5a3b888549851db2f58 (diff) | |
download | gcompat-900ab571ba496f73b1e66204f8c66560afda29e6.tar.gz gcompat-900ab571ba496f73b1e66204f8c66560afda29e6.tar.bz2 gcompat-900ab571ba496f73b1e66204f8c66560afda29e6.tar.xz gcompat-900ab571ba496f73b1e66204f8c66560afda29e6.zip |
version: Minor improvements
* Document functions and sort by name.
* Explicitly include stddef.h.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/version.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/libgcompat/version.c b/libgcompat/version.c index 99c2c8c..1b7687c 100644 --- a/libgcompat/version.c +++ b/libgcompat/version.c @@ -1,16 +1,28 @@ +#include <stddef.h> /* NULL */ #include <stdlib.h> /* getenv */ +/** + * Get glibc release. + * + * LSB 5.0: LSB-Core-generic/baselib-gnu-get-libc-version-1.html + */ +const char *gnu_get_libc_release(void) +{ + return "stable"; +} + +/** + * Get glibc version. + * + * LSB 5.0: LSB-Core-generic/baselib-gnu-get-libc-version-1.html + */ const char *gnu_get_libc_version(void) { char *ver = getenv("GLIBC_FAKE_VERSION"); + if (ver == NULL) { ver = "2.8"; } return ver; } - -const char *gnu_get_libc_release(void) -{ - return "stable"; -} |