Lines Matching refs:mfs
1147 struct mapfs *mfs = me->map_fs; /* assumes it exists */ in convert_mapent_to_automount() local
1151 if (mfs->mfs_host) { in convert_mapent_to_automount()
1152 free(mfs->mfs_host); in convert_mapent_to_automount()
1153 mfs->mfs_host = NULL; in convert_mapent_to_automount()
1156 mfs = me->map_fs->mfs_next; in convert_mapent_to_automount()
1157 if (mfs->mfs_host) in convert_mapent_to_automount()
1158 free(mfs->mfs_host); in convert_mapent_to_automount()
1159 if (mfs->mfs_dir) in convert_mapent_to_automount()
1160 free(mfs->mfs_dir); in convert_mapent_to_automount()
1161 me->map_fs->mfs_next = mfs->mfs_next; /* nulls eventually */ in convert_mapent_to_automount()
1162 free((void*)mfs); in convert_mapent_to_automount()
1323 struct mapfs *mfs, **mfsp; local
1462 mfs = (struct mapfs *)malloc(sizeof (*mfs));
1463 if (mfs == NULL) {
1468 (void) memset(mfs, 0, sizeof (*mfs));
1469 *mfsp = mfs;
1470 mfsp = &mfs->mfs_next;
1491 mfs->mfs_port = atoi(sport+1);
1493 if (mfs->mfs_port > USHRT_MAX) {
1498 mfs->mfs_port);
1509 mfs->mfs_flags |= MFS_URL;
1511 mfs->mfs_host = strdup(host);
1512 mfs->mfs_dir = strdup(path);
1514 mfs->mfs_host = strdup(hostname);
1515 mfs->mfs_dir = strdup(dirname);
1518 mfs->mfs_penalty = penalty;
1519 if (mfs->mfs_host == NULL || mfs->mfs_dir == NULL) {
1558 struct mapfs *mfs; local
1567 mfs = (struct mapfs *)malloc(sizeof (struct mapfs));
1568 if (mfs == NULL)
1570 (void) memset(mfs, 0, sizeof (*mfs));
1587 mfs->mfs_dir = strdup(&devname[devname[0] == ':']);
1588 if (mfs->mfs_dir == NULL)
1590 me->map_fs = mfs;
1689 struct mapfs *mfs; local
1694 mfs = me->map_fs;
1695 if (mfs->mfs_host)
1696 free(mfs->mfs_host);
1697 if (mfs->mfs_dir)
1698 free(mfs->mfs_dir);
1699 if (mfs->mfs_args)
1700 free(mfs->mfs_args);
1701 if (mfs->mfs_nconf)
1702 freenetconfigent(mfs->mfs_nconf);
1703 me->map_fs = mfs->mfs_next;
1704 free((char *)mfs);
1736 struct mapfs *mfs; in trace_mapents() local
1747 for (mfs = me->map_fs; mfs; mfs = mfs->mfs_next) in trace_mapents()
1749 mfs->mfs_host ? mfs->mfs_host: "", in trace_mapents()
1750 mfs->mfs_dir ? mfs->mfs_dir : ""); in trace_mapents()
1818 struct mapfs *mfs; local
1867 mfs = (struct mapfs *)malloc(sizeof (*mfs));
1868 if (mfs == NULL)
1870 (void) memset((char *)mfs, 0, sizeof (*mfs));
1871 ms->map_fs = mfs;
1872 mfs->mfs_host = strdup(host);
1873 if (mfs->mfs_host == NULL)
1875 mfs->mfs_dir = strdup("/");
1876 if (mfs->mfs_dir == NULL)
2067 mfs = (struct mapfs *)malloc(sizeof (*mfs));
2068 if (mfs == NULL)
2070 (void) memset((char *)mfs, 0, sizeof (*mfs));
2071 me->map_fs = mfs;
2072 mfs->mfs_host = strdup(host);
2073 if (mfs->mfs_host == NULL)
2075 mfs->mfs_dir = strdup(ex->ex_dir);
2076 if (mfs->mfs_dir == NULL)