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 37 38 39 40
|
/*
linuxinfo_unknown.c
Copyright (C) 1998-2000
All Rights Reserved.
Alex Buell <alex.buell@tahallah.demon.co.uk>
Advanced Buell Software Engineering Ltd
Hampshire, GU31 5DG
United Kingdom
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, "%ld", 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 */
|