summaryrefslogtreecommitdiff
path: root/sysdeps/common
Commit message (Collapse)AuthorAgeFilesLines
* Avoid some deprecated networking functionsDavid King2023-01-091-6/+10
| | | | | | | | | | | | rpminspect trips up on some old networking functions in libgtop, which are mentioned as deprecated in the Linux man pages. inet_ntoa() only works on IPv4 addresses, whereas the newer inet_ntop() works on both IPv4 and IPv6 addresses, so use inet_ntop() instead. Similarly, use getaddrinfo() rather than gethostbyname(), and avoid inet_addr() entirely. https://bugzilla.redhat.com/show_bug.cgi?id=2050712
* Revert "Revert "Code clean up and add example""James Dominic P. Guana2021-04-231-2/+2
| | | | This reverts commit ea08151ae6582a438db76b738293a0194c964b88.
* Revert "Revert "Handle LVM and RAID""James Dominic P. Guana2021-04-231-2/+2
| | | | This reverts commit 30bf8d04183c26ca48c6cd4efe4c24058a082783.
* Revert "Revert "New API to retrieve disk stats in Linux""James Dominic P. Guana2021-04-232-0/+17
| | | | This reverts commit 7e214414bf23d1ea34e7fdccb17a7f41040ffea9.
* Revert "New API to retrieve disk stats in Linux"Michael Catanzaro2020-11-062-17/+0
| | | | This reverts commit 9e62440b314fbf87bbeca865a4223311314c52a3.
* Revert "Handle LVM and RAID"Michael Catanzaro2020-11-061-2/+2
| | | | This reverts commit 9cbb3b91f11ad0c4944a1428d609201c054cffab.
* Revert "Code clean up and add example"Michael Catanzaro2020-11-061-2/+2
| | | | This reverts commit 7396970afe2290488fd072612a650353dd13a16d.
* Code clean up and add exampleJames Dominic P. Guana2020-11-041-2/+2
|
* Handle LVM and RAIDJames Dominic P. Guana2020-11-041-2/+2
|
* New API to retrieve disk stats in LinuxJames Dominic P. Guana2020-11-042-0/+17
|
* Merge branch 'wip/diskio'Robert Roth2017-05-232-0/+18
|\
| * Renamed procdiskio to procioRobert Roth2017-05-122-5/+5
| |
| * New API to retrieve process io stats, with Linux implementationRobert Roth2017-02-122-0/+18
| |
* | Add NULL pointer checker (bug found with scan-build).Benoît Dejean2017-05-011-1/+1
|/
* Print message to stderr at once, to avoid mixups.Benoit Dejean2015-07-151-27/+29
|
* Define glibtop_debug(_r) as macros, eventually calling real C function.Benoit Dejean2015-07-151-1/+1
| | | | | | | Keep these as macros so that if debug is not enable, although the debug message is parsed, it's not run. It's better this way because the debug message is always parsed and checked instead of being deleted by the preprocessor.
* Print client and server pids in messages.Benoit Dejean2015-07-151-2/+11
|
* Add a level (DEBUG, WARNING, ERROR) to printing functions.Benoit Dejean2015-07-151-8/+31
|
* Add proper (and private) debug functions glibtop_debug*Benoit Dejean2015-07-151-0/+19
|
* Fix autotools deprecation warning with s/INCLUDES/AM_CPPFLAGS/g.Benoit Dejean2015-07-151-1/+1
|
* Drop dead file,Benoit Dejean2015-06-261-173/+0
|
* Update old FSF address.Robert Roth2014-08-205-8/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721514
* proclist, procarg and proctime gtkdoc updatesTristan Hill2013-08-301-10/+59
| | | | | | | | Added gtkdoc for proclist, procarg and proctime. Author: Tristan Hill <stan@saticed.me.uk> https://bugzilla.gnome.org/show_bug.cgi?id=616082
* Fix filesystem read/write accounting on OpenBSDJasper Lievisse Adriaanse2011-06-221-1/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=652980
* Single glib.h include.Benoît Dejean2008-11-072-2/+2
| | | | | | Closes #557826. svn path=/trunk/; revision=2785
* New API to retrieve process CPU affinity.Benoît Dejean2008-05-241-0/+14
| | | | | | Linux implementation. svn path=/trunk/; revision=2748
* Fixed dist for !linux.Benoît Dejean2008-04-031-6/+6
| | | | | | | Patch by Petr Salinger <Petr.Salinger@seznam.cz>. Closes #525953. svn path=/trunk/; revision=2729
* Implemented a linux-only fsusage sysdeps.Benoît Dejean2007-10-171-1/+4
| | | | svn path=/trunk/; revision=2683
* Implemented a linux-only mountlist.Benoît Dejean2007-10-151-1/+5
| | | | | | Smarter ignore list based on /proc/filesystems. svn path=/trunk/; revision=2678
* Added rpc_pipefs to ignore list.Benoît Dejean2007-10-031-0/+1
| | | | svn path=/trunk/; revision=2672
* git-svn sucks. Kill r2609Benoît Dejean2007-06-251-14/+0
| | | | svn path=/trunk/; revision=2611
* New API : glibtop_get_proc_affinity.Benoît Dejean2007-06-251-0/+14
| | | | | | Implemented for linux. svn path=/trunk/; revision=2609
* Got rid of G_GNUC_INTERNAL.Benoît Dejean2007-05-311-2/+2
| | | | svn path=/trunk/; revision=2600
* Fixed returned type.Benoît Dejean2007-05-192-1/+7
| | | | | | | | | | 2007-05-19 Benoît Dejean <benoit@placenet.org> * default.c: Fixed returned type. svn path=/trunk/; revision=2597
* Manual commit from my local git-svn which is broken :/Benoît Dejean2007-05-131-0/+14
| | | | svn path=/trunk/; revision=2578
* Got rid of InodeDB. This feature was optionnal and i have never heard ofBenoît Dejean2007-04-272-128/+1
| | | | | | | | | | 2007-04-27 Benoît Dejean <benoit@placenet.org> Got rid of InodeDB. This feature was optionnal and i have never heard of anyone using it. I have never touched it so it may be broken since 2.6. svn path=/trunk/; revision=2573
* Renamed all glibtop_init_xxx functions to _glibtop_init_xxx so they getBenoît Dejean2007-04-111-22/+22
| | | | | | | | | | | | | | | 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
* Ignore securityfs and fusectl. Patch by Fryderyk DziarmagowskiBenoît Dejean2007-03-162-0/+10
| | | | | | | | | | | | 2007-03-16 Benoît Dejean <benoit@placenet.org> * mountlist.c: (ignore_mount_entry): Ignore securityfs and fusectl. Patch by Fryderyk Dziarmagowski <freetz@gmx.net> Closes #418718. svn path=/trunk/; revision=2567
* Removed noisy $Id$.Benoît Dejean2007-02-194-8/+0
| | | | | | | | | | 2007-02-20 Benoît Dejean <benoit@placenet.org> * *: Removed noisy $Id$. svn path=/trunk/; revision=2558
* Make sure avail <= free. Closes #406280.Benoît Dejean2007-02-102-1/+8
| | | | | | | | | | | 2007-02-10 Benoît Dejean <benoit@placenet.org> * fsusage.c: (glibtop_get_fsusage_s): Make sure avail <= free. Closes #406280. svn path=/trunk/; revision=2551
* Fixed order. Added objfs and ctfs. Closes #400557.Benoît Dejean2007-01-312-1/+11
| | | | | | | | | | | | 2007-01-31 Benoît Dejean <benoit@placenet.org> * mountlist.c: (ignore_mount_entry): Fixed order. Added objfs and ctfs. Closes #400557. svn path=/trunk/; revision=2549
* Bumped version number to 2.14.6.Benoît Dejean2007-01-111-8/+0
| | | | | | | | | | | | | | 2007-01-11 Benoît Dejean <benoit@placenet.org> * configure.in: Bumped version number to 2.14.6. * *: Got rid of CVS admin files. svn path=/trunk/; revision=2545
* Converted to gtk-doc. Patch by Germán Poó-Caamaño <gpoo@ubiobio.cl>.Benoît Dejean2006-12-021-3/+147
| | | | | | | | | | | | | | | | | 2006-12-02 Benoît Dejean <benoit@placenet.org> * Makefile.am: * configure.in: * doc/Makefile.am: * doc/reference/Makefile.am: * doc/reference/libgtop-docs.xml: * doc/reference/libgtop-sections.txt: * doc/reference/version.xml.in: * gtk-doc.make: * sysdeps/common/default.c: Converted to gtk-doc. Patch by Germán Poó-Caamaño <gpoo@ubiobio.cl>.
* Added nfsd to the exclude list.Benoît Dejean2006-09-212-0/+7
| | | | | | | | 2006-09-21 Benoît Dejean <benoit@placenet.org> * mountlist.c: (ignore_mount_entry): Added nfsd to the exclude list.
* Ensure file is closed.Benoît Dejean2006-06-242-3/+16
| | | | | | | | | | | | | | | 2006-06-24 Benoît Dejean <benoit@placenet.org> * mountlist.c: (read_filesystem_list): Ensure file is closed. (glibtop_get_mountlist_s): Fixed .flags. Patch by hua.zhang@sun.com. Closes #345812.
* Fixed trivial warning.Benoît Dejean2006-04-092-1/+5
| | | | | | 2006-04-09 Benoît Dejean <benoit@placenet.org> * Makefile.am: Fixed trivial warning.
* Also ignores linprocfs, mfs and devfs. Closes #331856. Patch by AndreasBenoît Dejean2006-02-212-0/+10
| | | | | | | * mountlist.c: (ignore_mount_entry): Also ignores linprocfs, mfs and devfs. Closes #331856. Patch by Andreas Kohn <andreas.kohn@gmail.com>
* remove unused file.James Henstridge2005-12-124-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-12-12 James Henstridge <james@jamesh.id.au> * doc/auto-macros.texi.in: remove unused file. * doc/libgtop2.texi: don't include auto-macros.texi. * doc/Makefile.am: don't build auto-macros.texi, since none of its macros are used in the documentation any more. * include/glibtop/global.h: don't include <config.h> from headers. * .../*.c: make sure <config.h> is the first thing included. * acinclude.m4: m4_include() libgtop-sysdeps.m4 rather than inlining it. * acinclude.m4, libgtop-sysdeps.m4: use third argument to AC_DEFINE() to set the comment. * configure.in: modernise a bit. * acconfig.h: remove file, since it is deprecated * autogen.sh: require automake 1.9 instead of 1.4.
* Dropped many dead files. Bumped release number. I guess this closesBenoît Dejean2005-10-302-93/+0
| | | | | | | | | | | | | | | | | | * configure.in: * include/glibtop/glibtop-backend-info.h: * include/glibtop/glibtop-backend.h: * include/glibtop/glibtop-client.h: * lib/glibtop-backend-info.c: * lib/glibtop-backend.c: * lib/glibtop-client-private.h: * lib/glibtop-client.c: * lib/test-backends.c: * sysdeps/common/backend.c: * sysdeps/common/libgtop-common.backend: Dropped many dead files. Bumped release number. I guess this closes #320250.
* Moved _glibtop_init_hook_[sp] declaration to private glibtop/init_hooks.h.Benoît Dejean2005-08-021-1/+5
| | | | | | | | | | | | | | | | | | | | | * configure.in: * include/glibtop/Makefile.am: * include/glibtop/glibtop-server.h: * include/glibtop/init_hooks.h: * include/glibtop/sysdeps.h: * lib/init.c: (glibtop_init_s): * lib/sysdeps.c: * sysdeps/aix/open.c: (glibtop_init_p): * sysdeps/common/sysdeps_suid.c: * sysdeps/freebsd/open.c: (glibtop_init_p): * sysdeps/osf1/open_suid.c: (glibtop_init_p): * sysdeps/solaris/open_suid.c: (glibtop_init_p): * sysdeps/stub_suid/open.c: (glibtop_init_p): Moved _glibtop_init_hook_[sp] declaration to private glibtop/init_hooks.h. Marked them const. Fixed GLIBTOP_SUID_NETLIST issues.