projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix public clone function to be safe and usable by applications
[musl]
/
src
/
internal
/
libc.c
diff --git
a/src/internal/libc.c
b/src/internal/libc.c
index
954efed
..
cb05181
100644
(file)
--- a/
src/internal/libc.c
+++ b/
src/internal/libc.c
@@
-1,11
+1,9
@@
#include "libc.h"
#include "libc.h"
-#ifdef __PIC__
-struct __libc *__libc_loc()
-{
- static struct __libc __libc;
- return &__libc;
-}
-#else
struct __libc __libc;
struct __libc __libc;
-#endif
+
+size_t __hwcap;
+char *__progname=0, *__progname_full=0;
+
+weak_alias(__progname, program_invocation_short_name);
+weak_alias(__progname_full, program_invocation_name);