Back to index

glibc  2.9
Functions
tst-putenvmod.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

Go to the source code of this file.

Functions

void __attribute ((constructor))

Function Documentation

void __attribute ( (constructor)  )

Definition at line 6 of file tst-putenvmod.c.

{
  puts ("init DSO");

  static char str[] = "SOMETHING_NOBODY_USES=something_else";
  if (putenv (str) != 0)
    {
      puts ("putenv failed");
      _exit (1);
    }
}

Here is the call graph for this function: