summaryrefslogtreecommitdiff
path: root/include/glibtop/procsegment.h
Commit message (Collapse)AuthorAgeFilesLines
* Update old FSF address.Robert Roth2014-08-201-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721514
* Renamed all glibtop_init_xxx functions to _glibtop_init_xxx so they getBenoît Dejean2007-04-111-2/+2
| | | | | | | | | | | | | | | 2007-04-11 Benoît Dejean <benoit@placenet.org> * *: Renamed all glibtop_init_xxx functions to _glibtop_init_xxx so they get internal visibility. * configure.in: Bumped version number. svn path=/trunk/; revision=2569
* Removed noisy $Id$.Benoît Dejean2007-02-191-2/+0
| | | | | | | | | | 2007-02-20 Benoît Dejean <benoit@placenet.org> * *: Removed noisy $Id$. svn path=/trunk/; revision=2558
* Changed struct's definitions to be one type-one member. To avoid problemsGerman Poo-Caaman~o2006-04-181-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-04-18 German Poo-Caaman~o <gpoo@ubiobio.cl> * /include/glibtop/cpu.h: * /include/glibtop/fsusage.h: * /include/glibtop/loadavg.h: * /include/glibtop/mem.h: * /include/glibtop/mountlist.h: * /include/glibtop/msg_limits.h: * /include/glibtop/netload.h: * /include/glibtop/ppp.h: * /include/glibtop/procargs.h: * /include/glibtop/prockernel.h: * /include/glibtop/proclist.h: * /include/glibtop/procmap.h: * /include/glibtop/procmem.h: * /include/glibtop/procopenfiles.h: * /include/glibtop/procsegment.h: * /include/glibtop/procsignal.h: * /include/glibtop/procstate.h: * /include/glibtop/proctime.h: * /include/glibtop/procuid.h: * /include/glibtop/sem_limits.h: * /include/glibtop/shm_limits.h: * /include/glibtop/swap.h: * /include/glibtop/sysdeps.h: * /include/glibtop/uptime.h: Changed struct's definitions to be one type-one member. To avoid problems with any further gtk-doc's implementation.
* Added a lot of new functions to replace dirty macros. Every macroBenoît Dejean2005-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: * glibtop.h: * include/glibtop/close.h: * include/glibtop/cpu.h: * include/glibtop/fsusage.h: * include/glibtop/loadavg.h: * include/glibtop/mem.h: * include/glibtop/mountlist.h: * include/glibtop/msg_limits.h: * include/glibtop/netlist.h: * include/glibtop/netload.h: * include/glibtop/ppp.h: * include/glibtop/procargs.h: * include/glibtop/prockernel.h: * include/glibtop/proclist.h: * include/glibtop/procmap.h: * include/glibtop/procmem.h: * include/glibtop/procopenfiles.h: * include/glibtop/procsegment.h: * include/glibtop/procsignal.h: * include/glibtop/procstate.h: * include/glibtop/proctime.h: * include/glibtop/procuid.h: * include/glibtop/sem_limits.h: * include/glibtop/shm_limits.h: * include/glibtop/swap.h: * include/glibtop/sysdeps.h: * include/glibtop/sysinfo.h: * include/glibtop/uptime.h: * sysdeps/common/Makefile.am: * sysdeps/common/default.c: (glibtop_close), (glibtop_init), (glibtop_get_cpu), (glibtop_get_fsusage), (glibtop_get_uptime), (glibtop_get_sysinfo), (glibtop_get_swap), (glibtop_get_proc_uid), (glibtop_get_proc_time), (glibtop_get_proc_state), (glibtop_get_proc_signal), (glibtop_get_proc_segment), (glibtop_get_proc_open_files), (glibtop_get_proc_mem), (glibtop_get_proc_map), (glibtop_get_proc_args), (glibtop_get_proc_argv), (glibtop_get_proclist), (glibtop_get_proc_kernel), (glibtop_get_ppp), (glibtop_get_netlist), (glibtop_get_netload), (glibtop_get_mountlist), (glibtop_get_mem), (glibtop_get_loadavg), (glibtop_get_msg_limits), (glibtop_get_sem_limits), (glibtop_get_shm_limits), (glibtop_get_sysdeps): Added a lot of new functions to replace dirty macros. Every macro glibtop_get_*(buf[, args]) has been turned to a function.
* Removed libgtop_names :)Benoît Dejean2004-12-061-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * acconfig.h: * configure.in: * debian/libgtop-dev.files.in: * doc/Makefile.am: * examples/Makefile.am: * examples/third.c: * include/glibtop/cpu.h: * include/glibtop/fsusage.h: * include/glibtop/loadavg.h: * include/glibtop/mem.h: * include/glibtop/mountlist.h: * include/glibtop/msg_limits.h: * include/glibtop/netlist.h: * include/glibtop/netload.h: * include/glibtop/ppp.h: * include/glibtop/procargs.h: * include/glibtop/prockernel.h: * include/glibtop/proclist.h: * include/glibtop/procmap.h: * include/glibtop/procmem.h: * include/glibtop/procsegment.h: * include/glibtop/procsignal.h: * include/glibtop/procstate.h: * include/glibtop/proctime.h: * include/glibtop/procuid.h: * include/glibtop/sem_limits.h: * include/glibtop/shm_limits.h: * include/glibtop/swap.h: * include/glibtop/sysdeps.h: * include/glibtop/uptime.h: * po/POTFILES.in: * sysdeps/Makefile.am: * sysdeps/names/.cvsignore: * sysdeps/names/Makefile.am: * sysdeps/names/cpu.c: * sysdeps/names/fsusage.c: * sysdeps/names/loadavg.c: * sysdeps/names/mem.c: * sysdeps/names/mountlist.c: * sysdeps/names/msg_limits.c: * sysdeps/names/netlist.c: * sysdeps/names/netload.c: * sysdeps/names/ppp.c: * sysdeps/names/procargs.c: * sysdeps/names/prockernel.c: * sysdeps/names/proclist.c: * sysdeps/names/procmap.c: * sysdeps/names/procmem.c: * sysdeps/names/procsegment.c: * sysdeps/names/procsignal.c: * sysdeps/names/procstate.c: * sysdeps/names/proctime.c: * sysdeps/names/procuid.c: * sysdeps/names/sem_limits.c: * sysdeps/names/shm_limits.c: * sysdeps/names/swap.c: * sysdeps/names/sysdeps.c: * sysdeps/names/uptime.c: Removed libgtop_names :)
* - s/u_int64_t/guint64/Bastien Nocera2003-10-201-1/+1
|
* - fixed compilationBastien Nocera2003-10-201-2/+2
|
* libgtop-GNOME-2-0-branch moved to HEAD.Carlos Perelló Marín2003-10-191-39/+22
| | | | | | 2003-10-19 Carlos Perelló Marín <carlos@gnome.org> * libgtop-GNOME-2-0-branch moved to HEAD.
* Use G_BEGIN_DECLS and G_END_DECLS instead of LIBGTOP_BEGIN/END_DECLS.Martin Baulig2001-04-201-2/+2
| | | | | | | 2001-04-20 Martin Baulig <baulig@suse.de> * include/glibtop/*.h: Use G_BEGIN_DECLS and G_END_DECLS instead of LIBGTOP_BEGIN/END_DECLS.
* Changed `void *closure' to `glibtop_closure *closure'.Martin Baulig2001-04-201-4/+4
| | | | | | | | | | | | 2001-04-20 Martin Baulig <baulig@suse.de> * include/glibtop/*.h (glibtop_get_*_s, glibtop_get_*_pl): Changed `void *closure' to `glibtop_closure *closure'. * include/glibtop/*.h (glibtop_init_*_s): Added `glibtop_closure *closure' argument. (glibtop_init_*_p): Changed `glibtop *server' to `glibtop_server *server' and added `glibtop_closure *closure'.
* Added `void *closure' argument to all sysdeps functions.Martin Baulig2001-04-201-2/+2
| | | | | | | | | | | 2001-04-20 Martin Baulig <baulig@suse.de> * include/glibtop/*.h (glibtop_get_*_s, glibtop_get_*_pl): Added `void *closure' argument to all sysdeps functions. * include/glibtop/open.h (glibtop_open_s, glibtop_open_p): Removed the `const char *program_name' argument and added `void *closure'.
* Started with the big rewrite for GNOME 2.0:Martin Baulig2000-11-201-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-20 Martin Baulig <baulig@suse.de> Started with the big rewrite for GNOME 2.0: - split the `glibtop' structure into `glibtop_server' and `glibtop_client' and make `glibtop_client' a GObject. - cleanly separate the library and the backends. This stuff currently does not compile. * glibtop.h (glibtop_server_private, glibtop_server_info): Removed typedefs. (struct _glibtop, struct _glibtop_server_info): Removed. (glibtop_global_server, glibtop_server_features): Removed. (glibtop_server_ref, glibtop_server_unref): Removed. * glibtop.h (glibtop_init_s): First argument is now a `glibtop_server *'. * include/glibtop/*.h: Removed all #defines with the glibtop_global_server. (glibtop_get_*_l): First argument is now a `glibtop_client *'. (glibtop_get_*_s, glibtop_init_*_s): First argument is now a `glibtop_server *'. * lib/glibtop-client.c: New file. * sysdeps/common/xmalloc.c: Moved to lib/. * sysdeps/common/error.c: Moved to lib/. * lib/xmalloc.c: Moved here from sysdeps/common/. * lib/error.c: Moved here from sysdeps/common/. * include/glibtop/backend.h (glibtop_backend_open_func_t, glibtop_backend_close_func_t): First argument is now a `glibtop_server *'. (glibtop_backend_info): Added `glibtop_server *server'. (glibtop_open_backend_l): Returns `glibtop_backend *', first argument is `glibtop_client *' and added `GError **'. * include/glibtop/close.h (glibtop_close_s, glibtop_close_p): First argument is now a `glibtop_server *'. * include/glibtop/error.h (*): First argument is now a `glibtop_server *'. * include/glibtop/errors.h: Switched this to use GError.
* This is a very big an possibly breaking commit.Martin Baulig1999-10-241-5/+5
| | | | | | | | | | | | | | | | | | It changes the return values of all sysdeps functions which were previosly returning void to int. This is the first step to implement better error handling in LibGTop. Martin 1999-10-24 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h (glibtop_get_*, glibtop_init*): Changed the return value of all `glibtop_get_<feature>_* ()' and all `glibtop_init_<feature>_* ()' functions from void to int. * features.def: Reflect changes of the return values. * sysdeps/*/*.c: Reflect changes of the return values.
* Added some new features.Martin Baulig1999-03-311-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Changed indentation:Martin Baulig1999-03-301-9/+11
| | | | tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4
* Set the copyright of LibGTop to the GNU General Public License.Martin Baulig1999-02-231-7/+7
| | | | | | | | | 1999-02-22 Martin Baulig <martin@home-of-linux.org> Set the copyright of LibGTop to the GNU General Public License. * copyright.txt: Set the year to 1998-99 and pretty-format it a little bit. Same in all C source and header files.
* Include a copy of the GNU Library General Public License here.Martin Baulig1999-02-221-13/+15
| | | | | | | | | | 1999-02-22 Martin Baulig <martin@home-of-linux.org> * COPYING.LIB: Include a copy of the GNU Library General Public License here. * copyright.txt: Set the year to 1998-99 and pretty-format it a little bit. Same in all C source and header files.
* Replace all __BEGIN_DELCS with LIBGTOP_BEGIN_DECLS and all __END_DECLSMartin Baulig1999-02-191-2/+2
| | | | | | | | 1999-02-19 Martin Baulig <martin@home-of-linux.org> * Replace all __BEGIN_DELCS with LIBGTOP_BEGIN_DECLS and all __END_DECLS with LIBGTOP_END_DECLS; remove all __P macros and use real function prototypes.
* Use glib-like function prototypes instead of "extern <function>Martin Baulig1999-02-181-5/+5
| | | | | | | 1999-02-18 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h: Use glib-like function prototypes instead of "extern <function> __P((args))".
* Removed external delarations of all `glibtop_guile_*' functions that wereMartin Baulig1998-10-111-19/+0
| | | | | | | | 1998-10-11 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h: Removed external delarations of all `glibtop_guile_*' functions that were formerly defined in sysdeps/guile/guile.c and sysdeps/guile/names/guile-names.c.
* Using `text_rss', `shlib_rss', `data_rss' and `dirty_size' instead ofMartin Baulig1998-08-121-12/+14
| | | | | | | | | | | | | | | | | | | 1998-08-12 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procsegment.h (glibtop_proc_segment): Using `text_rss', `shlib_rss', `data_rss' and `dirty_size' instead of `tsr', `lrs', `drs' and `dt'. New field `stack_rss'. * sysdeps/linux/procmem.c: Memory sizes now correctly in bytes. * sysdeps/linux/procsegment.c: Dito. * sysdeps/kernel/procsegment.c: Stack pages are reported via `stack_rss' and no longer count towards `data_rss' * kernel/table.h (table_proc_segment): Added `srs' field. * kernel/table21/module.c (TBL_PROC_SEGMENT): Added kernel support for this. * sysdeps/{linux, kernel, stub}/procmap.c: New files.
* New fields `error_method', `sysdeps' and `required'. I added an improvedMartin Baulig1998-08-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1998-08-07 Martin Baulig <martin@home-of-linux.org> * glibtop.h (_glibtop): New fields `error_method', `sysdeps' and `required'. I added an improved error handling: the client can tell the libraries which fields are absolutely required for each features and if it fails to set one of them, this will create an error which is handled depending upon the `error_method'. * include/glibtop/open.h: Define some constants for `error_method'. * lib/sysdeps.c (glibtop_get_sysdeps_r): No longer actually call any sysdeps function, it now simply copies `server->sysdeps'. (_glibtop_init_hook_s): Added. List of functions to be called during `glibtop_init_s' set to `glibtop_init_<no-suid-feature>_s'. * include/glibtop/sysdeps.h (<glibtop/union.h>): Removed. (glibtop_init_func_t): New typedef. (_glibtop_init_hook_s): Added. * sysdeps/linux/*.c (glibtop_init_<feature>_s): New functions. (glibtop_get_proc_*): Zero is now a valid pid. * sysdeps/kernel/*.c (glibtop_init_<feature>_s): New functions. (glibtop_get_proc_*): Zero is now a valid pid. 1998-08-06 Martin Baulig <martin@home-of-linux.org>
* Using `GLIBTOP_GUILE' instead of `HAVE_GUILE' so one should be able to useMartin Baulig1998-08-061-1/+1
| | | | | | | | | | | | | | | 1998-08-06 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h: Using `GLIBTOP_GUILE' instead of `HAVE_GUILE' so one should be able to use libgtop without guile in an application even if guile is installed. * sysdeps/common/mountlist.c: Fixed some `xstrdup' problems. * lib/open.c: Now correctly reading server features for `GLIBTOP_METHOD_PIPE'. * sysdeps/freebsd: New directory.
* Using `u_int64_t' instead of `unsigned long' and `long' to avoid problemsMartin Baulig1998-07-301-4/+4
| | | | | | | | 1998-07-30 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h: Using `u_int64_t' instead of `unsigned long' and `long' to avoid problems when client is on a 32bit system and the server on a 64bit system.
* Using single underscore instead of two underscores for function prefixesMartin Baulig1998-06-071-6/+6
| | | | | | | | 1998-06-07 Martin Baulig <martin@home-of-linux.org> * *.[ch]: Using single underscore instead of two underscores for function prefixes (regexp: ``s,__([rspl])\b,_$1,g'') to avoid ambiguity with mangled C++ names.
* Changed declaration.Martin Baulig1998-06-061-1/+1
| | | | | | 1998-06-06 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h (glibtop_types_*): Changed declaration.
* added 'dummy' member so 'GLIBTOP_SYSDEPS_<feature>' now start with 1.Martin Baulig1998-06-011-3/+4
| | | | | | | | | * include/glibtop/sysdeps.h: added 'dummy' member so 'GLIBTOP_SYSDEPS_<feature>' now start with 1. * include/glibtop/*.h: we now #define 'glibtop_get_<feature>' as 'glibtop_get_<feature>__l' and 'glibtop_get_<feature>__r' either as the '__p' or the '__s' function.
* added some new function suffixes: '__l' is a function defined in theMartin Baulig1998-05-281-1/+12
| | | | | | | | | | | | | | | | * sysdeps/linux/*.h: added some new function suffixes: '__l' is a function defined in the client part; '__s' is a function defined in the sysdeps part and '__p' is a function that needs special priviledges. '__r' is mapped either on '__l' or on '__s'. * sysdeps/linux/glibtop_server.h: New file - defines system dependent constants 'GLIBTOP_SUID_<feature>' being either 'GLIBTOP_SYSDEPS_<feature>'+1 depending upon whether or not this feature requires using the server. Things may now temporarily get instable; I'm currently implementing some suggestions Sebastian Wilhelmi has made.
* Initial revisionMartin Baulig1998-05-191-0/+93