File: linuxinfo_unknown.c

package info (click to toggle)
linuxinfo 1.1.2-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 316 kB
  • ctags: 120
  • sloc: ansic: 527; sh: 327; makefile: 60
file content (35 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

/*----------------------------------------------------------------------------*

	LinuxInfo_unknown.c
		by Alex Buell
			September 1998

 ----------------------------------------------------------------------------- 

	Handles unknown architectures

 ----------------------------------------------------------------------------- 

	HISTORY

	1.01 - Initial development

 -----------------------------------------------------------------------------*/

#include "linuxinfo.h"

#ifdef system_unknown

void GetHardwareInfo(struct hw_stat *hw)
{
	sprintf(hw->hw_memory, "%ld", 0);

	hw->hw_processors = 0;

	sprintf(hw->hw_cpuinfo, "%s", "Unknown");
	sprintf(hw->hw_bogomips, "%0.2f", 0.0);
	sprintf(hw->hw_megahertz, "?");
}

#endif /* system_unknown */