#include <h/utils.h>
#include <ctype.h>
#include <stdio.h>
-#include <h/mts.h>
#include <pwd.h>
#include <netdb.h>
/*
-** This is only for UUCP mail. It gets the hostname
-** as part of the UUCP "domain".
-*/
-char *
-SystemName(void)
-{
- static char buffer[BUFSIZ] = "";
-
-#ifdef HAVE_UNAME
- struct utsname name;
-#endif
-
- /* check if we have cached the system name */
- if (buffer[0])
- return buffer;
-
-#ifdef HAVE_UNAME
- uname(&name);
- strncpy(buffer, name.nodename, sizeof(buffer));
-#else
- gethostname(buffer, sizeof(buffer));
-#endif
-
- return buffer;
-}
-
-
-/*
** Get the username of current user
*/
char *