Lines Matching defs:dhp
93 dt_handle_t *dhp;
99 dhp = malloc(sizeof (dt_handle_t));
100 if (dhp == NULL)
103 dhp->dh_oflags = flags;
104 (void) strlcpy(dhp->dh_location, location, MAXPATHLEN);
109 free(dhp);
125 (void) close_dt((void **)&dhp);
136 (void) close_dt((void **)&dhp);
143 (void) close_dt((void **)&dhp);
149 *handlep = dhp;
179 dt_handle_t *dhp = (dt_handle_t *)handle;
181 if ((dhp->dh_oflags & DSVC_READ) == 0)
184 dt2path(dtpath, MAXPATHLEN, dhp->dh_location, "");
346 dt_handle_t *dhp = (dt_handle_t *)handle;
349 if ((dhp->dh_oflags & DSVC_WRITE) == 0)
352 dt2path(dtpath, MAXPATHLEN, dhp->dh_location, "");
382 dt2path(newpath, MAXPATHLEN, dhp->dh_location, ".new");
436 dt_handle_t *dhp = (dt_handle_t *)handle;
439 if ((dhp->dh_oflags & DSVC_WRITE) == 0)
442 dt2path(dtpath, MAXPATHLEN, dhp->dh_location, "");
501 dt2path(newpath, MAXPATHLEN, dhp->dh_location, ".new");
555 dt_handle_t *dhp = (dt_handle_t *)handle;
558 if ((dhp->dh_oflags & DSVC_WRITE) == 0)
561 dt2path(dtpath, MAXPATHLEN, dhp->dh_location, "");
604 dt2path(newpath, MAXPATHLEN, dhp->dh_location, ".new");