New #define. (GLIBTOP_UNLIMITED): #define this to be `(~(u_int64_t)0)'.

1999-12-05  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/limits.h (GLIBTOP_INTERFACE_LEN): New #define.
	(GLIBTOP_UNLIMITED): #define this to be `(~(u_int64_t)0)'.
This commit is contained in:
Martin Baulig
1999-12-05 13:52:32 +00:00
committed by Martin Baulig
parent c1cae4e9ba
commit 069eb707f0
2 changed files with 9 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
1999-12-05 Martin Baulig <martin@home-of-linux.org> 1999-12-05 Martin Baulig <martin@home-of-linux.org>
* include/glibtop/limits.h (GLIBTOP_INTERFACE_LEN): New #define.
(GLIBTOP_UNLIMITED): #define this to be `(~(u_int64_t)0)'.
* glibtop.h (glibtop): Added `refcount' field. * glibtop.h (glibtop): Added `refcount' field.
* lib/init.c (glibtop_server_ref, glibtop_server_unref): New * lib/init.c (glibtop_server_ref, glibtop_server_unref): New
functions to deal with refcounts. functions to deal with refcounts.

View File

@@ -39,6 +39,12 @@ BEGIN_LIBGTOP_DECLS
/* Maximum length of a mountpoint/device name in glibtop_mountlist. */ /* Maximum length of a mountpoint/device name in glibtop_mountlist. */
#define GLIBTOP_MOUNTENTRY_LEN 79 #define GLIBTOP_MOUNTENTRY_LEN 79
/* Maximum length of a network interface name. */
#define GLIBTOP_INTERFACE_LEN 32
/* This is ((u_int64_t)-1) */
#define GLIBTOP_UNLIMITED (~(u_int64_t)0)
END_LIBGTOP_DECLS END_LIBGTOP_DECLS
#endif #endif