ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/examples/process_snapshot.c
Revision 1.10 - (view) (annotate) - [select for diffs]
Thu Apr 8 13:16:04 2004 UTC (20 years ago) by ats
Branch: MAIN
CVS Tags: HEAD, LIBSTATGRAB_0_10, LIBSTATGRAB_0_10_1, LIBSTATGRAB_0_10_2, LIBSTATGRAB_0_10_3, LIBSTATGRAB_0_11, LIBSTATGRAB_0_11_1, LIBSTATGRAB_0_12, LIBSTATGRAB_0_13, LIBSTATGRAB_0_14, LIBSTATGRAB_0_15, LIBSTATGRAB_0_16, LIBSTATGRAB_0_17
Changes since 1.9: +3 -1 lines
Diff to previous 1.9
Nuke sg_process_sort, and make the process stats example demonstrate how
to sort using the compare functions and qsort.

Revision 1.9 - (view) (annotate) - [select for diffs]
Wed Apr 7 15:50:25 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.8: +8 -8 lines
Diff to previous 1.8
More whitespace tidyup (spaces->tabs).

Revision 1.8 - (view) (annotate) - [select for diffs]
Tue Apr 6 14:52:56 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7
Update name of project at the top of all soure files. These files now exist
in their own right, rather than as part of the "CMS".

Revision 1.7 - (view) (annotate) - [select for diffs]
Mon Apr 5 16:23:08 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.6: +12 -11 lines
Diff to previous 1.6
Update examples to use new names. I guess some renaming could probably be
done here, but at least they all compile again now.

Revision 1.6 - (view) (annotate) - [select for diffs]
Sun Apr 4 23:57:33 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
Returning NULL in a function that returns int's is wrong :)

Now returns -1 on failure. Also change code that calls us to check for < 0
for failures.

Revision 1.5 - (view) (annotate) - [select for diffs]
Sun Apr 4 22:52:40 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4
get_proc_snapshot returns an int, not a pointer.

Revision 1.4 - (view) (annotate) - [select for diffs]
Sun Apr 4 22:48:49 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3
Fix a bunch of warnings on the BSD's.

Revision 1.3 - (view) (annotate) - [select for diffs]
Sat Apr 3 22:59:30 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.2: +4 -1 lines
Diff to previous 1.2
Add support for FreeBSD 4. I suspect this may work on OpenBSD and NetBSD
too, although I'll need to verify that.

Also add an additional process state of UNKNOWN.

Revision 1.2 - (view) (annotate) - [select for diffs]
Sat Apr 3 21:02:10 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.1: +6 -1 lines
Diff to previous 1.1
Add test for failure to get stats.

Revision 1.1 - (view) (annotate) - [select for diffs]
Sat Apr 3 16:55:38 2004 UTC (20 years ago) by tdb
Branch: MAIN
Add process_snapshot example for testing the new process stats code.

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a