Home
last modified time | relevance | path

Searched refs:copyp (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetmntent.c144 char *copyp, *bufp; in getmntany() local
156 if ((copyp = bufp = getmntbuf(MNT_LINE_MAX)) == NULL) { in getmntany()
162 mgetp->mnt_special = copyp; in getmntany()
163 copyp += snprintf(mgetp->mnt_special, MNT_LINE_MAX, "%s", in getmntany()
167 mgetp->mnt_mountp = copyp; in getmntany()
168 copyp += snprintf(mgetp->mnt_mountp, in getmntany()
169 bufp + MNT_LINE_MAX - copyp, "%s", mrefp->mnt_mountp) + 1; in getmntany()
172 mgetp->mnt_fstype = copyp; in getmntany()
173 copyp += snprintf(mgetp->mnt_fstype, in getmntany()
174 bufp + MNT_LINE_MAX - copyp, "%s", mrefp->mnt_fstype) + 1; in getmntany()
[all …]
/illumos-gate/usr/src/uts/common/fs/mntfs/
H A Dmntvnops.c449 mntelem_t *copyp; in mntfs_copy() local
451 copyp = kmem_zalloc(sizeof (mntelem_t), KM_SLEEP); in mntfs_copy()
452 copyp->mnte_vfs_ctime = origp->mnte_vfs_ctime; in mntfs_copy()
453 copyp->mnte_text_size = origp->mnte_text_size; in mntfs_copy()
454 copyp->mnte_text = kmem_alloc(copyp->mnte_text_size, KM_SLEEP); in mntfs_copy()
455 bcopy(origp->mnte_text, copyp->mnte_text, copyp->mnte_text_size); in mntfs_copy()
456 copyp->mnte_tab = origp->mnte_tab; in mntfs_copy()
457 copyp->mnte_hidden = origp->mnte_hidden; in mntfs_copy()
459 return (copyp); in mntfs_copy()