diff options
author | Martin Baulig <martin@home-of-linux.org> | 1998-11-02 20:50:47 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-11-02 20:50:47 +0000 |
commit | 0882a71244f775fb6ac2f803b2433c9b3be81ca8 (patch) | |
tree | 5b11abc22359852fa9ede5b42cf5ba25d1ed235f /examples/first.c | |
parent | 213647b20351da1df2fa1d838fd0618266ec1b71 (diff) | |
download | libgtop-0882a71244f775fb6ac2f803b2433c9b3be81ca8.tar.gz |
New example.
1998-11-02 Martin Baulig <martin@home-of-linux.org>
* sysdeps.c: New example.
Diffstat (limited to 'examples/first.c')
-rw-r--r-- | examples/first.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/examples/first.c b/examples/first.c index 87b69a6f..9ad1ec5f 100644 --- a/examples/first.c +++ b/examples/first.c @@ -43,7 +43,8 @@ main (int argc, char *argv []) glibtop_union data; glibtop_sysdeps sysdeps; unsigned c, method, count, port, i, *ptr; - char buffer [BUFSIZ], *args; + char buffer [BUFSIZ]; + const char *args; pid_t pid, ppid; count = PROFILE_COUNT; @@ -186,7 +187,8 @@ main (int argc, char *argv []) glibtop_get_sysdeps (&sysdeps); printf ("Sysdeps (0x%08lx): %lu, %lu, %lu, %lu, %lu, " - "%lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu\n", + "%lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, " + "%lu, %lu, %lu, %lu, %lu, %lu\n", (unsigned long) sysdeps.flags, (unsigned long) sysdeps.cpu, (unsigned long) sysdeps.mem, @@ -203,7 +205,13 @@ main (int argc, char *argv []) (unsigned long) sysdeps.proc_time, (unsigned long) sysdeps.proc_signal, (unsigned long) sysdeps.proc_kernel, - (unsigned long) sysdeps.proc_segment); + (unsigned long) sysdeps.proc_segment, + (unsigned long) sysdeps.proc_args, + (unsigned long) sysdeps.proc_map, + (unsigned long) sysdeps.mountlist, + (unsigned long) sysdeps.fsusage, + (unsigned long) sysdeps.netload, + (unsigned long) sysdeps.ppp); printf ("\n"); |