repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ldso: notify the debugger when we're doing a dlopen
[musl.git]
/
src
/
env
/
clearenv.c
blob
db8e8e94b8e0c5cef544216129bebe724a4f6d85
1
#define _GNU_SOURCE
2
#include <stdlib.h>
3
#include <unistd.h>
4
5
static void
dummy
(
char
*
old
,
char
*
new
) {}
6
weak_alias
(
dummy
,
__env_rm_add
);
7
8
int
clearenv
()
9
{
10
char
**
e
=
__environ
;
11
__environ
=
0
;
12
if
(
e
)
while
(*
e
)
__env_rm_add
(*
e
++,
0
);
13
return
0
;
14
}