From 574b268e7f7a76fe3bcfe389509d9ff91227a860 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 4 Jan 2005 07:48:13 +0000 Subject: Update. * stdlib/Makefile: Add rules to build and run tst-putenv. * stdlib/tst-putenv.c: New file. * stdlib/tst-putenvmod.c: New file. --- stdlib/tst-putenvmod.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 stdlib/tst-putenvmod.c (limited to 'stdlib/tst-putenvmod.c') diff --git a/stdlib/tst-putenvmod.c b/stdlib/tst-putenvmod.c new file mode 100644 index 0000000000..7c0c337d3f --- /dev/null +++ b/stdlib/tst-putenvmod.c @@ -0,0 +1,17 @@ +#include +#include +#include + +void +__attribute ((constructor)) +init (void) +{ + puts ("init DSO"); + + static char str[] = "SOMETHING_NOBODY_USES=something_else"; + if (putenv (str) != 0) + { + puts ("putenv failed"); + _exit (1); + } +} -- cgit v1.2.3