summaryrefslogtreecommitdiff
path: root/lib/lib.pl
Commit message (Collapse)AuthorAgeFilesLines
* Rework code to get rid of $[ assigment.Benoît Dejean2017-08-311-27/+14
| | | | Use directly uc instead of customer toupper.
* The perl generator for the *_l() functions does not need to knowBenoit Dejean2015-07-151-6/+6
| | | | about the glibtop_* struct layout, so drop this from the definitions.
* Define and initialize param_buf, send_{size,ptr} only when usingBenoît Dejean2015-07-101-13/+20
| | | | glibtop_call.
* Removed translation.Benoît Dejean2005-06-061-1/+1
| | | | | | | | | | * examples/smp.c: (main): Removed translation. * lib/lib.pl: * lib/read.c: * lib/read_data.c: * lib/write.c: * src/daemon/gnuserv.c: s/gi18n.h/gi18n-lib.h.
* Got rid of include/libgtop-i18n.h.Benoît Dejean2005-06-061-1/+1
| | | | | | | | | | | * examples/smp.c: * include/Makefile.am: * include/libgtop-i18n.h: * lib/lib.pl: * lib/read.c: * lib/read_data.c: * lib/write.c: * src/daemon/gnuserv.c: Got rid of include/libgtop-i18n.h.
* Removed some dead files. Don't install private headers.Benoît Dejean2005-02-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * backends/server/server.h: * configure.in: * glibtop.h: * include/glibtop/Makefile.am: * include/glibtop/gnuserv.h: * include/glibtop/open.h: * include/glibtop/read.h: * include/glibtop/read_data.h: * include/glibtop/types.h: * include/glibtop/write.h: * lib/close.c: * lib/init.c: * lib/lib.pl: * lib/open.c: * lib/parameter.c: * lib/read.c: * lib/read_data.c: * lib/write.c: * src/daemon/daemon.h: * src/daemon/io.c: * src/daemon/main.c: (handle_parent_connection): * src/daemon/slave.c: (handle_slave_connection), (handle_slave_command): * sysdeps/common/gnuslib.c: * sysdeps/solaris/glibtop_private.h: Removed some dead files. Don't install private headers.
* Fixed Argument passing between library and server. Thanks everyone. ClosesBenoît Dejean2004-12-101-14/+23
| | | | | * lib/lib.pl: Fixed Argument passing between library and server. Thanks everyone. Closes #139809.
* Glibify a bit more. Closes #147618.Benoît Dejean2004-07-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/reference.texi: * include/glibtop/command.h: * include/glibtop/glib-arrays.h: * include/glibtop/proclist.h: * lib/glib-arrays.c: (glibtop_get_proclist_as_array_l): * lib/lib.pl: * scripts/c_types.pl: * src/daemon/main.c: (handle_parent_connection): * src/daemon/slave.c: (handle_slave_connection): * support/mkstemp.c: * sysdeps/aix/proclist.c: (glibtop_get_proclist_s): * sysdeps/freebsd/cpu.c: (glibtop_get_cpu_p): * sysdeps/freebsd/prockernel.c: (glibtop_get_proc_kernel_p): * sysdeps/freebsd/proclist.c: (glibtop_get_proclist_p): * sysdeps/freebsd/procmem.c: (glibtop_get_proc_mem_p): * sysdeps/kernel/proclist.c: (glibtop_get_proclist_s): * sysdeps/linux/proclist.c: (glibtop_get_proclist_s): * sysdeps/osf1/proclist.c: (glibtop_get_proclist_p): * sysdeps/solaris/proclist.c: (glibtop_get_proclist_s): * sysdeps/stub/proclist.c: (glibtop_get_proclist_s): * sysdeps/stub_suid/proclist.c: (glibtop_get_proclist_p): * sysdeps/sun4/proclist.c: (glibtop_get_proclist_p): Glibify a bit more. Closes #147618.
* remove dependency on libgnome, check for linux/isdn.h for distros usingBastien Nocera2004-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-04 Bastien Nocera <hadess@hadess.net> * configure.in: * include/libgtop-i18n.h: * lib/lib.pl: * lib/read.c: * lib/read_data.c: * lib/write.c: * 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/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: remove dependency on libgnome, check for linux/isdn.h for distros using the 2.6 kernel headers
* - s/u_int64_t/guint64/Bastien Nocera2003-10-201-3/+3
|
* - fixed compilationBastien Nocera2003-10-201-0/+3
|
* libgtop-GNOME-2-0-branch moved to HEAD.Carlos Perelló Marín2003-10-191-167/+129
| | | | | | 2003-10-19 Carlos Perelló Marín <carlos@gnome.org> * libgtop-GNOME-2-0-branch moved to HEAD.
* *** empty log message ***Martin Baulig2000-11-261-2/+3
|
* Added `void *closure' argument.Martin Baulig2000-11-261-5/+5
| | | | | | | | | | | 2000-11-27 Martin Baulig <martin@home-of-linux.org> * include/glibtop/glibtop-backend-info.h (glibtop_backend_close_func_t): Added `void *closure' argument. * include/glibtop/call-vector.h: Changed the second argument of all function in the call vector from `glibtop_backend *' to `void *closure'.
* Renamed to glibtop_backend_get(). (glibtop_backend_get_server): NewMartin Baulig2000-11-261-25/+35
| | | | | | | | 2000-11-26 Martin Baulig <martin@home-of-linux.org> * include/glibtop/glibtop-backend.h (glibtop_backend_open): Renamed to glibtop_backend_get(). (glibtop_backend_get_server): New function.
* New type. (glibtop): Added `glibtop_server_info *info', moved `ncpu',Martin Baulig2000-11-201-2/+2
| | | | | | | | | 2000-11-20 Martin Baulig <baulig@suse.de> * glibtop.h (glibtop_server_info): New type. (glibtop): Added `glibtop_server_info *info', moved `ncpu', `features', `sysdeps', `required' and `wanted' info glibtop_server_info.
* Removed `method', `server_command', `server_host', `server_user' andMartin Baulig2000-02-061-1/+1
| | | | | | | | | | | | | | | 2000-02-06 Martin Baulig <martin@home-of-linux.org> * glibtop.h (glibtop): Removed `method', `server_command', `server_host', `server_user' and `server_rsh'. Added `glibtop_parameter _param' field and moved `error_method' there. * include/glibtop/parameter.h (glibtop_parameter): New structure. (GLIBTOP_PARAM_METHOD, GLIBTOP_PARAM_COMMAND): Removed. (GLIBTOP_PARAM_HOST, GLIBTOP_PARAM_PORT): Removed. (GLIBTOP_PARAM_REMOTE_USER, GLIBTOP_PARAM_PATH_RSH): Removed. (GLIBTOP_PARAM_NCPU, GLIBTOP_PARAM_OS_VERSION_CODE): Added.
* *** empty log message ***Martin Baulig2000-01-121-1/+10
|
* New error constant.Martin Baulig2000-01-121-0/+3
| | | | | | | | | | 2000-01-12 Martin Baulig <martin@home-of-linux.org> * include/glibtop/errors.h (GLIBTOP_ERROR_NO_BACKEND_OPENED): New error constant. * lib/lib.pl (glibtop_get_<feature>_l): Don't dump core when there is no backend opened, but return GLIBTOP_ERROR_NO_BACKEND_OPENED.
* Removed debugging code.Martin Baulig2000-01-091-4/+1
|
* Disable i18n here.Martin Baulig2000-01-091-4/+4
|
* *** empty log message ***Martin Baulig2000-01-021-1/+0
|
* All functions in the `glibtop_call_vector' now take an additionalMartin Baulig2000-01-021-4/+4
| | | | | | | | 2000-01-02 Martin Baulig <martin@home-of-linux.org> * include/glibtop/call-vector.pl: All functions in the `glibtop_call_vector' now take an additional `glibtop_backend *' argument.
* New directory. New directory. New directory.Martin Baulig2000-01-011-107/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-01-01 Martin Baulig <martin@home-of-linux.org> * backends/: New directory. * backends/server/: New directory. * backends/sysdeps/: New directory. * include/glibtop/backend.h: New file. * include/glibtop/call-vector.h.in: New file. Template file for `call-vector.h'. * include/glibtop/call-vector.pl: New file. Creates 'call-vector.h' from `call-vector.h.in'. * include/glibtop/errors.h (GLIBTOP_ERROR_NO_SUCH_BACKEND): New error constant. (GLIBTOP_ERROR_NOT_IMPLEMENTED): New error constant. * include/glibtop/limits.h (GLIBTOP_BACKEND_NAME_LEN): New constant. * glibtop-server-private.h (glibtop_server_private): Added `GSList *backend_list' and removed `input', `output', `socket' and `pid'. * lib/command.c: Removed. Moved to `backends/server/'. * lib/read.c: Removed. Moved to `backends/server/'. * lib/read_data.c: Removed. Moved to `backends/server/'. * lib/write.c: Removed. Moved to `backends/server/'.
* New global function.Martin Baulig1999-12-221-0/+8
| | | | | | | | | | 1999-12-22 Martin Baulig <martin@home-of-linux.org> * lib/errors.c (glibtop_get_errno_l): New global function. * lib/lib.pl: For functions with a `retval' return type, set `server->glibtop_errno' to the error code on error or to zero on success.
* Removed. (glibtop_get_proc_args_*): This now takes a `glibtop_array'Martin Baulig1999-12-191-1/+1
| | | | | | | | 1999-12-12 Martin Baulig <martin@home-of-linux.org> * include/glibtop/procargs.h (glibtop_proc_args): Removed. (glibtop_get_proc_args_*): This now takes a `glibtop_array' parameter instead of a `glibtop_proc_args one and returns a `char **'.
* All functions which return an array now take a `glibtop_array *array'Martin Baulig1999-12-121-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-12-12 Martin Baulig <martin@home-of-linux.org> All functions which return an array now take a `glibtop_array *array' parameter instead of a `glibtop_<feature> *buf' one. For compatibility, we typedef the corresponding `glibtop_<feature>'s to `glibtop_array' in <glibtop/compat_10.h>. This has the advantage that scripting languages like Guile with an array implementation which stores the length of an array in the array don't need the `glibtop_array' parameter at all any longer. We'll also add convenient functions which return GPtrArray's here. * include/glibtop/proclist.h (glibtop_proclist): Removed. (glibtop_get_proclist_*): This now takes a `glibtop_array' parameter instead of a `glibtop_proclist' one. * include/glibtop/procmap.h (glibtop_proc_map): Removed. (glibtop_get_proc_map_*): This now takes a `glibtop_array' parameter instead of a `glibtop_proc_map' one. * include/glibtop/mountlist.h (glibtop_mountlist): Removed. (glibtop_get_mountlist_*): This now takes a `glibtop_array' parameter instead of a `glibtop_mountlist' one. * include/glibtop/interfaces.h (glibtop_interface_names): Removed. (glibtop_get_interface_names_*): This now takes a `glibtop_array' parameter instead of a `glibtop_interface_name' one. * include/glibtop/compat_10.h: New file. Contains some typedefs and #defines to keep compatibility until the big restructurement is completely done.
* Use `pointer(<type>)' as return value for functions returning an array ofMartin Baulig1999-12-051-2/+2
| | | | | | | 1999-12-05 Martin Baulig <martin@home-of-linux.org> * features.def: Use `pointer(<type>)' as return value for functions returning an array of scalar values (such as `unsigned' etc.).
* Use `array(<type>)' as return value for functions returning an array ofMartin Baulig1999-12-051-0/+4
| | | | | | | 1999-12-05 Martin Baulig <martin@home-of-linux.org> * features.def: Use `array(<type>)' as return value for functions returning an array of structures.
* We now have a new, more extensible client/server communication model.Martin Baulig1999-11-281-120/+151
| | | | | | | 1999-11-28 Martin Baulig <martin@home-of-linux.org> * lib/lib.pl: We now have a new, more extensible client/server communication model. Include `$(top_srcdir)/scripts/c_types.pl' here.
* Added new feature to get a list of network interface names.Martin Baulig1999-11-211-14/+28
| | | | | | | | | | | | | | | 1999-11-21 Martin Baulig <martin@home-of-linux.org> Added new feature to get a list of network interface names. * features.def: Added `interface_names' feature. * include/glibtop/interfaces.h: New file. * include/glibtop/sysdeps.h (GLIBTOP_SYSDEPS_INTERFACE_NAMES): Added. (glibtop_sysdeps): Added `interface_names'. * include/glibtop/union.h (glibtop_union): Added `interface_names'. * include/glibtop/command.h (GLIBTOP_CMND_INTERFACE_NAMES): Added.
* Use `retval' for the default retval.Martin Baulig1999-10-241-10/+27
| | | | | | | | | | 1999-10-24 Martin Baulig <martin@home-of-linux.org> * features.def: Use `retval' for the default retval. * include/glibtop/command.h (glibtop_command_h): Added `int *retval_ptr' parameter to return the retval from the sysdeps functions.
* Small fix to print correct warnings/errors.Martin Baulig1999-05-261-4/+6
|
* Make the _glibtop_missing_feature () code actually working.Martin Baulig1999-03-181-2/+6
|
* Replaced all awk scripts with perl scripts since it is more likely thatMartin Baulig1999-02-181-0/+227
1999-02-18 Martin Baulig <martin@home-of-linux.org> * */*.awk: Replaced all awk scripts with perl scripts since it is more likely that people have a working perl interpreter than GNU awk on their system.