ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/docs/os_stats.txt
(Generate patch)

Comparing projects/libstatgrab/docs/os_stats.txt (file contents):
Revision 1.1 by pajs, Sun Aug 24 15:37:11 2003 UTC vs.
Revision 1.2 by tdb, Sun Aug 24 20:24:08 2003 UTC

# Line 1 | Line 1
1 < general_stat_t *get_general_stats();
1 > General Operating System Statistics
2 > ===================================
3  
4 < This call returns details omn  the OS, e.g. hostname and uptime.
4 > $Id$
5  
6 < It returns a static buffer general_stat_t
6 > The structure returned is of type general_stat_t and looks like this:
7  
8   typedef struct{
9          char *os_name;
# Line 13 | Line 14 | typedef struct{
14          time_t uptime;
15   }general_stat_t;
16  
17 < os_name is the operating system name, eg, SunOS, or Linux
18 < os_release is the operationg system release, eg 5.8 or 5.9 for solaris 8 and 9
19 < os_version is the info revision of that OS release.
20 < platform is the hardware platform the OS runs on. E.g. Sun4U or i386
21 < hostname is the name of the machine that it think it is called (nodename)
22 < uptime is uptime of the machine in seconds
17 > os_name         is the operating system name.
18 >                (eg. SunOS or Linux)
19 > os_release      is the operating system release.
20 >                (eg. 5.8 or 5.9 for Solaris)
21 > os_version      is the version level of the OS.
22 > platform        is the hardware platform (architecture) the OS runs on.
23 > hostname        is the name of the machine
24 > uptime          is the uptime of the machine in seconds
25 >
26 > Functions
27 > ---------
28 >
29 > general_stat_t *get_general_stats();
30 >
31 > This call returns details on the operating system.
32 >
33 > It returns a static buffer general_stat_t.
34 >
35 > Example
36 > -------
37 >
38 > An example can be found in examples/os_info.c

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines