Lines Matching refs:FILE
7 * This file may be redistributed under the terms of the GNU Public
73 * Helper function which checks a file in /etc/mtab format to see if a
74 * filesystem is mounted. Returns an error if the file doesn't exist
77 static errcode_t check_mntent_file(const char *mtab_file, const char *file,
85 FILE *f;
91 if (stat(file, &st_buf) == 0) {
117 if (strcmp(file, device) == 0)
169 mtab_file, file, mnt_dir);
185 int is_mounted(const char *file)
191 retval = check_mntent_file("/proc/mounts", file, &mount_flags);
197 retval = check_mntent_file("/etc/mtab", file, &mount_flags);