File: linuxinfo_unknown.c

package info (click to toggle)
linuxinfo 1.1.8-21
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 348 kB
  • ctags: 49
  • sloc: sh: 1,729; ansic: 564; makefile: 80
file content (36 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (5)
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
36
/*
        linuxinfo_unknown.c

        Copyright (C) 1998-2000
        All Rights Reserved.

        Alex Buell <alex.buell@munted.org.uk>

        Version Author  Date            Comments
        ----------------------------------------------------------------------
        1.0.0   AIB     199803??        Initial development
	1.0.1	AIB	20000406	Modifications to tidy up results

	This allows compilation on Linux system that linuxinfo does not
	know about.

*/

#include <stdio.h>
#include "linuxinfo.h"

#ifdef system_unknown

void GetHardwareInfo(int fd, struct hw_stat *hw)
{
	sprintf(hw->hw_memory, LONGSPEC, 0);

	hw->hw_processors = 0;

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

#endif /* system_unknown */