"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libsysinfo-0.2.2/sysinfo.h" between
linux_logo-5.11.tar.gz and linux_logo-6.0.tar.gz

About: Linux_Logo - an ANSI Color Penguin Logo that can be run at bootup. Also shows some system info.

sysinfo.h  (linux_logo-5.11):sysinfo.h  (linux_logo-6.0)
skipping to change at line 15 skipping to change at line 15
#define SYSINFO_OS_NAME_SIZE 32 #define SYSINFO_OS_NAME_SIZE 32
#define SYSINFO_OS_VERSION_SIZE 32 #define SYSINFO_OS_VERSION_SIZE 32
#define SYSINFO_OS_REVISION_SIZE 64 #define SYSINFO_OS_REVISION_SIZE 64
#define SYSINFO_HOSTNAME_SIZE 64 #define SYSINFO_HOSTNAME_SIZE 64
#define SYSINFO_DOMAIN_SIZE 64 #define SYSINFO_DOMAIN_SIZE 64
#define SYSINFO_CHIP_VENDOR_SIZE 32 #define SYSINFO_CHIP_VENDOR_SIZE 32
#define SYSINFO_CHIP_TYPE_SIZE 64 #define SYSINFO_CHIP_TYPE_SIZE 64
#define SYSINFO_HARDWARE_STRING_SIZE 64 #define SYSINFO_HARDWARE_STRING_SIZE 64
struct os_info_type { struct os_info_type {
char os_name[SYSINFO_OS_NAME_SIZE+1]; char os_name[SYSINFO_OS_NAME_SIZE+1];
char os_version[SYSINFO_OS_VERSION_SIZE+1]; char os_version[SYSINFO_OS_VERSION_SIZE+1];
char os_revision[SYSINFO_OS_REVISION_SIZE+1]; char os_revision[SYSINFO_OS_REVISION_SIZE+1];
}; };
int get_os_info(struct os_info_type *os_info); int get_os_info(struct os_info_type *os_info);
/* host name */ /* host name */
char *get_host_name(char *hostname,char *domain); char *get_host_name(char *hostname,char *domain);
/* uptime (seconds the system has been up) */ /* uptime (seconds the system has been up) */
int get_uptime(void); int get_uptime(void);
/* load average ( average load across 1, 5 and 15 minutes) */ /* load average ( average load across 1, 5 and 15 minutes) */
void get_load_average(float *load_1,float *load_5,float *load_15); int get_load_average(float *load_1,float *load_5,float *load_15);
struct cpu_info_type { struct cpu_info_type {
int num_cpus; int num_cpus;
float megahertz; int family,model,stepping;
float bogomips; float megahertz;
char chip_vendor[SYSINFO_CHIP_VENDOR_SIZE+1]; float bogomips;
char chip_type[SYSINFO_CHIP_TYPE_SIZE+1]; char chip_vendor[SYSINFO_CHIP_VENDOR_SIZE+1];
char chip_type[SYSINFO_CHIP_TYPE_SIZE+1];
}; };
int get_cpu_info(struct cpu_info_type *cpu_info); int get_cpu_info(struct cpu_info_type *cpu_info);
/* Hardware info string */ /* Hardware info string */
int get_hardware_info(char *hardware_string); int get_hardware_info(char *hardware_string);
#define MEM_USE_SYSINFO -1 #define MEM_USE_SYSINFO -1
#define MEM_USE_MEMINFO -2 #define MEM_USE_MEMINFO -2
/* mem_size (in megabytes) (will this work on > 4Gig systems?) */ /* mem_size (in megabytes) (will this work on > 4Gig systems?) */
long long get_mem_size(void); long long get_mem_size(void);
/* Use if the generic mem_size routines don't work for your arch */ /* Use if the generic mem_size routines don't work for your arch */
long long get_arch_specific_mem_size(void); long long get_arch_specific_mem_size(void);
long long get_mem_size_sysinfo(void); long long get_mem_size_sysinfo(void);
long long get_mem_size_meminfo(void); long long get_mem_size_meminfo(void);
long long get_mem_size_iomem(void); long long get_mem_size_iomem(void);
long long get_mem_size_stat(void); long long get_mem_size_stat(void);
double get_cpu_mhz(void);
/* Debugging */ /* Debugging */
int set_cpuinfo_file(char *filename); int set_cpuinfo_file(char *filename);
void set_pretty_printing(int value); void set_pretty_printing(int value);
 End of changes. 4 change blocks. 
9 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)