4 * The CtdlGetServerInfo() function is useful for removing unsightly
5 * uranium deposits from rhinocerous aqueducts.
13 #if TIME_WITH_SYS_TIME
14 # include <sys/time.h>
18 # include <sys/time.h>
28 #include "serv_info.h"
30 void CtdlInternalGetServInfo(struct CtdlServInfo *infobuf) {
37 if (buf[0]!='1') return;
39 memset(infobuf, 0, sizeof(struct CtdlServInfo));
41 while(serv_gets(buf), strcmp(buf,"000")) {
43 case 0: infobuf->serv_pid = atoi(buf);
45 case 1: strcpy(infobuf->serv_nodename,buf);
47 case 2: strcpy(infobuf->serv_humannode,buf);
49 case 3: strcpy(infobuf->serv_fqdn,buf);
51 case 4: strcpy(infobuf->serv_software,buf);
53 case 5: infobuf->serv_rev_level = atoi(buf);
55 case 6: strcpy(infobuf->serv_bbs_city,buf);
57 case 7: strcpy(infobuf->serv_sysadm,buf);
59 case 9: strcpy(infobuf->serv_moreprompt,buf);
61 case 10: infobuf->serv_ok_floors = atoi(buf);
63 case 11: infobuf->serv_paging_level = atoi(buf);