summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libnetworking/libc/gethostname.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-04 18:40:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-04 18:40:53 +0000
commitcc63e08130fac85712365e1d9fc6be82a6f288dc (patch)
treefe6ab899f3e2ac388574d2719a0863500549b218 /c/src/lib/libnetworking/libc/gethostname.c
parentPatch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>: (diff)
downloadrtems-cc63e08130fac85712365e1d9fc6be82a6f288dc.tar.bz2
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to make libnetworking
a top level more independently configured package.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libnetworking/libc/gethostname.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/c/src/lib/libnetworking/libc/gethostname.c b/c/src/lib/libnetworking/libc/gethostname.c
deleted file mode 100644
index 81dc2267c2..0000000000
--- a/c/src/lib/libnetworking/libc/gethostname.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * $Id$
- */
-
-#include "config.h"
-
-/*
- * Solaris doesn't include the gethostname call by default.
- */
-#include <sys/utsname.h>
-#include <sys/systeminfo.h>
-
-#include <netdb.h>
-
-/*
- * PUBLIC: #ifndef HAVE_GETHOSTNAME
- * PUBLIC: int gethostname __P((char *, int));
- * PUBLIC: #endif
- */
-int
-gethostname(host, len)
- char *host;
- int len;
-{
- return (sysinfo(SI_HOSTNAME, host, len) == -1 ? -1 : 0);
-}