summaryrefslogtreecommitdiff
path: root/include/glibtop/open.h
Commit message (Collapse)AuthorAgeFilesLines
* Update old FSF address.Robert Roth2014-08-201-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721514
* Removed some dead files. Don't install private headers.Benoît Dejean2005-02-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 compilationBastien Nocera2003-10-201-2/+2
|
* libgtop-GNOME-2-0-branch moved to HEAD.Carlos Perelló Marín2003-10-191-15/+7
| | | | | | 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-2/+2
| | | | | | | | | | | | 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'.
* Added -Werror.Martin Baulig2000-11-221-2/+3
| | | | | | | | | | 2000-11-22 Martin Baulig <martin@home-of-linux.org> * configure.in (INCLUDES): Added -Werror. * include/glibtop/open.h (_glibtop_open_sysdeps): The first argument is now a `glibtop_client *', removed the `flags' argument and added `const char **backend_args' and `GError **opt_error'.
* Started with the big rewrite for GNOME 2.0:Martin Baulig2000-11-201-4/+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.
* Call `_glibtop_open_sysdeps'.Martin Baulig2000-01-121-0/+7
| | | | | | | | | | | | | | | | 2000-01-12 Martin Baulig <martin@home-of-linux.org> * lib/init.c (glibtop_init_s): Call `_glibtop_open_sysdeps'. * include/glibtop/open.h (_glibtop_open_sysdeps): Declare this when we are _IN_LIBGTOP. * configure.in (sysdeps_name): Define and AC_SUBST this. (sysdeps_init_file): Define and AC_SUBST this to `sysdeps-init-${sysdeps_name}.c'. * libgtop-sysdeps.m4 (GNOME_LIBGTOP_SYSDEPS): Define and AC_SUBST `libgtop_sysdeps_name'.
* *** empty log message ***Martin Baulig2000-01-081-1/+0
|
* New directory. New directory. New directory.Martin Baulig2000-01-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/'.
* Changed indentation:Martin Baulig1999-03-301-0/+2
| | | | 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-4/+15
| | | | | | | 1999-02-18 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h: Use glib-like function prototypes instead of "extern <function> __P((args))".
* Minor server/daemon cleanups; reading sysdeps from server now working.Martin Baulig1998-08-081-0/+1
|
* *** empty log message ***Martin Baulig1998-08-081-0/+1
|
* New fields `error_method', `sysdeps' and `required'. I added an improvedMartin Baulig1998-08-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* New file.Martin Baulig1998-07-221-1/+2
| | | | | | | | | | | 1998-07-22 Martin Baulig <martin@home-of-linux.org> * include/glibtop/mountlist.h: New file. * features.def: Added new feature `mountlist'. * sysdeps/common/mountlist.c (glibtop_get_mountlist_s): New function. (read_filesystem_list): Declared as `static'.
* Summary of this long ChangeLog:Martin Baulig1998-07-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Splitted `libgtop_sysdeps.la' into `libgtop_sysdeps.la' and `libgtop_sysdeps_suid.la'. Everything that needs to be suid/sgid is in `libgtop_sysdeps_suid.la' and the rest in `libgtop_sysdeps.la'. The functions from `libgtop_sysdeps_suid.la' have the `_p' prefix and the ones from `libgtop_sysdeps.la' the `_s' prefix. The suid library uses `glibtop_open_p' and `glibtop_close_p', the normal one `glibtop_init_s' (found in lib/init.c), `glibtop_open_s' and `glibtop_close_s'. * Added `libgtop_suid_common.la' containing stuff from sysdeps/common that is required from the suid server (currently everything from error.c and xmalloc.c). This means, we can add some more stuff to `libgtop_common.la' without the risk that it may be dangerous in the suid server. * The ``library order'' is much clearer now: -> `libgtop.la' (from lib/) contains user-level stuff; all functions except `glibtop_init_r' have the `_l' suffix. -> `libgtop_common.la' (from sysdeps/common/) contains stuff that is common among the sysdeps directories. use anything from `libgtop_sysdeps.la' and `libgtop_sysdeps_suid.la'. -> `libgtop_sysdeps.la' (from sysdeps/<sysdeps_dir>/) contains everything from the sysdeps directory that doesn't need to be suid/sgid. -> `libgtop_suid_common.la' (from sysdeps/common/) is used from the suid server instead of `libgtop_common.la'. -> `libgtop_sysdeps_suid.la' (from sysdeps/<sysdeps_dir>/) contains everything from the sysdeps directory that needs to be in the suid server. * To summarize: the server is linked only with functions that need to be suid and everything else is linked only with functions that do not need to be suid. Martin 1998-07-22 Martin Baulig <martin@home-of-linux.org> * lib/init.c (glibtop_init_s): Added this init function of the sysdeps directory `libgtop_sysdeps.la'. * lib/open.c (glibtop_open_l): Unconditionally calling `glibtop_init_s' after server initialization. * lib/lib.awk: Removed references to functions from `libgtop_sysdeps_suid.la' to avoid undefined symbols. * sysdeps/stub/open.c (glibtop_open_s): Renamed this function from `glibtop_open_r'. * sysdeps/stub/close.c (glibtop_close_s): Renamed this function from `glibtop_close_l'. * sysdeps/kernel/open.c (glibtop_open_s): Renamed this function from `glibtop_open_r'. * sysdeps/kernel/close.c (glibtop_close_s): Renamed this function from `glibtop_close_l'. * sysdeps/linux/open.c (glibtop_open_s): Renamed this function from `glibtop_open_r'. * sysdeps/linux/close.c (glibtop_close_s): Renamed this function from `glibtop_close_l'. * sysdeps/osf1/Makefile.am (lib_LTLIBRARIES): Added `libgtop_sysdeps_suid.la' for the suid server. * sysdeps/osf1/open_suid.c (glibtop_open_p): New file. Contains all stuff that was formerly in `open.c'. * sysdeps/osf1/open.c: Moved everything from here into the new file `open_suid.c'. * sysdeps/osf1/open.c (glibtop_open_s): New function. * sysdeps/osf1/close_suid.c (glibtop_close_p): New file. * sysdeps/osf1/close.c (glibtop_close_s): New function. * sysdeps/osf1/*.c: Using the new init, open and close functions. * sysdeps/sun4/Makefile.am (lib_LTLIBRARIES): Added `libgtop_sysdeps_suid.la' for the suid server. * sysdeps/sun4/nosuid.c (glibtop_open_s, glibtop_close_s): New file * sysdeps/sun4/*.c: All functions now have the `_p' suffix. * sysdeps/common/Makefile.am (lib_LTLIBRARIES): Added `libgtop_suid_common.la' which only contains stuff that is needed in the suid parts. * sysdeps/common/xmalloc.c: Using `glibtop_error_io_r' instead of `glibtop_error_r'. * sysdeps/{kernel, linux, osf1, sun4, stub}/init.c: Removed. `glibtop_init_s' has been moved into `lib/init.c' since it's the same in all the sysdeps directories. * src/server/main.c: It is now an error to request a feature that does not need the suid server. * src/proxy: Removed.
* Basically did some work on the new daemon. Things are still unstable.Martin Baulig1998-07-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 1998-07-13 Martin Baulig <martin@home-of-linux.org> * glibtop.h: Fixed invocation of `glibtop_close_r'. * sysdeps/linux/procstate.c: Added missing `fclose'. * include/glibtop/gnuserv.h (UNIX_DOMAIN_SOCKETS): Defining. * include/glibtop/open.h (GLIBTOP_METHOD_UNIX): Added. * lib/init.c: Added new method `GLIBTOP_METHOD_UNIX'. * lib/open.c: Added support for Unix Domain Sockets. * lib/close.c: Now closing inet and unix connections. * lib/parameter.c (glibtop_set_parameter_l): You can now set the `method' and `features' fields. * src/daemon/server_config.h: New file. * src/daemon/{gnuserv.c, main.c}: More work on the server.
* No longer use `glibtop_machine.h' for Linux.Martin baulig1998-07-031-0/+11
| | | | | | | | | | | | | | | | | | | | | | | 1998-07-03 Martin baulig <martin@home-of-linux.org> * macros/gnome-libgtop-sysdeps.m4: No longer use `glibtop_machine.h' for Linux. * sysdeps/linux/glibtop_machine.h: Removed. * sysdeps/guile/guile.awk: Using `scm_append' instead of `gh_append'. * sysdeps/guile/names/guile-names.awk: dito. * sysdeps/linux/*.c: Using code from stable branch again. * include/glibtop/parameter.h: New file. * lib/parameter.c: New file. * lib/{open, init}.c: Done some more work on server initialization
* Using single underscore instead of two underscores for function prefixesMartin Baulig1998-06-071-2/+2
| | | | | | | | 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.
* *** empty log message ***Martin Baulig1998-06-021-1/+3
|
* tells `glibtop_open' to use the default server and not to check theMartin Baulig1998-06-021-1/+1
| | | | | | | | | | | | * include/glibtop/open.h (GLIBTOP_OPEN_NO_OVERRIDE): tells `glibtop_open' to use the default server and not to check the environment variables. * include/glibtop/sysdeps.h (_glibtop_sysdeps): renamed 'dummy' member to 'features'. * include/glibtop/command.h (GLIBTOP_CMND_SYSDEPS): added definition here.
* added 'dummy' member so 'GLIBTOP_SYSDEPS_<feature>' now start with 1.Martin Baulig1998-06-011-1/+3
| | | | | | | | | * 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.
* Initial revisionMartin Baulig1998-05-191-0/+33