summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/getdomainname.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-12-11 15:59:01 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-12-11 15:59:01 +0000
commit2b2777ad0e64745fe5fea5f685b23fe64545dfc3 (patch)
tree41a72d94306c3f588067affd3ec86f37793539dc /libc/sysdeps/linux/common/getdomainname.c
parent5d730fc3279001da96592940559bf7df00e6141d (diff)
downloaduClibc-alpine-2b2777ad0e64745fe5fea5f685b23fe64545dfc3.tar.bz2
uClibc-alpine-2b2777ad0e64745fe5fea5f685b23fe64545dfc3.tar.xz
Removed some __libc_xxx fucntions as merged from trunk.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/sysdeps/linux/common/getdomainname.c')
-rw-r--r--libc/sysdeps/linux/common/getdomainname.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/libc/sysdeps/linux/common/getdomainname.c b/libc/sysdeps/linux/common/getdomainname.c
index c561aa305..20b09610a 100644
--- a/libc/sysdeps/linux/common/getdomainname.c
+++ b/libc/sysdeps/linux/common/getdomainname.c
@@ -16,13 +16,7 @@
/* Experimentally off - libc_hidden_proto(strcpy) */
/* libc_hidden_proto(uname) */
-#if !defined __UCLIBC_BSD_SPECIFIC__
-extern int getdomainname (char *__name, size_t __len)
- __THROW __nonnull ((1)) __wur;
-#endif
-extern __typeof(getdomainname) __libc_getdomainname;
-libc_hidden_proto(__libc_getdomainname)
-int __libc_getdomainname(char *name, size_t len)
+int getdomainname(char *name, size_t len)
{
struct utsname uts;
@@ -48,10 +42,5 @@ int __libc_getdomainname(char *name, size_t len)
#endif
return 0;
}
-libc_hidden_def(__libc_getdomainname)
-#if defined __UCLIBC_BSD_SPECIFIC__
-/* libc_hidden_proto(getdomainname) */
-weak_alias(__libc_getdomainname,getdomainname)
-libc_hidden_weak(getdomainname)
-#endif /* __UCLIBC_BSD_SPECIFIC__ */
+libc_hidden_def(getdomainname)
#endif