Added `errno' field.
1999-12-22 Martin Baulig <martin@home-of-linux.org> * glibtop.h (glibtop): Added `errno' field. * include/glibtop/errors.h (GLIBTOP_ERROR_SERVER_COMM_FAILURE): New error constant. (GLIBTOP_ERROR_NO_SUCH_PROCESS): New error constant.
This commit is contained in:
committed by
Martin Baulig
parent
5f649a7613
commit
47a0ef64d8
@@ -1,3 +1,11 @@
|
||||
1999-12-22 Martin Baulig <martin@home-of-linux.org>
|
||||
|
||||
* glibtop.h (glibtop): Added `errno' field.
|
||||
|
||||
* include/glibtop/errors.h
|
||||
(GLIBTOP_ERROR_SERVER_COMM_FAILURE): New error constant.
|
||||
(GLIBTOP_ERROR_NO_SUCH_PROCESS): New error constant.
|
||||
|
||||
1999-12-19 Martin Baulig <martin@home-of-linux.org>
|
||||
|
||||
* include/glibtop/glib-arrays.h: New file.
|
||||
|
@@ -65,6 +65,7 @@ struct _glibtop
|
||||
glibtop_sysdeps required; /* Required feature list */
|
||||
glibtop_sysdeps wanted; /* We only want this features */
|
||||
glibtop_server_private *_priv; /* Private data */
|
||||
unsigned errno;
|
||||
};
|
||||
|
||||
extern glibtop *glibtop_global_server;
|
||||
|
@@ -37,7 +37,11 @@ BEGIN_LIBGTOP_DECLS
|
||||
#define GLIBTOP_ERROR_READONLY_VALUE 4
|
||||
#define GLIBTOP_ERROR_SIZE_MISMATCH 5
|
||||
|
||||
#define GLIBTOP_MAX_ERROR 6
|
||||
#define GLIBTOP_ERROR_SERVER_COMM_FAILURE 6
|
||||
|
||||
#define GLIBTOP_ERROR_NO_SUCH_PROCESS 7
|
||||
|
||||
#define GLIBTOP_MAX_ERROR 8
|
||||
|
||||
char *
|
||||
glibtop_get_error_string_l (glibtop *server, unsigned error_number);
|
||||
|
@@ -31,7 +31,9 @@ const char *glibtop_error_strings[GLIBTOP_MAX_ERROR] = {
|
||||
N_("Invalid argument"),
|
||||
N_("No such parameter"),
|
||||
N_("Attempted to modify a read-only value"),
|
||||
N_("Parameter size mismatch")
|
||||
N_("Parameter size mismatch"),
|
||||
N_("Communication with LibGTop server failed"),
|
||||
N_("No such process")
|
||||
};
|
||||
|
||||
char *
|
||||
|
Reference in New Issue
Block a user