|
|
1.1 ! root 1: #include "uucp.h" ! 2: ! 3: #ifdef UNAME ! 4: #include <sys/utsname.h> ! 5: #endif ! 6: /******* ! 7: * uucpname(name) get the uucp name ! 8: * ! 9: * return code - none ! 10: */ ! 11: ! 12: uucpname(name) ! 13: char *name; ! 14: { ! 15: char *s, *d; ! 16: int i; ! 17: ! 18: #ifdef UNAME ! 19: struct utsname utsname; ! 20: ! 21: uname(&utsname); ! 22: s = &utsname.nodename; ! 23: #endif ! 24: ! 25: #ifndef UNAME ! 26: s = MYNAME; ! 27: #endif ! 28: ! 29: d = name; ! 30: while ((*d = *s++) && d < name + 7) ! 31: d++; ! 32: *(name + 7) = '\0'; ! 33: return; ! 34: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.