ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/error.c
Revision 1.18 - (view) (annotate) - [select for diffs]
Sun Oct 3 18:35:57 2010 UTC (13 years, 6 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +5 -1 lines
Diff to previous 1.17
Add support for AIX 5.x - 9.x.

Many thanks to Jens Rehsack <rehsack@googlemail.com> for providing the
patch for this work. Thanks!

Revision 1.17 - (view) (annotate) - [select for diffs]
Sat Sep 24 13:29:22 2005 UTC (18 years, 7 months ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_13, LIBSTATGRAB_0_14, LIBSTATGRAB_0_15, LIBSTATGRAB_0_16, LIBSTATGRAB_0_17
Changes since 1.16: +19 -1 lines
Diff to previous 1.16
Add WIN32 support via MINGW. We'll need to add stuff to the README file
about what this requires to build.

All the hard work done by: skel

Revision 1.16 - (view) (annotate) - [select for diffs]
Mon Nov 1 18:30:17 2004 UTC (19 years, 6 months ago) by tdb
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_11, LIBSTATGRAB_0_11_1, LIBSTATGRAB_0_12
Changes since 1.15: +3 -1 lines
Diff to previous 1.15
Merge in patch to provide support for HP-UX 11.11.

Contributed by Roy Keene - thanks Roy!

Revision 1.15 - (view) (annotate) - [select for diffs]
Sun Jul 18 20:44:01 2004 UTC (19 years, 9 months ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_10_1, LIBSTATGRAB_0_10_2, LIBSTATGRAB_0_10_3
Changes since 1.14: +2 -2 lines
Diff to previous 1.14
Remove extraneous consts.

Revision 1.14 - (view) (annotate) - [select for diffs]
Sun Jul 18 20:39:02 2004 UTC (19 years, 9 months ago) by ats
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13
Clear errno_value on errors that don't have a valid errno.

Revision 1.13 - (view) (annotate) - [select for diffs]
Fri Jul 16 15:28:02 2004 UTC (19 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.12: +6 -12 lines
Diff to previous 1.12
Do the errno capturing in a nicer way.

Revision 1.12 - (view) (annotate) - [select for diffs]
Fri Jul 16 15:07:14 2004 UTC (19 years, 9 months ago) by tdb
Branch: MAIN
Changes since 1.11: +19 -1 lines
Diff to previous 1.11
Add function to allow grabbing of the current errno. Should we store errno
too maybe?

Revision 1.11 - (view) (annotate) - [select for diffs]
Thu Apr 8 11:14:02 2004 UTC (20 years ago) by ats
Branch: MAIN
CVS Tags: LIBSTATGRAB_0_10
Changes since 1.10: +2 -1 lines
Diff to previous 1.10
... and include tools.h to get the definition of sg_strlcpy.

Revision 1.10 - (view) (annotate) - [select for diffs]
Thu Apr 8 11:01:44 2004 UTC (20 years ago) by ats
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9
sg_strlcpy, not strlcpy.

(I think that bit of code's won the "most errors in a three-line commit"
award...)

Revision 1.9 - (view) (annotate) - [select for diffs]
Wed Apr 7 21:47:50 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.8: +8 -2 lines
Diff to previous 1.8
Bugfix in error setting code - we can't strlcpy a NULL.
Test out the error code in an example.

Revision 1.8 - (view) (annotate) - [select for diffs]
Wed Apr 7 21:19:26 2004 UTC (20 years ago) by ats
Branch: MAIN
Changes since 1.7: +9 -4 lines
Diff to previous 1.7
Add sg_get_error_arg. It uses a static buffer for storage rather than
sg_update_string because we can't do anything about a malloc failure at
that point.

Remove the default case in the switch, so GCC will give an "unhandled
enum value in switch" warning if we add a new error code without a
string.

Revision 1.7 - (view) (annotate) - [select for diffs]
Wed Apr 7 21:08:40 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.6: +51 -17 lines
Diff to previous 1.6
The rest of the error handling stuff (except the vector code).

I've been extremely unimaginative with the string names in error.c, but
they're all in one place so much easier to tidy up. I'm also beginning to
wonder if we actually needed an SG_ERROR_SYSTEM_CALL to indicate some call
into the system failed - because the majority of our errors are those :-)

Still to do, then:
 - vector code
 - better string names in error.c
 - deal with arg string in some way
 - make use of the error status in statgrab/saidar/examples

Revision 1.6 - (view) (annotate) - [select for diffs]
Wed Apr 7 19:26:16 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.5: +15 -1 lines
Diff to previous 1.5
Error reporting for disk_stats.

Revision 1.5 - (view) (annotate) - [select for diffs]
Wed Apr 7 14:53:40 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.4: +0 -0 lines
Diff to previous 1.4
Whitespace tidyup - change spaces to tabs.

Revision 1.4 - (view) (annotate) - [select for diffs]
Wed Apr 7 14:45:40 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.3: +13 -4 lines
Diff to previous 1.3
Add error reporting to cpu_stats.

Revision 1.3 - (view) (annotate) - [select for diffs]
Wed Apr 7 09:44:08 2004 UTC (20 years ago) by tdb
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2
Add sg_realloc, and a macro fo sg_malloc.

Revision 1.2 - (view) (annotate) - [select for diffs]
Tue Apr 6 22:09:22 2004 UTC (20 years ago) by ats
Branch: MAIN
Changes since 1.1: +9 -4 lines
Diff to previous 1.1
Add SG_ERROR_NONE.

Make sg_str_error return const char *.

Revision 1.1 - (view) (annotate) - [select for diffs]
Tue Apr 6 21:38:55 2004 UTC (20 years ago) by tdb
Branch: MAIN
Some very basic startings of error handling stuff. I've not put much
thought into this yet, it's basically just the idea we've discussed.

Of course, this is the easy task. The hard job is creating a whole list of
different errors and using them across libstatgrab :-)

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