File:  [Research Unix] / researchv10no / cmd / nupas / libc / s5sysname.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

/* get the system's name -- System V */

#include <utsname.h>
#include <string.h>

extern char *
sysname_read()
{
	static struct utsname s;

	if (uname(&s)<0 || strcmp(s.nodename, "") == 0)
		return "kremvax";
	return s.nodename;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.