File: linuxinfo_unknown.c

package info (click to toggle)
linuxinfo 4.2.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,332 kB
  • sloc: sh: 4,837; ansic: 1,379; makefile: 99; sed: 16
file content (36 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (6)
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.eu>

        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 */