1sg_get_host_info(3) Library Functions Manual sg_get_host_info(3)
2
3
4
6 sg_get_host_info - get general operating system statistics
7
9 #include <statgrab.h>
10
11
12 sg_host_info *sg_get_host_info(void);
13
15 This call returns details on the operating system.
16
17 It returns a pointer to a static buffer of sg_host_info.
18
20 The structure returned is of type sg_host_info.
21
22 typedef struct{
23 char *os_name;
24 char *os_release;
25 char *os_version;
26 char *platform;
27 char *hostname;
28 time_t uptime;
29 }sg_host_info;
30
31
32 os_name
33 the operating system name. (eg. SunOS or Linux)
34
35 os_release
36 the operating system release. (eg. 5.8 or 5.9 or Solaris)
37
38 os_version
39 the version level of the OS.
40
41 platform
42 the hardware platform (architecture) the OS runs on.
43
44 hostname
45 the name of the machine.
46
47 uptime the uptime of the machine in seconds.
48
50 statgrab(3)
51
53 http://www.i-scream.org/libstatgrab/
54
55
56
57i-scream $Date: 2005/04/25 11:25:45 $ sg_get_host_info(3)