New error constant. (GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error
1999-12-22 Martin Baulig <martin@home-of-linux.org> * include/glibtop/errors.h (GLIBTOP_ERROR_NO_KERNEL_SUPPORT): New error constant. (GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error constant.
This commit is contained in:
committed by
Martin Baulig
parent
d86a386ad8
commit
1ad3a69d8f
@@ -1,5 +1,9 @@
|
||||
1999-12-22 Martin Baulig <martin@home-of-linux.org>
|
||||
|
||||
* 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
|
||||
|
@@ -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);
|
||||
|
@@ -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 *
|
||||
|
Reference in New Issue
Block a user