summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-05-10 11:02:59 +0000
committerMartin Baulig <martin@src.gnome.org>1999-05-10 11:02:59 +0000
commitf107c34f820e86ecbdc6af764d9d7d8922074cff (patch)
tree9510e83291f04bf63dbfe517b9c252de38f47cbf /doc
parent9b5bfd33ef6cfe8475dd11e619f65e186945795b (diff)
downloadlibgtop-f107c34f820e86ecbdc6af764d9d7d8922074cff.tar.gz
Added proc_uid.
Diffstat (limited to 'doc')
-rw-r--r--doc/libgtop.texi8
-rw-r--r--doc/reference.texi95
2 files changed, 94 insertions, 9 deletions
diff --git a/doc/libgtop.texi b/doc/libgtop.texi
index af9ea466..c728af3b 100644
--- a/doc/libgtop.texi
+++ b/doc/libgtop.texi
@@ -24,7 +24,10 @@
- --- The Detailed Node Listing ---
+
+
+
+@detailmenu --- The Detailed Node Listing ---
About LibGTop
@@ -42,6 +45,9 @@ LibGTop Reference Manual
* glibtop_loadavg:: Load Average.
* glibtop_proclist:: Process List.
* glibtop_proc_state:: Process State.
+* glibtop_proc_uid:: Process UID and TTY Information.
+
+@end detailmenu
@end menu
@include about.texi
diff --git a/doc/reference.texi b/doc/reference.texi
index a3ee9055..a82eeb8d 100644
--- a/doc/reference.texi
+++ b/doc/reference.texi
@@ -9,6 +9,7 @@
* glibtop_loadavg:: Load Average.
* glibtop_proclist:: Process List.
* glibtop_proc_state:: Process State.
+* glibtop_proc_uid:: Process UID and TTY Information.
@end menu
@node glibtop_cpu, glibtop_mem, Reference Manual, Reference Manual
@@ -23,7 +24,7 @@ void glibtop_get_cpu_l (glibtop *server, glibtop_cpu *buf);
@end cartouche
@end example
-Declaration of @code{glibtop_cpu} in @file{<glibtop/cpu.h}:
+Declaration of @code{glibtop_cpu} in @file{<glibtop/cpu.h>}:
@example
@cartouche
@@ -105,7 +106,7 @@ void glibtop_get_mem_l (glibtop *server, glibtop_mem *buf);
@end cartouche
@end example
-Declaration of @code{glibtop_mem} in @file{<glibtop/mem.h}:
+Declaration of @code{glibtop_mem} in @file{<glibtop/mem.h>}:
@example
@cartouche
@@ -173,7 +174,7 @@ void glibtop_get_swap_l (glibtop *server, glibtop_swap *buf);
@end cartouche
@end example
-Declaration of @code{glibtop_swap} in @file{<glibtop/swap.h}:
+Declaration of @code{glibtop_swap} in @file{<glibtop/swap.h>}:
@example
@cartouche
@@ -232,7 +233,7 @@ void glibtop_get_uptime_l (glibtop *server, glibtop_uptime *buf);
@end cartouche
@end example
-Declaration of @code{glibtop_uptime} in @file{<glibtop/uptime.h}:
+Declaration of @code{glibtop_uptime} in @file{<glibtop/uptime.h>}:
@example
@cartouche
@@ -284,7 +285,7 @@ void glibtop_get_loadavg_l (glibtop *server, glibtop_loadavg *buf);
@end cartouche
@end example
-Declaration of @code{glibtop_loadavg} in @file{<glibtop/loadavg.h}:
+Declaration of @code{glibtop_loadavg} in @file{<glibtop/loadavg.h>}:
@example
@cartouche
@@ -361,7 +362,7 @@ Constants for the @code{which} argument:
@end cartouche
@end example
-Declaration of @code{glibtop_proclist} in @file{<glibtop/proclist.h}:
+Declaration of @code{glibtop_proclist} in @file{<glibtop/proclist.h>}:
@example
@cartouche
@@ -442,7 +443,7 @@ The returned list is allocated using @code{glibtop_malloc} and must be freed
using @code{glibtop_free} to avoid a memory leak.
@page
-@node glibtop_proc_state, , glibtop_proclist, Reference Manual
+@node glibtop_proc_state, glibtop_proc_uid, glibtop_proclist, Reference Manual
@section Process State
Library function @code{glibtop_get_proc_state}:
@@ -458,7 +459,7 @@ glibtop_get_proc_state_l (glibtop *server, glibtop_proc_state *buf,
@end cartouche
@end example
-Declaration of @code{glibtop_proc_state} in @file{<glibtop/proc_state.h}:
+Declaration of @code{glibtop_proc_state} in @file{<glibtop/proc_state.h>}:
@example
@cartouche
@@ -551,5 +552,83 @@ or attached to a debugger).
The process is currently swapping.
@end table
+@page
+@node glibtop_proc_uid, , glibtop_proc_state, Reference Manual
+@section Process UID and TTY information
+
+Library function @code{glibtop_get_proc_uid}:
+
+@example
+@cartouche
+void
+glibtop_get_proc_uid (glibtop_proc_uid *buf, pid_t pid);
+
+void
+glibtop_get_proc_uid_l (glibtop *server, glibtop_proc_uid *buf,
+ pid_t pid);
+@end cartouche
+@end example
+
+Declaration of @code{glibtop_proc_uid} in @file{<glibtop/procuid.h>}:
+
+@example
+@cartouche
+typedef struct _glibtop_proc_uid glibtop_proc_uid;
+struct _glibtop_proc_uid
+@{
+ u_int64_t flags;
+ int uid,
+ euid,
+ gid,
+ egid,
+ suid,
+ sgid,
+ fsuid,
+ fsgid,
+ pid,
+ ppid,
+ pgrp,
+ session,
+ tty,
+ tpgid,
+ priority,
+ nice,
+ ngroups,
+ groups [GLIBTOP_MAX_GROUPS];
+@};
+@end cartouche
+@end example
+
+@table @code
+@item uid
+User ID
+@item euid
+Effective User ID
+@item gid
+Group ID
+@item egid
+Effective Group ID
+@item pid
+Process ID
+@item ppid
+PID of parent process
+@item pgrp
+Process group ID
+@item session
+Session ID
+@item tty
+Full device number of controlling terminal
+@item tpgid
+Terminal process group ID
+@item priority
+Kernel scheduling priority.
+@item nice
+Standard unix nice level of process.
+@item ngroups
+Number of additional process groups.
+@item groups
+Array of additional process groups (@code{GLIBTOP_MAX_GROUPS} is
+defined in @file{<glibtop/limits.h>}).
+@end table