2 atlc - arbitrary transmission line calculator, for the analysis of
3 transmission lines are directional couplers.
5 Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either package_version 2
10 of the License, or (at your option) any later package_version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22 Dr. David Kirkby, e-mail drkirkby@ntlworld.com
36 #ifdef HAVE_SYS_TYPES_H
37 #include <sys/types.h>
57 struct computer_data data;
59 strcpy((char *) data.mhz,"unknown");
60 strcpy((char *) data.cpu_type,"unknown");
61 strcpy((char *) data.fpu_type,"unknown");
62 strcpy((char *) data.max_cpus,"unknown");
63 strcpy((char *) data.cpus,"unknown");
64 strcpy((char *) data.memory,"unknown");
65 strcpy((char *) data.sysname,"unknown");
66 strcpy((char *) data.nodename,"unknown");
67 strcpy((char *) data.release,"unknown");
68 strcpy((char *) data.version,"unknown");
69 strcpy((char *) data.machine,"unknown");
70 strcpy((char *) data.hw_provider,"unknown");
71 strcpy((char *) data.hw_platform,"unknown");
72 strcpy((char *) data.L1data,"unknown");
73 strcpy((char *) data.L1instruction,"unknown");
74 strcpy((char *) data.L2,"unknown");
76 #ifdef TRY_TO_GET_HARDWARE_INFO
87 printf("Hardware provider: %s\n", data.hw_provider);
88 printf("Hardware platform: %s\n",data.hw_platform);
89 printf("Machine: %s\n",data.machine);
90 printf("Sysname: %s\n",data.sysname);
91 printf("Release: %s\n",data.release);
92 printf("Version: %s\n",data.version);
93 printf("Nodename: %s\n",data.nodename);
94 printf("#CPUs supported: %s\n",data.max_cpus);
95 printf("#CPUs online: %s\n",data.cpus);
96 printf("CPU type: %s\n",data.cpu_type);
97 printf("FPU type: %s\n",data.fpu_type);
98 printf("Speed: %s MHz\n",data.mhz);
99 printf("RAM: %s Mb\n",data.memory);
100 printf("L1 data cache %s kb\n",data.L1data);
101 printf("L1 instruction cache: %s kb\n",data.L1instruction);
102 printf("L2 cache: %s kb\n",data.L2);