3 |
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
4 |
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
5 |
|
|
6 |
< |
<refentry id="get_general_stats"> |
6 |
> |
<refentry id="sg_get_host_info"> |
7 |
|
|
8 |
|
<refentryinfo> |
9 |
|
<date>$Date$</date> |
10 |
|
<releaseinfo>$Id$</releaseinfo> |
11 |
|
</refentryinfo> |
12 |
< |
|
12 |
> |
|
13 |
|
<refmeta> |
14 |
< |
<refentrytitle>get_general_stats</refentrytitle> |
14 |
> |
<refentrytitle>sg_get_host_info</refentrytitle> |
15 |
|
<manvolnum>3</manvolnum> |
16 |
|
<refmiscinfo>i-scream</refmiscinfo> |
17 |
|
</refmeta> |
18 |
< |
|
18 |
> |
|
19 |
|
<refnamediv> |
20 |
< |
<refname>get_general_stats</refname> |
20 |
> |
<refname>sg_get_host_info</refname> |
21 |
|
<refpurpose>get general operating system statistics</refpurpose> |
22 |
|
</refnamediv> |
23 |
< |
|
23 |
> |
|
24 |
|
<refsynopsisdiv> |
25 |
|
<funcsynopsis> |
26 |
|
<funcsynopsisinfo>#include <statgrab.h></funcsynopsisinfo> |
27 |
|
<funcprototype> |
28 |
< |
<funcdef>general_stat_t *<function>get_general_stats</function></funcdef> |
28 |
> |
<funcdef>sg_host_info *<function>sg_get_host_info</function></funcdef> |
29 |
|
<void/> |
30 |
|
</funcprototype> |
31 |
|
</funcsynopsis> |
32 |
|
</refsynopsisdiv> |
33 |
< |
|
33 |
> |
|
34 |
|
<refsect1> |
35 |
|
<title>Description</title> |
36 |
|
<para> |
38 |
|
</para> |
39 |
|
<para> |
40 |
|
It returns a pointer to a static buffer of |
41 |
< |
<structname>general_stat_t</structname>. |
41 |
> |
<structname>sg_host_info</structname>. |
42 |
|
</para> |
43 |
|
</refsect1> |
44 |
< |
|
44 |
> |
|
45 |
|
<refsect1> |
46 |
|
<title>Return Values</title> |
47 |
|
|
48 |
|
<para> |
49 |
|
The structure returned is of type |
50 |
< |
<structname>general_stat_t</structname>. |
50 |
> |
<structname>sg_host_info</structname>. |
51 |
|
</para> |
52 |
|
|
53 |
|
<programlisting> |
58 |
|
char *platform; |
59 |
|
char *hostname; |
60 |
|
time_t uptime; |
61 |
< |
}general_stat_t; |
61 |
> |
}sg_host_info; |
62 |
|
</programlisting> |
63 |
|
|
64 |
|
<variablelist> |
127 |
|
</member> |
128 |
|
</simplelist> |
129 |
|
</refsect1> |
130 |
< |
|
130 |
> |
|
131 |
|
<refsect1> |
132 |
|
<title>Website</title> |
133 |
< |
|
133 |
> |
|
134 |
|
<simplelist type="vert"> |
135 |
|
<member> |
136 |
|
<ulink url="http://www.i-scream.org/libstatgrab/"> |