mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
2.5-18.1
This commit is contained in:
17
stdlib/tst-putenvmod.c
Normal file
17
stdlib/tst-putenvmod.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user