/external/compiler-rt/lib/msan/tests/ |
H A D | msan_test.cc | 2131 struct mntent *mnt = getmntent(fp); local 2132 ASSERT_TRUE(mnt != NULL); 2133 ASSERT_NE(0U, strlen(mnt->mnt_fsname)); 2134 ASSERT_NE(0U, strlen(mnt->mnt_dir)); 2135 ASSERT_NE(0U, strlen(mnt->mnt_type)); 2136 ASSERT_NE(0U, strlen(mnt->mnt_opts)); 2137 EXPECT_NOT_POISONED(mnt->mnt_freq); 2138 EXPECT_NOT_POISONED(mnt->mnt_passno); 2149 struct mntent *mnt = getmntent_r(fp, &mntbuf, buf, sizeof(buf)); local 2150 ASSERT_TRUE(mnt ! [all...] |
/external/e2fsprogs/lib/ext2fs/ |
H A D | ismounted.c | 98 struct mntent *mnt; local 127 while ((mnt = getmntent (f)) != NULL) { 128 if (mnt->mnt_fsname[0] != '/') 130 if (strcmp(file, mnt->mnt_fsname) == 0) 132 if (stat(mnt->mnt_fsname, &st_buf) == 0) { 137 if (check_loop_mounted(mnt->mnt_fsname, 150 if (mnt == 0) { 177 if (stat(mnt->mnt_dir, &st_buf) < 0) { 182 mtab_file, mnt->mnt_dir); 191 mtab_file, file, mnt [all...] |
/external/e2fsprogs/misc/ |
H A D | e4crypt.c | 608 struct mntent *mnt; local 610 while (f && ((mnt = getmntent(f)) != NULL)) { 611 if (strcmp(mnt->mnt_type, "ext4") || 612 access(mnt->mnt_dir, R_OK)) 614 parse_salt(mnt->mnt_dir, PARSE_FLAGS_NOTSUPP_OK);
|
H A D | e4defrag.c | 213 struct mntent *mnt = NULL; local 228 while ((mnt = getmntent(fp)) != NULL) { 235 if (stat64(mnt->mnt_fsname, &ms) < 0) 241 if (strcmp(mnt->mnt_type, FS_EXT4) == 0) { 242 strncpy(mount_point, mnt->mnt_dir, 268 struct mntent *mnt = NULL; local 295 while ((mnt = getmntent(fp)) != NULL) { 296 if (mnt->mnt_fsname[0] != '/') 298 len = strlen(mnt->mnt_dir); 299 ret = memcmp(file_path, mnt [all...] |
H A D | util.c | 267 void print_check_message(int mnt, unsigned int check) argument 269 if (mnt < 0) 270 mnt = 0; 271 if (!mnt && !check) 277 mnt, ((double) check) / (3600 * 24));
|
/external/f2fs-tools/lib/ |
H A D | libf2fs.c | 586 struct mntent *mnt = NULL; local 592 while ((mnt = getmntent(file)) != NULL) { 593 if (!strcmp(device, mnt->mnt_fsname)) { 595 if (hasmntopt(mnt, MNTOPT_RO)) 602 return mnt ? 1 : 0;
|
/external/f2fs-tools/tools/ |
H A D | f2fscrypt.c | 648 struct mntent *mnt; local 650 while (f && ((mnt = getmntent(f)) != NULL)) { 651 if (strcmp(mnt->mnt_type, "f2fs") || 652 access(mnt->mnt_dir, R_OK)) 654 parse_salt(mnt->mnt_dir, PARSE_FLAGS_NOTSUPP_OK);
|
/external/fio/ |
H A D | cgroup.c | 25 struct mntent *mnt, dummy; local 35 while ((mnt = getmntent_r(f, &dummy, buf, sizeof(buf))) != NULL) { 36 if (!strcmp(mnt->mnt_type, "cgroup") && 37 strstr(mnt->mnt_opts, "blkio")) 41 if (mnt) 42 mntpoint = smalloc_strdup(mnt->mnt_dir); 100 static char *get_cgroup_root(struct thread_data *td, char *mnt) argument 105 sprintf(str, "%s/%s", mnt, td->o.cgroup); 107 sprintf(str, "%s/%s", mnt, td->o.name); 142 static int cgroup_del_pid(struct thread_data *td, char *mnt) argument 147 cgroup_setup(struct thread_data *td, struct flist_head *clist, char **mnt) argument 189 cgroup_shutdown(struct thread_data *td, char **mnt) argument [all...] |
H A D | cgroup.h | 14 char **mnt) 20 static inline void cgroup_shutdown(struct thread_data *td, char **mnt) argument 13 cgroup_setup(struct thread_data *td, struct flist_head *list, char **mnt) argument
|
/external/fio/lib/ |
H A D | mountcheck.c | 14 struct mntent *mnt; local 21 while ((mnt = getmntent(mtab)) != NULL) { 22 if (!mnt->mnt_fsname) 24 if (!strcmp(mnt->mnt_fsname, dev)) {
|
/external/iproute2/tc/ |
H A D | tc_bpf.c | 290 static int bpf_valid_mntpt(const char *mnt, unsigned long magic) argument 294 if (statfs(mnt, &st_fs) < 0) 303 char *mnt, int len, 314 strncpy(mnt, *ptr, len - 1); 315 mnt[len - 1] = 0; 316 return mnt; 327 mnt, type) == 2) { 336 return mnt; 350 const char *mnt; local 353 mnt 302 bpf_find_mntpt(const char *fstype, unsigned long magic, char *mnt, int len, const char * const *known_mnts) argument 385 static const char *mnt; local [all...] |
/external/ltp/lib/ |
H A D | tst_path_has_mnt_flags.c | 31 struct mntent *mnt; local 57 while ((mnt = getmntent(f))) { 59 if (!strcmp(mnt->mnt_fsname, "rootfs")) 62 prefix_len = strlen(mnt->mnt_dir); 64 if (strncmp(path, mnt->mnt_dir, prefix_len) == 0 71 if (hasmntopt(mnt, flags[i]) != NULL)
|
/external/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest02.c | 89 static int mnt = 0; variable 438 if (mnt == 1) {
|
H A D | ftest06.c | 94 static int mnt = 0; variable 455 if (mnt == 1) {
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
H A D | aiocp.c | 74 struct mntent *mnt; local 88 while ((mnt = getmntent(f))) { 90 if (mnt->mnt_fsname[0] != '/') 93 prefix_len = strlen(mnt->mnt_dir); 96 !strncmp(path, mnt->mnt_dir, prefix_len)) { 98 strncpy(dev_name, mnt->mnt_fsname, sizeof(dev_name));
|
/external/ltp/testcases/open_posix_testsuite/include/ |
H A D | noatime.h | 48 struct mntent *mnt; local 60 while ((mnt = getmntent(f))) { 62 if (!strcmp(mnt->mnt_fsname, "rootfs")) 65 prefix = strpref(path, mnt->mnt_dir); 69 has_noatime = hasmntopt(mnt, "noatime") != NULL;
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
H A D | closures.c | 338 struct mntent mnt; local 341 if (getmntent_r (last_mntent, &mnt, buf, sizeof (buf)) == NULL) 344 if (hasmntopt (&mnt, "ro") 345 || hasmntopt (&mnt, "noexec") 346 || access (mnt.mnt_dir, W_OK)) 349 fd = open_temp_exec_file_dir (mnt.mnt_dir);
|
/external/selinux/libselinux/src/ |
H A D | init.c | 32 static int verify_selinuxmnt(const char *mnt) argument 38 rc = statfs(mnt, &sfbuf); 43 rc = statvfs(mnt, &vfsbuf); 46 set_selinuxmnt(mnt); 143 void set_selinuxmnt(const char *mnt) 145 selinux_mnt = strdup(mnt);
|
/external/squashfs-tools/kernel/fs/squashfs/ |
H A D | super.c | 344 struct vfsmount *mnt) 347 mnt); 342 squashfs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data, struct vfsmount *mnt) argument
|
/external/syslinux/extlinux/ |
H A D | main.c | 1020 /* btrfs st_dev is not matched with mnt st_rdev, it is a known issue */ 1037 struct mntent *mnt; local 1048 while ((mnt = getmntent(mtab))) { 1049 /* btrfs st_dev is not matched with mnt st_rdev, it is a known issue */ 1052 if (!strcmp(mnt->mnt_type, "btrfs") && 1053 !stat(mnt->mnt_dir, &dst) && 1056 get_default_subvol(mnt->mnt_dir, subvol); 1061 if ((!strcmp(mnt->mnt_type, "ext2") || 1062 !strcmp(mnt->mnt_type, "ext3") || 1063 !strcmp(mnt [all...] |
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-solaris.c | 3093 struct vki_mnttab *mnt = (struct vki_mnttab *) embuf->mbuf_emp; local 3094 if (ML_(safe_to_deref(mnt, sizeof(struct vki_mnttab)))) { 3095 if (mnt->mnt_special != NULL) 3096 PRE_MEM_RASCIIZ("ioctl(MNTIOC_GETMNTANY, mnt->mnt_special)", 3097 (Addr) mnt->mnt_special); 3098 if (mnt->mnt_mountp != NULL) 3099 PRE_MEM_RASCIIZ("ioctl(MNTIOC_GETMNTANY, mnt->mnt_mountp)", 3100 (Addr) mnt->mnt_mountp); 3101 if (mnt->mnt_fstype != NULL) 3102 PRE_MEM_RASCIIZ("ioctl(MNTIOC_GETMNTANY, mnt 3371 struct vki_extmnttab *mnt = (struct vki_extmnttab *) embuf->mbuf_emp; local 3397 struct vki_mnttab *mnt = (struct vki_mnttab *) embuf->mbuf_emp; local [all...] |
/external/valgrind/memcheck/tests/solaris/ |
H A D | scalar_ioctl.c | 53 struct extmnttab mnt; local 56 mnt.mnt_special = (void *) (x0 + 1); 57 mnt.mnt_mountp = (void *) (x0 + 1); 58 mnt.mnt_fstype = (void *) (x0 + 1); 59 mnt.mnt_mntopts = (void *) (x0 + 1); 60 mnt.mnt_time = (void *) (x0 + 1); 62 embuf.mbuf_emp = x0 + &mnt; 93 struct mnttab mnt; local 96 mnt.mnt_special = (void *) (x0 + 1); 97 mnt [all...] |