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