Added some new features.

1999-03-30  Martin Baulig  <martin@home-of-linux.org>

	Added some new features.

	* (glibtop_uptime): Added `boot_time', boot time in seconds
	since the epoch.

	* (glibtop_proc_state): Changed `state' from char to unsigned.
	`uid' and `gid' are effective uid and gid; added comment.
	Added `ruid' and `rgid' for guaranteed-to-be-correct real uid/gid.
	For SMP systems: added `has_cpu', `processor' and `last_processor'.

	* (glibtop_proc_uid): Added suid, sgid, fsuid, fsgid, ngroups, groups.

	* (glibtop_proc_segment): Added start_data, end_data, start_brk,
	end_brk, start_mmap, arg_start, arg_end, env_start, env_end.

	* include/glibtop/procstate.h: Define some constants for the `state'
	field of glibtop_proc_state.

	* include/glibtop/prockernel.h: Define some constands for the
	`k_flags' field of glibtop_proc_kernel.
This commit is contained in:
Martin Baulig
1999-03-31 16:53:05 +00:00
committed by Martin Baulig
parent 3a7f02352a
commit ede4594dd9
15 changed files with 340 additions and 99 deletions

View File

@@ -100,7 +100,18 @@ glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
buf->start_code = proc_state.start_code;
buf->end_code = proc_state.end_code;
buf->start_data = proc_state.start_data;
buf->end_data = proc_state.end_data;
buf->start_brk = proc_state.start_brk;
buf->end_brk = proc_state.brk;
buf->start_stack = proc_state.start_stack;
buf->start_mmap = proc_state.start_mmap;
buf->arg_start = proc_state.arg_start;
buf->arg_end = proc_state.arg_end;
buf->env_start = proc_state.env_start;
buf->env_end = proc_state.env_end;
buf->flags |= _glibtop_sysdeps_proc_segment_state;
}