summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-03 00:34:49 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-03 00:34:49 +0000
commitc885bf5cf94a12202f849477a845d728cbd12889 (patch)
tree106e36d57ea684166ebde05a8d4be54664e0e6ce /libc
parentca3067b8cec6e7ffd600c92510197df5aedd8606 (diff)
More hiding, including __mempcpy
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/getaddrinfo.c6
-rw-r--r--libc/inet/getnetbyad.c4
-rw-r--r--libc/inet/getnetbynm.c4
-rw-r--r--libc/inet/getnetent.c10
-rw-r--r--libc/inet/getservice.c85
-rw-r--r--libc/inet/resolv.c1
-rw-r--r--libc/inet/rpc/auth_none.c2
-rw-r--r--libc/inet/rpc/auth_unix.c1
-rw-r--r--libc/inet/rpc/bindresvport.c2
-rw-r--r--libc/inet/rpc/clnt_raw.c1
-rw-r--r--libc/inet/rpc/clnt_tcp.c1
-rw-r--r--libc/inet/rpc/clnt_udp.c1
-rw-r--r--libc/inet/rpc/clnt_unix.c3
-rw-r--r--libc/inet/rpc/create_xid.c3
-rw-r--r--libc/inet/rpc/pmap_clnt.c5
-rw-r--r--libc/inet/rpc/pmap_rmt.c1
-rw-r--r--libc/inet/rpc/rcmd.c3
-rw-r--r--libc/inet/rpc/rpc_dtablesize.c2
-rw-r--r--libc/inet/rpc/ruserpass.c2
-rw-r--r--libc/inet/rpc/svc.c2
-rw-r--r--libc/inet/rpc/svc_auth_unix.c2
-rw-r--r--libc/inet/rpc/svc_raw.c2
-rw-r--r--libc/inet/rpc/svc_udp.c1
-rw-r--r--libc/inet/rpc/svc_unix.c2
-rw-r--r--libc/inet/rpc/xdr_mem.c5
-rw-r--r--libc/misc/file/lockf.c2
-rw-r--r--libc/misc/file/lockf64.c2
-rw-r--r--libc/misc/ftw/ftw.c2
-rw-r--r--libc/misc/internals/tempname.c2
-rw-r--r--libc/misc/locale/locale.c3
-rw-r--r--libc/misc/regex/regex.c4
-rw-r--r--libc/misc/search/hsearch.c4
-rw-r--r--libc/misc/search/hsearch_r.c12
-rw-r--r--libc/misc/search/tsearch.c3
-rw-r--r--libc/misc/syslog/syslog.c42
-rw-r--r--libc/misc/sysvipc/shm.c4
-rw-r--r--libc/misc/time/adjtime.c3
-rw-r--r--libc/misc/time/time.c27
-rw-r--r--libc/misc/utmp/wtent.c2
-rw-r--r--libc/misc/wordexp/wordexp.c11
-rw-r--r--libc/pwd_grp/lckpwdf.c3
-rw-r--r--libc/signal/killpg.c2
-rw-r--r--libc/signal/raise.c5
-rw-r--r--libc/signal/sigaction.c21
-rw-r--r--libc/signal/sigdelset.c7
-rw-r--r--libc/signal/sigfillset.c6
-rw-r--r--libc/signal/sigignore.c2
-rw-r--r--libc/signal/sigintr.c2
-rw-r--r--libc/signal/signal.c2
-rw-r--r--libc/signal/sigpause.c2
-rw-r--r--libc/signal/sigrelse.c2
-rw-r--r--libc/signal/sigset.c2
-rw-r--r--libc/signal/sysv_signal.c2
-rw-r--r--libc/stdio/getdelim.c5
-rw-r--r--libc/stdio/getline.c7
-rw-r--r--libc/stdio/open_memstream.c3
-rw-r--r--libc/stdio/popen.c1
-rw-r--r--libc/stdio/vasprintf.c2
-rw-r--r--libc/stdlib/abort.c2
-rw-r--r--libc/stdlib/drand48.c2
-rw-r--r--libc/stdlib/drand48_r.c2
-rw-r--r--libc/stdlib/erand48.c1
-rw-r--r--libc/stdlib/erand48_r.c7
-rw-r--r--libc/stdlib/getenv.c3
-rw-r--r--libc/stdlib/jrand48.c2
-rw-r--r--libc/stdlib/jrand48_r.c6
-rw-r--r--libc/stdlib/lrand48.c2
-rw-r--r--libc/stdlib/lrand48_r.c5
-rw-r--r--libc/stdlib/malloc/malloc_debug.c2
-rw-r--r--libc/stdlib/mrand48.c2
-rw-r--r--libc/stdlib/mrand48_r.c2
-rw-r--r--libc/stdlib/nrand48.c2
-rw-r--r--libc/stdlib/nrand48_r.c6
-rw-r--r--libc/stdlib/srand48.c2
-rw-r--r--libc/stdlib/srand48_r.c5
-rw-r--r--libc/stdlib/system.c2
-rw-r--r--libc/stdlib/unix_grantpt.c1
-rw-r--r--libc/stdlib/valloc.c2
-rw-r--r--libc/string/generic/mempcpy.c2
-rw-r--r--libc/sysdeps/linux/arm/sigaction.c7
-rw-r--r--libc/sysdeps/linux/common/__rt_sigtimedwait.c2
-rw-r--r--libc/sysdeps/linux/common/__syscall_rt_sigaction.c2
-rw-r--r--libc/sysdeps/linux/common/__syscall_sigaction.c2
-rw-r--r--libc/sysdeps/linux/common/adjtimex.c8
-rw-r--r--libc/sysdeps/linux/common/alarm.c2
-rw-r--r--libc/sysdeps/linux/common/clock_settime.c2
-rw-r--r--libc/sysdeps/linux/common/getdirname.c2
-rw-r--r--libc/sysdeps/linux/common/getdtablesize.c4
-rw-r--r--libc/sysdeps/linux/common/getpagesize.c7
-rw-r--r--libc/sysdeps/linux/common/getpid.c11
-rw-r--r--libc/sysdeps/linux/common/getppid.c2
-rw-r--r--libc/sysdeps/linux/common/kill.c3
-rw-r--r--libc/sysdeps/linux/common/ntp_gettime.c2
-rw-r--r--libc/sysdeps/linux/common/poll.c2
-rw-r--r--libc/sysdeps/linux/common/setitimer.c4
-rw-r--r--libc/sysdeps/linux/common/settimeofday.c4
-rw-r--r--libc/sysdeps/linux/common/ssp.c35
-rw-r--r--libc/sysdeps/linux/common/stime.c2
-rw-r--r--libc/sysdeps/linux/common/time.c6
-rw-r--r--libc/sysdeps/linux/common/times.c4
-rw-r--r--libc/sysdeps/linux/common/utime.c8
-rw-r--r--libc/sysdeps/linux/common/utimes.c8
-rw-r--r--libc/sysdeps/linux/common/wait.c8
-rw-r--r--libc/sysdeps/linux/common/wait3.c2
-rw-r--r--libc/sysdeps/linux/common/wait4.c3
-rw-r--r--libc/sysdeps/linux/common/waitpid.c9
-rw-r--r--libc/sysdeps/linux/i386/sigaction.c8
-rw-r--r--libc/sysdeps/linux/mips/sigaction.c7
-rw-r--r--libc/sysdeps/linux/x86_64/sigaction.c14
-rw-r--r--libc/unistd/exec.c2
-rw-r--r--libc/unistd/getlogin.c9
-rw-r--r--libc/unistd/getopt.c2
-rw-r--r--libc/unistd/sleep.c2
-rw-r--r--libc/unistd/sysconf.c3
-rw-r--r--libc/unistd/ualarm.c2
115 files changed, 393 insertions, 217 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c
index d2d0e151e..c467fed69 100644
--- a/libc/inet/getaddrinfo.c
+++ b/libc/inet/getaddrinfo.c
@@ -44,8 +44,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* This software is Copyright 1996 by Craig Metz, All Rights Reserved. */
-/* strdupa is using these */
+#define getservbyname_r __getservbyname_r
#if 0
+#define stpcpy __stpcpy
+/* strdupa is using these */
#define memcpy __memcpy
#define strlen __strlen
#endif
@@ -246,7 +248,7 @@ gaih_local (const char *name, const struct gaih_service *service,
sizeof (sunp->sun_path))
return GAIH_OKIFUNSPEC | -EAI_SERVICE;
- __stpcpy (__stpcpy (sunp->sun_path, P_tmpdir "/"), service->name);
+ stpcpy (stpcpy (sunp->sun_path, P_tmpdir "/"), service->name);
}
}
else
diff --git a/libc/inet/getnetbyad.c b/libc/inet/getnetbyad.c
index 0776ed7cf..a257a1bd7 100644
--- a/libc/inet/getnetbyad.c
+++ b/libc/inet/getnetbyad.c
@@ -15,6 +15,10 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#define setnetent __setnetent
+#define getnetent __getnetent
+#define endnetent __endnetent
+
#define __FORCE_GLIBC
#include <features.h>
#include <netdb.h>
diff --git a/libc/inet/getnetbynm.c b/libc/inet/getnetbynm.c
index 5479c654b..f4e9b817e 100644
--- a/libc/inet/getnetbynm.c
+++ b/libc/inet/getnetbynm.c
@@ -15,6 +15,10 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+#define setnetent __setnetent
+#define getnetent __getnetent
+#define endnetent __endnetent
+
#define __FORCE_GLIBC
#include <features.h>
#include <netdb.h>
diff --git a/libc/inet/getnetent.c b/libc/inet/getnetent.c
index 181c5adfe..fc21dfa03 100644
--- a/libc/inet/getnetent.c
+++ b/libc/inet/getnetent.c
@@ -44,7 +44,7 @@ static char *net_aliases[MAXALIASES];
int _net_stayopen;
-void setnetent(int f)
+void attribute_hidden __setnetent(int f)
{
LOCK;
if (netf == NULL)
@@ -55,8 +55,9 @@ void setnetent(int f)
UNLOCK;
return;
}
+strong_alias(__setnetent,setnetent)
-void endnetent(void)
+void attribute_hidden __endnetent(void)
{
LOCK;
if (netf) {
@@ -66,6 +67,7 @@ void endnetent(void)
_net_stayopen = 0;
UNLOCK;
}
+strong_alias(__endnetent,endnetent)
static char * any(register char *cp, char *match)
{
@@ -80,7 +82,7 @@ static char * any(register char *cp, char *match)
return ((char *)0);
}
-struct netent * getnetent(void)
+struct netent attribute_hidden * __getnetent(void)
{
char *p;
register char *cp, **q;
@@ -139,4 +141,4 @@ again:
UNLOCK;
return (&net);
}
-
+strong_alias(__getnetent,getnetent)
diff --git a/libc/inet/getservice.c b/libc/inet/getservice.c
index d5402ba3e..e4422246b 100644
--- a/libc/inet/getservice.c
+++ b/libc/inet/getservice.c
@@ -98,7 +98,7 @@ static void __initbuf(void)
}
}
-void setservent(int f)
+extern void attribute_hidden __setservent(int f)
{
LOCK;
if (servf == NULL)
@@ -108,8 +108,9 @@ void setservent(int f)
serv_stayopen |= f;
UNLOCK;
}
+strong_alias(__setservent,setservent)
-void endservent(void)
+extern void attribute_hidden __endservent(void)
{
LOCK;
if (servf) {
@@ -119,37 +120,9 @@ void endservent(void)
serv_stayopen = 0;
UNLOCK;
}
+strong_alias(__endservent,endservent)
-struct servent * getservent(void)
-{
- struct servent *result;
-
- __initbuf();
- getservent_r(&serv, servbuf, SBUFSIZE, &result);
- return result;
-}
-
-
-struct servent *getservbyname(const char *name, const char *proto)
-{
- struct servent *result;
-
- __initbuf();
- getservbyname_r(name, proto, &serv, servbuf, SBUFSIZE, &result);
- return result;
-}
-
-
-struct servent * getservbyport(int port, const char *proto)
-{
- struct servent *result;
-
- __initbuf();
- getservbyport_r(port, proto, &serv, servbuf, SBUFSIZE, &result);
- return result;
-}
-
-int getservent_r(struct servent * result_buf,
+extern int attribute_hidden __getservent_r(struct servent * result_buf,
char * buf, size_t buflen,
struct servent ** result)
{
@@ -228,8 +201,18 @@ again: