ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/docs/sg_get_host_info.xml
Revision: 1.6
Committed: Mon Apr 25 11:25:47 2005 UTC (19 years ago) by tdb
Content type: text/xml
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
State: FILE REMOVED
Log Message:
Move by repocopy the libstatgrab docs in to a subdirectory. This is so
I can create separate directories for statgrab/saidar docs.

File Contents

# Content
1 <?xml version="1.0"?>
2
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="sg_get_host_info">
7
8 <refentryinfo>
9 <date>$Date: 2004/05/02 17:21:35 $</date>
10 <releaseinfo>$Id: sg_get_host_info.xml,v 1.5 2004/05/02 17:21:35 tdb Exp $</releaseinfo>
11 </refentryinfo>
12
13 <refmeta>
14 <refentrytitle>sg_get_host_info</refentrytitle>
15 <manvolnum>3</manvolnum>
16 <refmiscinfo>i-scream</refmiscinfo>
17 </refmeta>
18
19 <refnamediv>
20 <refname>sg_get_host_info</refname>
21 <refpurpose>get general operating system statistics</refpurpose>
22 </refnamediv>
23
24 <refsynopsisdiv>
25 <funcsynopsis>
26 <funcsynopsisinfo>#include &lt;statgrab.h&gt;</funcsynopsisinfo>
27 <funcprototype>
28 <funcdef>sg_host_info *<function>sg_get_host_info</function></funcdef>
29 <void/>
30 </funcprototype>
31 </funcsynopsis>
32 </refsynopsisdiv>
33
34 <refsect1>
35 <title>Description</title>
36 <para>
37 This call returns details on the operating system.
38 </para>
39 <para>
40 It returns a pointer to a static buffer of
41 <structname>sg_host_info</structname>.
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Return Values</title>
47
48 <para>
49 The structure returned is of type
50 <structname>sg_host_info</structname>.
51 </para>
52
53 <programlisting>
54 typedef struct{
55 char *os_name;
56 char *os_release;
57 char *os_version;
58 char *platform;
59 char *hostname;
60 time_t uptime;
61 }sg_host_info;
62 </programlisting>
63
64 <variablelist>
65 <varlistentry>
66 <term><structfield>os_name</structfield></term>
67 <listitem>
68 <para>
69 the operating system name.
70 (eg. SunOS or Linux)
71 </para>
72 </listitem>
73 </varlistentry>
74 <varlistentry>
75 <term><structfield>os_release</structfield></term>
76 <listitem>
77 <para>
78 the operating system release.
79 (eg. 5.8 or 5.9 or Solaris)
80 </para>
81 </listitem>
82 </varlistentry>
83 <varlistentry>
84 <term><structfield>os_version</structfield></term>
85 <listitem>
86 <para>
87 the version level of the OS.
88 </para>
89 </listitem>
90 </varlistentry>
91 <varlistentry>
92 <term><structfield>platform</structfield></term>
93 <listitem>
94 <para>
95 the hardware platform (architecture) the OS runs on.
96 </para>
97 </listitem>
98 </varlistentry>
99 <varlistentry>
100 <term><structfield>hostname</structfield></term>
101 <listitem>
102 <para>
103 the name of the machine.
104 </para>
105 </listitem>
106 </varlistentry>
107 <varlistentry>
108 <term><structfield>uptime</structfield></term>
109 <listitem>
110 <para>
111 the uptime of the machine in seconds.
112 </para>
113 </listitem>
114 </varlistentry>
115 </variablelist>
116 </refsect1>
117
118 <refsect1>
119 <title>See Also</title>
120
121 <simplelist type="inline">
122 <member>
123 <citerefentry>
124 <refentrytitle>statgrab</refentrytitle>
125 <manvolnum>3</manvolnum>
126 </citerefentry>
127 </member>
128 </simplelist>
129 </refsect1>
130
131 <refsect1>
132 <title>Website</title>
133
134 <simplelist type="vert">
135 <member>
136 <ulink url="http://www.i-scream.org/libstatgrab/">
137 http://www.i-scream.org/libstatgrab/
138 </ulink>
139 </member>
140 </simplelist>
141 </refsect1>
142
143 </refentry>