From 1ad3a69d8fe72a7be63820f71b3ceed7ffb94dc5 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Wed, 22 Dec 1999 12:51:59 +0000 Subject: [PATCH] New error constant. (GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error 1999-12-22 Martin Baulig * include/glibtop/errors.h (GLIBTOP_ERROR_NO_KERNEL_SUPPORT): New error constant. (GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error constant. --- ChangeLog | 4 ++++ include/glibtop/errors.h | 5 ++++- lib/errors.c | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e3c0a239..edc4a183 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-12-22 Martin Baulig + * include/glibtop/errors.h + (GLIBTOP_ERROR_NO_KERNEL_SUPPORT): New error constant. + (GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error constant. + * lib/errors.c (glibtop_get_errno_l): New global function. * lib/lib.pl: For functions with a `retval' return type, set diff --git a/include/glibtop/errors.h b/include/glibtop/errors.h index 2b194539..f56d84de 100644 --- a/include/glibtop/errors.h +++ b/include/glibtop/errors.h @@ -41,7 +41,10 @@ BEGIN_LIBGTOP_DECLS #define GLIBTOP_ERROR_NO_SUCH_PROCESS 7 -#define GLIBTOP_MAX_ERROR 8 +#define GLIBTOP_ERROR_NO_KERNEL_SUPPORT 8 +#define GLIBTOP_ERROR_INCOMPATIBLE_KERNEL 9 + +#define GLIBTOP_MAX_ERROR 10 char * glibtop_get_error_string_l (glibtop *server, unsigned error_number); diff --git a/lib/errors.c b/lib/errors.c index 1472befc..36ab5a4f 100644 --- a/lib/errors.c +++ b/lib/errors.c @@ -33,7 +33,9 @@ const char *glibtop_error_strings[GLIBTOP_MAX_ERROR] = { N_("Attempted to modify a read-only value"), N_("Parameter size mismatch"), N_("Communication with LibGTop server failed"), - N_("No such process") + N_("No such process"), + N_("No kernel support"), + N_("Incompatible kernel version") }; char *