Searched defs:dstpath (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dreqexec.c89 char *dstpath; local
100 dstpath = (char *)malloc(dstpathLen);
101 if (dstpath == (char *)NULL) {
107 (void) snprintf(dstpath, dstpathLen, "%s/%s", tmpdir, tmpname);
109 if (mktemp(dstpath) == NULL) {
111 (void) free(dstpath);
117 r = copyf(script, dstpath, (time_t)0);
119 progerr(ERR_CANNOT_COPY, script, dstpath);
125 if (chmod(dstpath, 0444) != 0) {
127 (void) free(dstpath);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c9283 * write the configuration in conf to the file given in dstpath. This
9285 * file to dstpath. This assures an atomic write.
9291 char *dstpath)
9304 pathend = strrchr(dstpath, '/');
9306 /* dstpath in current dir */
9316 /* dstpath in root dir */
9318 } else if (pathend == dstpath) {
9330 tmppath = malloc(strlen(dstpath) + strlen("/ipqosconf.tmp") +
9336 (void) strcpy(tmppath, dstpath);
9374 if (rename(tmppath, dstpath) !
9289 writeconf( ipqos_conf_action_t *conf, char *dstpath) argument
[all...]

Completed in 74 milliseconds