Solaris 2.5 & 2.5.1 portability fixes, based on patches from Steve Murphy

* glibtop_machine.h, open.c, procargs.c, proclist.c, procmap.c:
          Solaris 2.5 & 2.5.1 portability fixes, based on patches
          from Steve Murphy <murf@e-tools.com>.
This commit is contained in:
Drazen Kacar
1999-06-07 04:13:05 +00:00
parent e9baa3543e
commit 432adade05
6 changed files with 42 additions and 3 deletions

View File

@@ -64,9 +64,13 @@ struct _glibtop_machine
int ticks; /* clock ticks, as returned by sysconf() */
unsigned long long boot; /* boot time, although it's ui32 in kstat */
void *libproc; /* libproc handle */
#if GLIBTOP_SOLARIS_RELEASE >= 560
void (*objname)(void *, uintptr_t, const char *, size_t);
struct ps_prochandle *(*pgrab)(pid_t, int, int *);
void (*pfree)(void *);
#else
void *filler[3];
#endif
};
END_LIBGTOP_DECLS