X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgunixmounts.c;h=4999354c6f07fa6ed142d85af08c5378e84307da;hb=ffe286e647ce9ba9bb8e1631ba3cf0194038f438;hp=03f1720ce8c9b109d8a2622b6e785adbac598957;hpb=74ed1cf5b0538f71ae566219c14b6a1b954c1a74;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c index 03f1720..4999354 100644 --- a/gio/gunixmounts.c +++ b/gio/gunixmounts.c @@ -15,9 +15,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. + * Public License along with this library; if not, see . * * Author: Alexander Larsson */ @@ -31,11 +29,8 @@ #ifdef HAVE_SYS_PARAM_H #include #endif -#ifdef HAVE_SYS_POLL_H -#include #endif -#endif -#ifdef HAVE_POLL_H +#ifdef HAVE_POLL #include #endif #include @@ -84,9 +79,9 @@ static const char *_resolve_dev_root (void); * * Routines for managing mounted UNIX mount points and paths. * - * Note that <gio/gunixmounts.h> belongs to the - * UNIX-specific GIO interfaces, thus you have to use the - * gio-unix-2.0.pc pkg-config file when using it. + * Note that `` belongs to the UNIX-specific GIO + * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config + * file when using it. */ /* @@ -222,8 +217,7 @@ is_in (const char *value, const char *set[]) /** * g_unix_is_mount_path_system_internal: - * @mount_path: a mount path, e.g. /media/disk - * or /usr + * @mount_path: a mount path, e.g. `/media/disk` or `/usr` * * Determines if @mount_path is considered an implementation of the * OS. This is primarily used for hiding mountable and mounted volumes @@ -243,22 +237,31 @@ g_unix_is_mount_path_system_internal (const char *mount_path) "/", /* we already have "Filesystem root" in Nautilus */ "/bin", "/boot", + "/compat/linux/proc", + "/compat/linux/sys", "/dev", "/etc", "/home", "/lib", "/lib64", + "/libexec", "/live/cow", "/live/image", "/media", "/mnt", "/opt", + "/rescue", "/root", "/sbin", "/srv", "/tmp", "/usr", + "/usr/X11R6", "/usr/local", + "/usr/obj", + "/usr/ports", + "/usr/src", + "/usr/xobj", "/var", "/var/crash", "/var/local", @@ -299,8 +302,11 @@ guess_system_internal (const char *mountpoint, "devfs", "devpts", "ecryptfs", + "fdescfs", "kernfs", "linprocfs", + "mfs", + "nullfs", "proc", "procfs", "ptyfs", @@ -418,7 +424,7 @@ _g_get_unix_mounts (void) mount_entry = g_new0 (GUnixMountEntry, 1); mount_entry->mount_path = g_strdup (mntent->mnt_dir); - if (strcmp (mntent->mnt_fsname, "/dev/root") == 0) + if (g_strcmp0 (mntent->mnt_fsname, "/dev/root") == 0) mount_entry->device_path = g_strdup (_resolve_dev_root ()); else mount_entry->device_path = g_strdup (mntent->mnt_fsname);