Searched refs:tmppath (Results 1 - 16 of 16) sorted by relevance

/illumos-gate/usr/src/lib/lvm/libsvm/common/
H A Dcheck_svm.c97 char tmppath[PATH_MAX]; local
100 (void) strcat(strcpy(tmppath, path), MD_CONF);
102 if ((fp = fopen(tmppath, "r")) == NULL) {
110 tmppath, rval);
118 (void) strcat(strcpy(tmppath, path), SYSTEM_FILE);
120 if ((fp = fopen(tmppath, "r")) == NULL) {
128 tmppath, rval);
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dsrcpath.c43 static char tmppath[PATH_MAX]; local
47 copy = tmppath;
54 copyLen = (sizeof (tmppath) - theLen);
57 copyLen = sizeof (tmppath);
69 return (tmppath);
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_lofs.c222 char tmppath[MAXPATHLEN]; local
225 if ((len = resolvepath(path, tmppath, sizeof (tmppath))) == -1)
228 tmppath[len] = '\0';
229 (void) strlcpy(path, tmppath, pathlen);
282 (void) snprintf(tmppath, sizeof (tmppath), "%s%s",
284 if ((len = resolvepath(tmppath, path, pathlen)) == -1)
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dmapping.c120 char *tmppath = NULL; local
140 tmppath = strdup(path);
141 if (tmppath == NULL)
145 tmppath = get_mapper_pathname(name, dir);
150 if (tmppath == NULL)
157 tmppath = strdup(map->pathname);
158 if (tmppath == NULL)
162 tmppath = get_mapper_pathname(map->mapname, map->dir);
167 if (tmppath == NULL)
188 map->curpathname = tmppath;
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnftw.c147 char *tmppath; member in struct:Var
195 comp = vp->tmppath;
304 rc = (*fn)(vp->tmppath, &statb, type, &vp->state);
311 if (vp->tmppath[0] != '\0' && component[-1] != '/')
334 rc = (*fn)(vp->tmppath, &statb, type, &vp->state);
368 vp->state.base = (int)(component - vp->tmppath);
394 base_tmppath = vp->tmppath - vp->home;
406 vp->tmppath = vp->home + base_tmppath;
441 vp->tmppath, strerror(errno));
451 if ((vp->tmppath[
[all...]
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathtemp.c98 char* tmppath; member in struct:__anon2659
174 if (tmp.tmppath)
175 free(tmp.tmppath);
176 tmp.tmppath = dir ? strdup(dir) : (char*)0;
189 if ((x = tmp.tmppath) || (x = getenv(TMP_PATH_ENV)))
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsd/
H A Dnfsd.c774 char *tmppath = NULL; local
782 tmppath = (char *)malloc(MAXPATHLEN);
783 if (tmppath == NULL) {
784 syslog(LOG_ERR, "tmppath malloc failed. Exiting");
791 dss_mkleafdir(p, NFS4_DSS_STATE_LEAF, tmppath);
792 dss_mkleafdir(p, NFS4_DSS_OLDSTATE_LEAF, tmppath);
795 free(tmppath);
803 dss_mkleafdir(char *dir, char *leaf, char *tmppath) argument
812 (void) snprintf(tmppath, MAXPATHLEN, "%s/%s", dir, leaf);
815 if (mkdir(tmppath, NFS4_DSS_DIR_MOD
[all...]
/illumos-gate/usr/src/cmd/svc/configd/
H A Dbackend.c1005 char *tmppath; local
1027 if ((tmppath = malloc(PATH_MAX)) == NULL) {
1079 (void) strlcpy(tmppath, finalpath, PATH_MAX);
1080 if (strlcat(tmppath, "-tmpXXXXXX", PATH_MAX) >= PATH_MAX) {
1108 outfd = mkstemp(tmppath);
1111 name, tmppath, strerror(errno));
1117 if ((result = backend_do_copy(src, infd, (const char *)tmppath,
1127 if (rename(tmppath, finalpath) < 0) {
1130 name, tmppath, finalpath, strerror(errno));
1135 tmppath[le
1493 char *tmppath = malloc(PATH_MAX); local
[all...]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c632 char tmppath[MAXPATHLEN]; local
643 (void) strlcpy(tmppath, path, MAXPATHLEN);
644 cp = tmppath;
649 mntpref.mnt_mountp = tmppath;
668 if (strcmp(tmppath, "/") == 0)
671 if ((cp = strrchr(tmppath, '/')) == NULL)
679 if (tmppath[0] == '\0')
680 (void) strcpy(tmppath, "/");
682 cp = tmppath;
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgtrans.c98 static char *tmppath; variable
376 tmppath = tmpnam(NULL);
377 tmppath = strdup(tmppath);
378 if (tmppath == NULL) {
383 if (mkdir(tmppath, 0755)) {
385 logerr(pkg_gt(MSG_MKDIR), tmppath); local
388 device2 = tmppath;
1828 if (tmppath) {
1829 /* remove any previous tmppath stuf
[all...]
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dgenf.c1140 char *tmppath; local
1196 tmppath = di_devfs_path(node);
1197 strcat(hbapathfound, tmppath);
1198 (void) free(tmppath);
/illumos-gate/usr/src/cmd/luxadm/
H A Dqlgcupdate.c150 char devpath[PATH_MAX], tmppath[PATH_MAX]; local
311 (void) strcpy(tmppath, pcibus_list[i]);
312 if (ptr1 = strstr(tmppath, IVORY_BUS)) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c9295 char *tmppath; local
9309 tmppath = malloc(strlen("ipqosconf.tmp") + 1);
9310 if (tmppath == NULL) {
9314 (void) strcpy(tmppath, "ipqosconf.tmp");
9319 tmppath = malloc(strlen("/ipqosconf.tmp") + 1);
9320 if (tmppath == NULL) {
9324 (void) strcpy(tmppath, "/ipqosconf.tmp");
9330 tmppath = malloc(strlen(dstpath) + strlen("/ipqosconf.tmp") +
9332 if (tmppath == NULL) {
9336 (void) strcpy(tmppath, dstpat
[all...]
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dvplat.c325 char tmppath[MAXPATHLEN]; local
328 if ((len = resolvepath(path, tmppath, sizeof (tmppath))) == -1)
330 tmppath[len] = '\0';
331 (void) strlcpy(path, tmppath, sizeof (tmppath));
383 (void) snprintf(tmppath, sizeof (tmppath), "%s%s",
385 if ((len = resolvepath(tmppath, path, pathlen)) == -1)
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_subr.c4646 char *s, *p, *tmppath; local
4653 tmppath = kmem_alloc(len, KM_SLEEP);
4654 (void) strcpy(tmppath, path);
4655 s = tmppath;
4677 kmem_free(tmppath, len);
4687 kmem_free(tmppath, len);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c2216 char *tmppath; local
2220 &tmppath) != 0)
2227 rsz = snprintf(physpath + pos, bytes_left, format, tmppath);

Completed in 228 milliseconds