From ff2e700e59fcd512876b6a0f9056cabeac49d3d3 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 26 Oct 1996 01:09:12 +0000 Subject: Fri Oct 25 20:30:22 1996 Thomas Bushnell, n/BSG * host.c: Include . Thu Oct 24 16:13:40 1996 Thomas Bushnell, n/BSG * host.c (initialize_version_info): Construct UNAME_INFO.machine with a dash instead of a slash so that it can be used as a file name component. * host.c (initialize_version_info): Copy our version into element 0 of server_versions, not element 1. Use HURD_VERSION instead of OUR_VERSION. Use literal "proc" instead of OUR_SERVER_NAME. * proc.h (OUR_SERVER_NAME, OUR_VERSION): Delete macro. --- proc/host.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'proc/host.c') diff --git a/proc/host.c b/proc/host.c index ab6ca059..fbbe1317 100644 --- a/proc/host.c +++ b/proc/host.c @@ -31,6 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include +#include #include "proc.h" #include "process_S.h" @@ -397,7 +398,7 @@ initialize_version_info (void) err = host_info (mach_host_self (), HOST_BASIC_INFO, (int *) &info, &n); assert (! err); - snprintf (uname_info.machine, sizeof uname_info.machine, "%s/%s", + snprintf (uname_info.machine, sizeof uname_info.machine, "%s-%s", mach_cpu_types[info.cpu_type], mach_cpu_subtypes[info.cpu_type][info.cpu_subtype]); @@ -417,8 +418,8 @@ initialize_version_info (void) kernel_name = strdup (p ? kv : "mach"); kernel_version = strdup (p ? p + 1 : kv); - server_versions[1].name = strdup (OUR_SERVER_NAME); - server_versions[1].version = strdup (OUR_VERSION); + server_versions[0].name = strdup ("proc"); + server_versions[0].version = strdup (HURD_VERSION); nserver_versions = 1; -- cgit v1.2.3