Lines Matching refs:mlp
1436 struct mountlist *mlp; in xdr_mlist() local
1441 SLIST_FOREACH(mlp, &mlhead, next) { in xdr_mlist()
1444 strp = &mlp->ml_host[0]; in xdr_mlist()
1447 strp = &mlp->ml_dirp[0]; in xdr_mlist()
3730 struct mountlist *mlp; in get_mountlist() local
3749 mlp = (struct mountlist *)malloc(sizeof (*mlp)); in get_mountlist()
3750 if (mlp == (struct mountlist *)NULL) in get_mountlist()
3752 strncpy(mlp->ml_host, host, MNTNAMLEN); in get_mountlist()
3753 mlp->ml_host[MNTNAMLEN] = '\0'; in get_mountlist()
3754 strncpy(mlp->ml_dirp, dirp, MNTPATHLEN); in get_mountlist()
3755 mlp->ml_dirp[MNTPATHLEN] = '\0'; in get_mountlist()
3757 SLIST_INSERT_HEAD(&mlhead, mlp, next); in get_mountlist()
3765 struct mountlist *mlp, *mlp2; in del_mlist() local
3769 SLIST_FOREACH_SAFE(mlp, &mlhead, next, mlp2) { in del_mlist()
3770 if (!strcmp(mlp->ml_host, hostp) && in del_mlist()
3771 (!dirp || !strcmp(mlp->ml_dirp, dirp))) { in del_mlist()
3773 SLIST_REMOVE(&mlhead, mlp, mountlist, next); in del_mlist()
3774 free((caddr_t)mlp); in del_mlist()
3782 SLIST_FOREACH(mlp, &mlhead, next) { in del_mlist()
3783 fprintf(mlfile, "%s %s\n", mlp->ml_host, mlp->ml_dirp); in del_mlist()
3792 struct mountlist *mlp; in add_mlist() local
3795 SLIST_FOREACH(mlp, &mlhead, next) { in add_mlist()
3796 if (!strcmp(mlp->ml_host, hostp) && !strcmp(mlp->ml_dirp, dirp)) in add_mlist()
3800 mlp = (struct mountlist *)malloc(sizeof (*mlp)); in add_mlist()
3801 if (mlp == (struct mountlist *)NULL) in add_mlist()
3803 strncpy(mlp->ml_host, hostp, MNTNAMLEN); in add_mlist()
3804 mlp->ml_host[MNTNAMLEN] = '\0'; in add_mlist()
3805 strncpy(mlp->ml_dirp, dirp, MNTPATHLEN); in add_mlist()
3806 mlp->ml_dirp[MNTPATHLEN] = '\0'; in add_mlist()
3807 SLIST_INSERT_HEAD(&mlhead, mlp, next); in add_mlist()
3812 fprintf(mlfile, "%s %s\n", mlp->ml_host, mlp->ml_dirp); in add_mlist()