Lines Matching refs:nsh
107 share_t *nsh;
109 nsh = (share_t *)calloc(1, sizeof (*nsh));
110 if (nsh == NULL)
113 nsh->sh_path = strdup(sh->sh_path);
114 if (nsh->sh_path == NULL)
116 nsh->sh_res = strdup(sh->sh_res);
117 if (nsh->sh_res == NULL)
119 nsh->sh_fstype = strdup(sh->sh_fstype);
120 if (nsh->sh_fstype == NULL)
122 nsh->sh_opts = strdup(sh->sh_opts);
123 if (nsh->sh_opts == NULL)
125 nsh->sh_descr = strdup(sh->sh_descr);
126 if (nsh->sh_descr == NULL)
128 return (nsh);
131 sharefree(nsh);