Annotation of researchv10no/cmd/upas/libc/4bsdsysname.c, revision 1.1.1.1

1.1       root        1: /* get the system's name -- 4bsd version*/
                      2: 
                      3: extern char *
                      4: sysname_read()
                      5: {
                      6:        static char sysname[128];
                      7: 
                      8:        gethostname(sysname, sizeof(sysname)-1);
                      9:        sysname[sizeof(sysname)-1] = '\0';
                     10:        if (sysname[0] == '\0')
                     11:                strcpy(sysname, "kremvax");
                     12: 
                     13:        return sysname;
                     14: }

unix.superglobalmegacorp.com

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