ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/tools.c
Revision 1.11 - (view) (annotate) - [select for diffs]
Mon Oct 20 16:20:06 2003 UTC (20 years, 6 months ago) by pajs
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_7
Changes since 1.10: +9 -13 lines
Diff to previous 1.10
Changed the style slightly to be more readable.

Revision 1.10 - (view) (annotate) - [select for diffs]
Mon Oct 20 15:25:47 2003 UTC (20 years, 6 months ago) by pajs
Branch: MAIN
Changes since 1.9: +19 -0 lines
Diff to previous 1.9
Added statgrab_init()

This function just calls the get_kvm type functions so all special privilages
can be dropped after this function has been called. It currently only does
stuff on *bsd (and needs testing on netbsd). All other OS's will just have
a function that returns 0

Solaris at somepoint may need to do something here so we can do the drive mappings.

Revision 1.9 - (view) (annotate) - [select for diffs]
Sun Oct 19 02:03:02 2003 UTC (20 years, 7 months ago) by ats
Branch: MAIN
Changes since 1.8: +35 -2 lines
Diff to previous 1.8
Initial support for NetBSD. This adds NetBSD support for everything
except diskio stats (since they're even more disturbingly complex to get
at on NetBSD than the three OSs we already support). Tested against
NetBSD 1.6 on i386.

Revision 1.8 - (view) (annotate) - [select for diffs]
Sun Oct 19 00:25:30 2003 UTC (20 years, 7 months ago) by ats
Branch: MAIN
Changes since 1.7: +17 -0 lines
Diff to previous 1.7
Add a helper function for opening the kvm handle. This removes a little
bit of duplicated code, and means that we don't open and close kvm
(which can potentially be quite expensive) each time we use it. This
will also be useful for NetBSD.

Revision 1.7 - (view) (annotate) - [select for diffs]
Sun Oct 19 00:09:22 2003 UTC (20 years, 7 months ago) by ats
Branch: MAIN
Changes since 1.6: +3 -0 lines
Diff to previous 1.6
Remove headers from tools.h that the prototypes don't need (since
  they're included elsewhere where needed).
Include tools.h in tools.c, so we get warnings if the prototypes are
  wrong.

Revision 1.6 - (view) (annotate) - [select for diffs]
Sun Aug 24 20:24:09 2003 UTC (20 years, 8 months ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_5, LIBSTATGRAB_0_5_1, LIBSTATGRAB_0_6, LIBSTATGRAB_0_6_1
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
Tidy up of lots of little things. :)

Revision 1.5 - (view) (annotate) - [select for diffs]
Wed Apr 9 21:01:53 2003 UTC (21 years, 1 month ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_4
Changes since 1.4: +24 -0 lines
Diff to previous 1.4
Add the standard header. Particularly the bit about including config.h was
needed to allow the ifdef around the last function to work.

Revision 1.4 - (view) (annotate) - [select for diffs]
Sun Apr 6 11:57:54 2003 UTC (21 years, 1 month ago) by pajs
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3
Make the functions that use atoll have a #ifdef HAVE_ATOLL around them.
I did this because freebsd doesn't have this function, and it doesn't
need to run any of the functions in tools.h that uses them.

Revision 1.3 - (view) (annotate) - [select for diffs]
Fri Mar 7 11:56:44 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_3, LIBSTATGRAB_0_3_1, LIBSTATGRAB_0_3_2, LIBSTATGRAB_0_3_3, LIBSTATGRAB_0_3_4
Changes since 1.2: +23 -0 lines
Diff to previous 1.2
Made network stats work with linux.

Revision 1.2 - (view) (annotate) - [select for diffs]
Wed Mar 5 12:41:19 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.1: +1 -2 lines
Diff to previous 1.1
Working linux diskio stats. Fixed bug in tools.c

Revision 1.1 - (view) (annotate) - [select for diffs]
Tue Mar 4 18:07:42 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Useful tools, currently only one function. Function takes a file pointer
and will read threw it until it hits a passed string. It will return that
line.

Convenience Links

Links to HEAD: (view) (annotate) Links to LIBSTATGRAB_0_7: (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