summaryrefslogtreecommitdiff
path: root/sysdeps/freebsd/procargs.c
Commit message (Collapse)AuthorAgeFilesLines
* Turn glibtop::machine from a value to a pointer, allocated on init.Benoit Dejean2015-08-081-2/+2
| | | | This hides the glibtop_machine implementation.
* Remove useless/meaningless calls to glibtop_init_[prs]() with ↵Benoit Dejean2015-08-081-2/+0
| | | | sysdeps/{freebsd,linux}.
* 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-1/+1
| | | | | | | | | | | | | | | 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
* Huge (k)FreeBSD update. (k)FreeBSD support is freebsd/ Other BSD are inBenoît Dejean2007-02-181-12/+2
| | | | | | | | | | | | | | | | | | | 2007-02-18 Benoît Dejean <benoit@placenet.org> * configure.in: * libgtop-sysdeps.m4: * sysdeps/Makefile.am: Huge (k)FreeBSD update. (k)FreeBSD support is freebsd/ Other BSD are in bsd/ Patch by Joe Marcus Clarke <marcus@freebsd.org> Alexander Nedotsukov <bland@FreeBSD.org> Closes #407693. svn path=/trunk/; revision=2557
* remove unused file.James Henstridge2005-12-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* whitespace clean up.Benoît Dejean2004-06-091-1/+1
| | | | * *.{c,h} : whitespace clean up.
* s/strncpy/g_strlcpy/.Benoît Dejean2004-06-061-4/+3
| | | | | | | | | * netload.c: (glibtop_get_netload_p): * procstate.c: (glibtop_get_proc_state_p): * prockernel.c: (glibtop_get_proc_kernel_p): s/strncpy/g_strlcpy/. * procargs.c: (glibtop_get_proc_args_p): * procmap.c: (glibtop_get_proc_map_p): Cleaned.
* fix g_malloc usage on non-Linux platforms (patch by Benoit DejeanBastien Nocera2004-03-091-1/+1
| | | | | | | 2004-03-09 Bastien Nocera <hadess@hadess.net> * fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean <bnet@ifrance.com>)
* - fixed compilationBastien Nocera2003-10-201-1/+0
|
* - replace all the xmalloc crap by glib memory management functionsBastien Nocera2003-10-201-1/+1
|
* Reverted libgtop changes. It's a common module and I should not modify it.Carlos Perelló Marín2003-10-191-0/+111
| | | | | | | | 2003-10-19 Carlos Perelló Marín <carlos@gnome.org> * support/*: Reverted libgtop changes. It's a common module and I should not modify it. * Added/removed files. Now the move should be done.
* Moved all sysdeps code to the new libgtop-backends module.Martin Baulig2001-04-201-114/+0
| | | | | | | | | | | | | | | 2001-04-20 Martin Baulig <baulig@suse.de> Moved all sysdeps code to the new libgtop-backends module. * sysdeps/freesd/*: Removed. * sysdeps/kernel/*: Removed. * sysdeps/linux/*: Removed. * sysdeps/osf1/*: Removed. * sysdeps/solaris/*: Removed. * sysdeps/stub/*: Removed. * sysdeps/stub_suid/*: Removed. * sysdeps/sun4/*: Removed.
* Better use `BUFSIZ' instead of `PAGE_SIZE' since this is large enoughMartin Baulig2000-01-121-1/+1
| | | | | and not all flavors of BSD define `PAGE_SIZE' in user-level header files.
* *** empty log message ***Martin Baulig2000-01-091-18/+17
|
* The indentation in LibGTop was done with the following command:Martin Baulig1999-12-261-43/+45
| | | | | | | | find . -name \*.[ch] | xargs -i emacs -batch {} \ -l /gnome/compile/libgtop/misc/format.el -f save-buffer December 26, 1999 Martin
* s/server->machine/server->_priv->machine/g;Martin Baulig1999-12-231-6/+6
|
* Return 0 on success and -1 on error.Martin Baulig1999-10-241-0/+2
|
* This is a very big an possibly breaking commit.Martin Baulig1999-10-241-1/+1
| | | | | | | | | | | | | | | | | | 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.
* Use `(1L << feature)' instead of `(1 << feature)' to avoid problemsMartin Baulig1999-05-061-2/+2
| | | | with integer overflows when we add more fields.
* Added initial port for BSD/OS (aka BSDI) 2.x and 3.x. 4.x should also(?)Timur Bakeyev1999-04-081-0/+4
| | | | | | | | | | Thu Apr 8 23:47:29 1999 Timur Bakeyev <timur@gnu.org> * cpu.c, mem.c, netload.c, procargs.c, procstate.c, proctime.c, sem_limits.c, shm_limits.c, swap.c: Added initial port for BSD/OS (aka BSDI) 2.x and 3.x. 4.x should also(?) work. Still, this port require more close look and extended check.
* 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.
* Small fix.Martin Baulig1998-12-091-7/+9
|
* Make the return value a `char *' instead of a `const char *'.Martin Baulig1998-12-091-1/+1
| | | | | | | 1998-12-09 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procargs.h (glibtop_get_proc_args): Make the return value a `char *' instead of a `const char *'.
* It does not work to get information about the swapper task on FreeBSDMartin Baulig1998-11-111-5/+11
| | | | | | | 1998-11-11 Martin Baulig <martin@home-of-linux.org> * *.c: It does not work to get information about the swapper task on FreeBSD 2.2.6, so we simple return if pid == 0.
* Use glibtop_warn_io_r () instead of glibtop_error_io_r ().Martin Baulig1998-10-301-1/+7
| | | | | | | | | 1998-10-31 Martin Baulig <martin@home-of-linux.org> * *.c: Use glibtop_warn_io_r () instead of glibtop_error_io_r (). * proctime.c, prockernel.c, procargs.c: Don't call kvm_uread () if the /proc filesystem is not mounted.
* Added new feature (proc_args) to get command line arguments:Martin Baulig1998-10-261-0/+91
typedef struct _glibtop_proc_args glibtop_proc_args; struct _glibtop_proc_args { u_int64_t flags, size; /* GLIBTOP_PROC_ARGS_SIZE */ }; Returns a string containing all command line arguments of the process, the `unsigned' parameter is the maximum length of this string; if it is zero then no limit will be set. extern const char *glibtop_get_proc_args_l __P((glibtop *, glibtop_proc_args *, pid_t, unsigned));