File:  [Research Unix] / researchv10no / cmd / nupas / libc / 4bsdsysname.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 -- 4bsd version*/

extern char *
sysname_read()
{
	static char sysname[128];

	gethostname(sysname, sizeof(sysname)-1);
	sysname[sizeof(sysname)-1] = '\0';
	if (sysname[0] == '\0')
		strcpy(sysname, "kremvax");

	return sysname;
}

unix.superglobalmegacorp.com

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