Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-06-25 01:46:06 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-06-25 01:46:06 +0400
commit59c6d6c4b5ed8ddfff8b3fef309ff435322c38bc (patch)
tree6e79ccc7d7b4f8512a342099c2959344d50ee23b /newlib
parente773b7cf30838eede30a357f83a5a1e37f006fd0 (diff)
2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/gethostname.c: Change name to __gethostname and add gethostname alias.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/sys/linux/gethostname.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 3e4ad47a2..115d68eed 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -6,6 +6,11 @@ Mon Jun 24 21:17:02 2002 J"orn Rennecke <joern.rennecke@superh.com>
2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
+ * libc/sys/linux/gethostname.c: Change name to __gethostname and
+ add gethostname alias.
+
+2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
+
* libc/include/math.h: Remove <sys/types.h>.
(__dmath): Use __ULong instead of __uint32_t.
* libc/include/sys/reent.h: If long or int is not 32-bits,
diff --git a/newlib/libc/sys/linux/gethostname.c b/newlib/libc/sys/linux/gethostname.c
index d5ebe58a2..ef526916f 100644
--- a/newlib/libc/sys/linux/gethostname.c
+++ b/newlib/libc/sys/linux/gethostname.c
@@ -4,9 +4,10 @@
#include <string.h>
#include <unistd.h>
#include <sys/utsname.h>
+#include <machine/weakalias.h>
int
-gethostname (char *name, size_t len)
+__gethostname (char *name, size_t len)
{
struct utsname nodebuf;
size_t nodelen;
@@ -27,4 +28,4 @@ gethostname (char *name, size_t len)
}
return 0;
}
-
+weak_alias(__gethostname, gethostname)