Lines Matching refs:retval
1306 struct mnttab *retval;
1310 retval = (struct mnttab *)calloc(1, sizeof (*retval));
1311 if (retval == NULL) {
1316 retval->mnt_special = strdup(srcp->mnt_special);
1317 if (retval->mnt_special == NULL)
1321 retval->mnt_fstype = strdup(srcp->mnt_fstype);
1322 if (retval->mnt_fstype == NULL)
1325 retval->mnt_mntopts = (char *)malloc(MAX_MNTOPT_STR * sizeof (char));
1326 if (retval->mnt_mntopts == NULL)
1329 if (strlcpy(retval->mnt_mntopts, srcp->mnt_mntopts,
1332 mnttab_destroy(retval);
1337 retval->mnt_mntopts[0] = '\0';
1339 return (retval);
1342 mnttab_destroy(retval);