diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-07 06:24:00 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-10 10:38:44 +0200 |
commit | eae4d14787e31c844cff93d8d5635bb01bbde3a7 (patch) | |
tree | 514430ff394b9d0d5156e60a722e657756045302 /cpukit/libnetworking/libc/gethostname.c | |
parent | Move <poll.h> to set of default header files (diff) | |
download | rtems-eae4d14787e31c844cff93d8d5635bb01bbde3a7.tar.bz2 |
network: Remove unused files
Diffstat (limited to 'cpukit/libnetworking/libc/gethostname.c')
-rw-r--r-- | cpukit/libnetworking/libc/gethostname.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/cpukit/libnetworking/libc/gethostname.c b/cpukit/libnetworking/libc/gethostname.c deleted file mode 100644 index 6f58189cd4..0000000000 --- a/cpukit/libnetworking/libc/gethostname.c +++ /dev/null @@ -1,24 +0,0 @@ -#if HAVE_CONFIG_H -#include "config.h" -#endif - -/* - * 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); -} |