diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-13 10:00:07 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-13 10:00:07 +0000 |
commit | 20453d82ab702cd25791a84d10ef73cada4cc3b0 (patch) | |
tree | 62e2315b38daf4e7cab624daef11e5b968081986 /libc/stdio | |
parent | d0769ae0d6f6ea12a8d980521aa5f934c9eeaa4e (diff) |
Do hidden fopen*/remove
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/fopen.c | 3 | ||||
-rw-r--r-- | libc/stdio/fopen64.c | 1 | ||||
-rw-r--r-- | libc/stdio/remove.c | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/libc/stdio/fopen.c b/libc/stdio/fopen.c index 244304acf..ceea0f6b6 100644 --- a/libc/stdio/fopen.c +++ b/libc/stdio/fopen.c @@ -11,7 +11,8 @@ # define FILEDES_ARG (-1) #endif -FILE *fopen(const char * __restrict filename, const char * __restrict mode) +FILE attribute_hidden *__fopen(const char * __restrict filename, const char * __restrict mode) { return _stdio_fopen(((intptr_t) filename), mode, NULL, FILEDES_ARG); } +strong_alias(__fopen,fopen) diff --git a/libc/stdio/fopen64.c b/libc/stdio/fopen64.c index 64ba30501..2aebd72eb 100644 --- a/libc/stdio/fopen64.c +++ b/libc/stdio/fopen64.c @@ -8,6 +8,7 @@ #include "_stdio.h" #define __DO_LARGEFILE +#define __fopen __fopen64 #define fopen fopen64 #define FILEDES_ARG (-2) #include "fopen.c" diff --git a/libc/stdio/remove.c b/libc/stdio/remove.c index d471ae291..2d4fedcc1 100644 --- a/libc/stdio/remove.c +++ b/libc/stdio/remove.c @@ -19,7 +19,7 @@ * equivalent to rmdir(path). */ -int remove(register const char *filename) +int attribute_hidden __remove(register const char *filename) { int saved_errno = errno; int rv; @@ -30,3 +30,4 @@ int remove(register const char *filename) } return rv; } +strong_alias(__remove,remove) |