Last change
on this file was 2036, checked in by bird, 20 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
277 bytes
|
Line | |
---|
1 | #include <stdio.h>
|
---|
2 | #include <stdlib.h>
|
---|
3 | #include <unistd.h>
|
---|
4 |
|
---|
5 | void
|
---|
6 | __attribute ((constructor))
|
---|
7 | init (void)
|
---|
8 | {
|
---|
9 | puts ("init DSO");
|
---|
10 |
|
---|
11 | static char str[] = "SOMETHING_NOBODY_USES=something_else";
|
---|
12 | if (putenv (str) != 0)
|
---|
13 | {
|
---|
14 | puts ("putenv failed");
|
---|
15 | _exit (1);
|
---|
16 | }
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.