* Author: Alexander Larsson <alexl@redhat.com>
*/
+/* Prologue {{{1 */
+
#include "config.h"
#include <sys/types.h>
return FALSE;
}
+/* GUnixMounts (ie: mtab) implementations {{{1 */
+
+/* mntent.h (Linux, GNU, NSS) {{{2 */
#ifdef HAVE_MNTENT_H
static char *
return g_list_reverse (return_list);
}
+/* mnttab.h {{{2 */
#elif defined (HAVE_SYS_MNTTAB_H)
G_LOCK_DEFINE_STATIC(getmntent);
return g_list_reverse (return_list);
}
+/* mntctl.h (AIX) {{{2 */
#elif defined(HAVE_SYS_MNTCTL_H) && defined(HAVE_SYS_VMOUNT_H) && defined(HAVE_SYS_VFS_H)
static char *
return g_list_reverse (return_list);
}
+/* sys/mount.h {{{2 */
#elif (defined(HAVE_GETVFSSTAT) || defined(HAVE_GETFSSTAT)) && defined(HAVE_FSTAB_H) && defined(HAVE_SYS_MOUNT_H)
static char *
return g_list_reverse (return_list);
}
+
+/* Interix {{{2 */
#elif defined(__INTERIX)
static char *
return return_list;
}
+
+/* Common code {{{2 */
#else
#error No _g_get_unix_mounts() implementation for system
#endif
+/* GUnixMountPoints (ie: fstab) implementations {{{1 */
+
/* _g_get_unix_mount_points():
* read the fstab.
* don't return swap and ignore mounts.
#endif
}
+/* mntent.h (Linux, GNU, NSS) {{{2 */
#ifdef HAVE_MNTENT_H
static GList *
_g_get_unix_mount_points (void)
return g_list_reverse (return_list);
}
+/* mnttab.h {{{2 */
#elif defined (HAVE_SYS_MNTTAB_H)
static GList *
return g_list_reverse (return_list);
}
+
+/* mntctl.h (AIX) {{{2 */
#elif defined(HAVE_SYS_MNTCTL_H) && defined(HAVE_SYS_VMOUNT_H) && defined(HAVE_SYS_VFS_H)
/* functions to parse /etc/filesystems on aix */
return g_list_reverse (return_list);
}
+/* Interix {{{2 */
#elif defined(__INTERIX)
static GList *
_g_get_unix_mount_points (void)
{
return _g_get_unix_mounts ();
}
+
+/* Common code {{{2 */
#else
#error No g_get_mount_table() implementation for system
#endif
return get_mount_points_timestamp () != time;
}
+/* GUnixMountMonitor {{{1 */
+
static void
g_unix_mount_monitor_finalize (GObject *object)
{
return g_unix_mount_monitor_get ();
}
+/* GUnixMount {{{1 */
/**
* g_unix_mount_free:
* @mount_entry: a #GUnixMountEntry.
return mount_entry->is_system_internal;
}
+/* GUnixMountPoint {{{1 */
/**
* g_unix_mount_point_compare:
* @mount1: a #GUnixMount.
return FALSE;
}
+/* Utility functions {{{1 */
+
#ifdef HAVE_MNTENT_H
/* borrowed from gtk/gtkfilesystemunix.c in GTK+ on 02/23/2006 */
static void
return real_dev_root;
}
#endif
+
+/* Epilogue {{{1 */
+/* vim:set foldmethod=marker: */