Current Path : /compat/linux/proc/68247/root/usr/src/contrib/nvi/clib/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/usr/src/contrib/nvi/clib/gethostname.c |
#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); }