summaryrefslogtreecommitdiff
path: root/sysdeps/common/mountlist.c
Commit message (Collapse)AuthorAgeFilesLines
* Added tmpfs to ignore list.Jörgen Scheibengruber2005-04-291-0/+1
| | | | * mountlist.c: (ignore_mount_entry): Added tmpfs to ignore list.
* Added mqueue to ignore list.Benoît Dejean2005-03-111-0/+1
| | | | * mountlist.c: (ignore_mount_entry): Added mqueue to ignore list.
* Re-worked with bsearch.Benoît Dejean2005-01-181-17/+15
| | | | * mountlist.c: (ignore_mount_entry): Re-worked with bsearch.
* Ignores unkown file system type.Benoît Dejean2004-12-091-1/+2
| | | | * mountlist.c: (ignore_mount_entry): Ignores unkown file system type.
* Removed mountlist.h.Benoît Dejean2004-09-231-1/+11
| | | | | | * Makefile.am: * mountlist.c: * mountlist.h: Removed mountlist.h.
* Added openpromfs.Benoît Dejean2004-09-221-1/+2
| | | | * mountlist.c: (ignore_mount_entry): Added openpromfs.
* Added mntfs to ignore listBenoît Dejean2004-09-221-1/+2
| | | | * mountlist.c: (ignore_mount_entry): Added mntfs to ignore list
* Back to previous version.Benoît Dejean2004-09-201-0/+4
| | | | | | | | | | * fsusage.c: (_glibtop_get_fsusage_read_write), (glibtop_get_fsusage_s): * mountlist.c: (glibtop_get_mountlist_s): Back to previous version. * fsusage.c: (linux_2_6_0), (linux_2_4_0), (_glibtop_linux_get_fsusage_read_write): Back to previous version. Now set .flags correctly.
* : Added new flag. (_glibtop_get_fsusage_read_write): Changed prototype.Benoît Dejean2004-09-191-7/+8
| | | | | | | | | | | | | | | | * fsusage.c: (_glibtop_get_fsusage_read_write) : Added new flag. (_glibtop_get_fsusage_read_write): Changed prototype. Returns TRUE on success, then _glibtop_get_fsusage_read_write is set. Added comment to locate Linux code. * mountlist.c: (read_filesystem_list): Dropped unused need_fs_type parameter. This is now default. Fixed possible leak. (ignore_mount_entry): Added "usbfs" to ignored FS. (glibtop_get_mountlist_s): Updated.
* Merged FreeBSD Marcus' patch.Benoît Dejean2004-08-221-2/+2
| | | | * mountlist.c: (read_filesystem_list): Merged FreeBSD Marcus' patch.
* Started implementation of read, write. Code should be splitted into archBenoît Dejean2004-07-171-32/+17
| | | | | | | * fsusage.c: (glibtop_get_fsusage_s): Started implementation of read, write. Code should be splitted into arch specific files. * mountlist.c: (glibtop_get_mountlist_s): glibify. Used GArray.
* Removed, replaced by ISO strtoull. (fstype_to_string): Cleaned.Benoît Dejean2004-06-121-102/+86
| | | | | | | | | | * mountlist.c: (xatoi) Removed, replaced by ISO strtoull. (fstype_to_string): Cleaned. (read_filesystem_list) : Changed prototype. Cleaned and secured. Replaced broken free by g_free. (ignore_mount_entry): Added. (glibtop_get_mountlist_s): Cleaned. Better allocation algorithm. @all_fs has now a real meaning, see the documentation.
* whitespace clean up.Benoît Dejean2004-06-091-1/+1
| | | | * *.{c,h} : whitespace clean up.
* Cleaned. Replaced multiple strcpy/cat by g_strdup_printf. Replaced strncpyBenoît Dejean2004-06-061-16/+8
| | | | | | * gnuslib.c: (connect_to_internet_server): Cleaned. * mountlist.c: (glibtop_get_mountlist_s): Replaced multiple strcpy/cat by g_strdup_printf. Replaced strncpy by g_strlcpy.
* - fixed compilationBastien Nocera2003-10-201-58/+49
|
* - replace all the xmalloc crap by glib memory management functionsBastien Nocera2003-10-201-5/+5
|
* libgtop-GNOME-2-0-branch moved to HEAD.Carlos Perelló Marín2003-10-191-393/+392
| | | | | | 2003-10-19 Carlos Perelló Marín <carlos@gnome.org> * libgtop-GNOME-2-0-branch moved to HEAD.
* Install this as a backend.Martin Baulig2001-04-201-2/+2
| | | | | | | | | | 2001-04-21 Martin Baulig <baulig@suse.de> * Makefile.am: Install this as a backend. * libgtop-common.backend, backend.c: New files. * inodedb.c: Removed; moved to ~/lib.
* Don't call glibtop_init_s() anymore, this is deprecated.Martin Baulig2000-11-221-2/+0
| | | | | | | | | 2000-11-22 Martin Baulig <martin@home-of-linux.org> * fsusage.c, moutlist.c: Don't call glibtop_init_s() anymore, this is deprecated. * Makefile.am: Don't install libgtop_common.la
* Started with the big rewrite for GNOME 2.0:Martin Baulig2000-11-201-2/+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.
* The indentation in LibGTop was done with the following command:Martin Baulig1999-12-261-390/+392
| | | | | | | | find . -name \*.[ch] | xargs -i emacs -batch {} \ -l /gnome/compile/libgtop/misc/format.el -f save-buffer December 26, 1999 Martin
* Use glib-like function prototypes instead of "extern <function>Martin Baulig1999-02-181-1/+1
| | | | | | | 1999-02-18 Martin Baulig <martin@home-of-linux.org> * include/glibtop/*.h: Use glib-like function prototypes instead of "extern <function> __P((args))".
* Don't declare strstr () here, this should be done in gnomesupport if itMartin Baulig1999-01-101-3/+0
| | | | is really required on some system.
* Applied a patch from Kenneth Stailey to make it work on OpenBSD.Martin Baulig1998-11-201-2/+2
| | | | | | | 1998-11-20 Martin Baulig <baulig@merkur.uni-trier.de> * sysdeps/common/mountlist.c: Applied a patch from Kenneth Stailey to make it work on OpenBSD.
* Removed G_GNUC_UNUSED.Martin Baulig1998-10-061-1/+1
|
* G_GNUC_UNUSED fun and other compiler warnings ...Martin Baulig1998-10-031-1/+1
|
* Using `GLIBTOP_GUILE' instead of `HAVE_GUILE' so one should be able to useMartin Baulig1998-08-061-4/+4
| | | | | | | | | | | | | | | 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.
* Added `all_fs' parameter.Martin Baulig1998-07-241-2/+2
| | | | | | | 1998-07-24 Martin Baulig <martin@home-of-linux.org> * sysdeps/common/mountlist.c (glibtop_get_mountlist_s): Added `all_fs' parameter.
* *** empty log message ***Martin Baulig1998-07-221-2/+2
|
* New file.Martin Baulig1998-07-221-1/+62
| | | | | | | | | | | 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'.
* using functions from `xmalloc.c'.Martin Baulig1998-07-071-4/+6
| | | | | | | | | 1998-07-06 Martin Baulig <martin@home-of-linux.org> * sysdeps/common/mountlist.c: using functions from `xmalloc.c'. * sysdeps/common/error.c: all functions now accept NULL as `server' argument.
* using g_malloc, g_realloc and g_strdup.Martin Baulig1998-07-061-3/+10
| | | | * mountlist.c: using g_malloc, g_realloc and g_strdup.
* Initial revisionMartin Baulig1998-07-061-0/+577