Minor fixes for SunOS.
This commit is contained in:
@@ -359,7 +359,5 @@ main (int argc, char *argv [])
|
|||||||
data.proc_segment.start_code, data.proc_segment.end_code,
|
data.proc_segment.start_code, data.proc_segment.end_code,
|
||||||
data.proc_segment.start_stack);
|
data.proc_segment.start_stack);
|
||||||
|
|
||||||
fcloseall ();
|
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
@@ -21,25 +21,23 @@
|
|||||||
#include <glibtop/union.h>
|
#include <glibtop/union.h>
|
||||||
#include <glibtop/sysdeps.h>
|
#include <glibtop/sysdeps.h>
|
||||||
|
|
||||||
#define BIT_MASK(feature) (feature ? (1 << feature) : feature)
|
|
||||||
|
|
||||||
const unsigned long glibtop_server_features =
|
const unsigned long glibtop_server_features =
|
||||||
BIT_MASK(GLIBTOP_SUID_CPU) +
|
GLIBTOP_SUID_CPU +
|
||||||
BIT_MASK(GLIBTOP_SUID_MEM) +
|
GLIBTOP_SUID_MEM +
|
||||||
BIT_MASK(GLIBTOP_SUID_SWAP) +
|
GLIBTOP_SUID_SWAP +
|
||||||
BIT_MASK(GLIBTOP_SUID_UPTIME) +
|
GLIBTOP_SUID_UPTIME +
|
||||||
BIT_MASK(GLIBTOP_SUID_LOADAVG) +
|
GLIBTOP_SUID_LOADAVG +
|
||||||
BIT_MASK(GLIBTOP_SUID_SHM_LIMITS) +
|
GLIBTOP_SUID_SHM_LIMITS +
|
||||||
BIT_MASK(GLIBTOP_SUID_MSG_LIMITS) +
|
GLIBTOP_SUID_MSG_LIMITS +
|
||||||
BIT_MASK(GLIBTOP_SUID_SEM_LIMITS) +
|
GLIBTOP_SUID_SEM_LIMITS +
|
||||||
BIT_MASK(GLIBTOP_SUID_PROCLIST) +
|
GLIBTOP_SUID_PROCLIST +
|
||||||
BIT_MASK(GLIBTOP_SUID_PROC_STATE) +
|
GLIBTOP_SUID_PROC_STATE +
|
||||||
BIT_MASK(GLIBTOP_SUID_PROC_UID) +
|
GLIBTOP_SUID_PROC_UID +
|
||||||
BIT_MASK(GLIBTOP_SUID_PROC_MEM) +
|
GLIBTOP_SUID_PROC_MEM +
|
||||||
BIT_MASK(GLIBTOP_SUID_PROC_TIME) +
|
GLIBTOP_SUID_PROC_TIME +
|
||||||
BIT_MASK(GLIBTOP_SUID_PROC_SIGNAL) +
|
GLIBTOP_SUID_PROC_SIGNAL +
|
||||||
BIT_MASK(GLIBTOP_SUID_PROC_KERNEL) +
|
GLIBTOP_SUID_PROC_KERNEL +
|
||||||
BIT_MASK(GLIBTOP_SUID_PROC_SEGMENT);
|
GLIBTOP_SUID_PROC_SEGMENT;
|
||||||
|
|
||||||
/* Checks which features are implemented. */
|
/* Checks which features are implemented. */
|
||||||
|
|
||||||
|
@@ -24,5 +24,5 @@
|
|||||||
/* Closes pipe to gtop server. */
|
/* Closes pipe to gtop server. */
|
||||||
|
|
||||||
void
|
void
|
||||||
glibtop_close (glibtop *server)
|
glibtop_close_l (glibtop *server)
|
||||||
{ }
|
{ }
|
||||||
|
Reference in New Issue
Block a user