Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dmapping.c120 char *tmppath = NULL; in kmf_cert_to_name_mapping_initialize() local
140 tmppath = strdup(path); in kmf_cert_to_name_mapping_initialize()
141 if (tmppath == NULL) in kmf_cert_to_name_mapping_initialize()
150 if (tmppath == NULL) in kmf_cert_to_name_mapping_initialize()
157 tmppath = strdup(map->pathname); in kmf_cert_to_name_mapping_initialize()
158 if (tmppath == NULL) in kmf_cert_to_name_mapping_initialize()
167 if (tmppath == NULL) in kmf_cert_to_name_mapping_initialize()
188 map->curpathname = tmppath; in kmf_cert_to_name_mapping_initialize()
250 map->curpathname = tmppath; in kmf_cert_to_name_mapping_initialize()
288 if (tmppath != NULL) in kmf_cert_to_name_mapping_initialize()
[all …]
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_lofs.c222 char tmppath[MAXPATHLEN]; in z_resolve_lofs() local
225 if ((len = resolvepath(path, tmppath, sizeof (tmppath))) == -1) in z_resolve_lofs()
228 tmppath[len] = '\0'; in z_resolve_lofs()
229 (void) strlcpy(path, tmppath, pathlen); in z_resolve_lofs()
282 (void) snprintf(tmppath, sizeof (tmppath), "%s%s", in z_resolve_lofs()
284 if ((len = resolvepath(tmppath, path, pathlen)) == -1) in z_resolve_lofs()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dsrcpath.c43 static char tmppath[PATH_MAX]; in srcpath() local
47 copy = tmppath; in srcpath()
54 copyLen = (sizeof (tmppath) - theLen); in srcpath()
57 copyLen = sizeof (tmppath); in srcpath()
69 return (tmppath); in srcpath()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnftw.c145 char *tmppath; member
193 comp = vp->tmppath; in walk()
302 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); in walk()
309 if (vp->tmppath[0] != '\0' && component[-1] != '/') in walk()
366 vp->state.base = (int)(component - vp->tmppath); in walk()
392 base_tmppath = vp->tmppath - vp->home; in walk()
404 vp->tmppath = vp->home + base_tmppath; in walk()
439 vp->tmppath, strerror(errno)); in walk()
450 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); in walk()
531 var.tmppath = dp; in nftw()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsd/
H A Dnfsd.c790 char *tmppath = NULL; in dss_mkleafdirs() local
798 tmppath = (char *)malloc(MAXPATHLEN); in dss_mkleafdirs()
799 if (tmppath == NULL) { in dss_mkleafdirs()
807 dss_mkleafdir(p, NFS4_DSS_STATE_LEAF, tmppath); in dss_mkleafdirs()
808 dss_mkleafdir(p, NFS4_DSS_OLDSTATE_LEAF, tmppath); in dss_mkleafdirs()
811 free(tmppath); in dss_mkleafdirs()
819 dss_mkleafdir(char *dir, char *leaf, char *tmppath) in dss_mkleafdir() argument
828 (void) snprintf(tmppath, MAXPATHLEN, "%s/%s", dir, leaf); in dss_mkleafdir()
831 if (mkdir(tmppath, NFS4_DSS_DIR_MODE) == -1 && errno != EEXIST) { in dss_mkleafdir()
833 "%s: %s. Exiting.\n", strerror(errno), tmppath); in dss_mkleafdir()
/illumos-gate/usr/src/cmd/svc/configd/
H A Dbackend.c1005 char *tmppath; in backend_create_backup_locked() local
1108 outfd = mkstemp(tmppath); in backend_create_backup_locked()
1137 (void) unlink(tmppath); in backend_create_backup_locked()
1168 (void) unlink(tmppath); in backend_create_backup_locked()
1178 free(tmppath); in backend_create_backup_locked()
1493 char *tmppath = malloc(PATH_MAX); in backend_copy_repository() local
1498 if (tmppath == NULL) { in backend_copy_repository()
1517 tmppath, strerror(errno)); in backend_copy_repository()
1552 if (rename(tmppath, dst) < 0) { in backend_copy_repository()
1563 tmppath, strerror(errno)); in backend_copy_repository()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathtemp.c98 char* tmppath; member
174 if (tmp.tmppath) in pathtemp()
175 free(tmp.tmppath); in pathtemp()
176 tmp.tmppath = dir ? strdup(dir) : (char*)0; in pathtemp()
189 if ((x = tmp.tmppath) || (x = getenv(TMP_PATH_ENV))) in pathtemp()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_util.c633 char tmppath[MAXPATHLEN]; in smb_getdataset() local
671 (void) strlcpy(tmppath, path, MAXPATHLEN); in smb_getdataset()
672 cp = tmppath; in smb_getdataset()
677 mntpref.mnt_mountp = tmppath; in smb_getdataset()
696 if (strcmp(tmppath, "/") == 0) in smb_getdataset()
699 if ((cp = strrchr(tmppath, '/')) == NULL) in smb_getdataset()
707 if (tmppath[0] == '\0') in smb_getdataset()
708 (void) strcpy(tmppath, "/"); in smb_getdataset()
710 cp = tmppath; in smb_getdataset()
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgtrans.c95 static char *tmppath; variable
291 tmppath = tmpnam(NULL); in _pkgtrans()
292 tmppath = strdup(tmppath); in _pkgtrans()
293 if (tmppath == NULL) { in _pkgtrans()
298 if (mkdir(tmppath, 0755)) { in _pkgtrans()
300 logerr(pkg_gt(MSG_MKDIR), tmppath); in _pkgtrans()
303 device2 = tmppath; in _pkgtrans()
1407 if (tmppath) { in cleanup()
1409 (void) rrmdir(tmppath); in cleanup()
1410 free(tmppath); in cleanup()
[all …]
/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dgenf.c1140 char *tmppath; in g_get_port_path() local
1196 tmppath = di_devfs_path(node); in g_get_port_path()
1197 strcat(hbapathfound, tmppath); in g_get_port_path()
1198 (void) free(tmppath); in g_get_port_path()
/illumos-gate/usr/src/common/ficl/emu/
H A Dloader_emu.c848 char *tmppath; in get_dev() local
864 tmppath = buf+1; /* real path */ in get_dev()
871 tmppath = (char *)path; in get_dev()
872 if (tmppath[0] != '/') in get_dev()
896 (void) asprintf(&buf, "%s/%s", ret? "":mp.mnt_mountp, tmppath); in get_dev()
899 tmppath); in get_dev()
/illumos-gate/usr/src/cmd/luxadm/
H A Dqlgcupdate.c150 char devpath[PATH_MAX], tmppath[PATH_MAX]; in q_qlgc_update() local
311 (void) strcpy(tmppath, pcibus_list[i]); in q_qlgc_update()
312 if (ptr1 = strstr(tmppath, IVORY_BUS)) { in q_qlgc_update()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c9295 char *tmppath; in writeconf() local
9310 if (tmppath == NULL) { in writeconf()
9320 if (tmppath == NULL) { in writeconf()
9332 if (tmppath == NULL) { in writeconf()
9336 (void) strcpy(tmppath, dstpath); in writeconf()
9344 tmpfp = fopen(tmppath, "w"); in writeconf()
9347 free(tmppath); in writeconf()
9364 free(tmppath); in writeconf()
9374 if (rename(tmppath, dstpath) != 0) { in writeconf()
9376 free(tmppath); in writeconf()
[all …]
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dvplat.c339 char tmppath[MAXPATHLEN]; in resolve_lofs() local
342 if ((len = resolvepath(path, tmppath, sizeof (tmppath))) == -1) in resolve_lofs()
344 tmppath[len] = '\0'; in resolve_lofs()
345 (void) strlcpy(path, tmppath, sizeof (tmppath)); in resolve_lofs()
397 (void) snprintf(tmppath, sizeof (tmppath), "%s%s", in resolve_lofs()
399 if ((len = resolvepath(tmppath, path, pathlen)) == -1) in resolve_lofs()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_subr.c4704 char *s, *p, *tmppath; in failover_lookup() local
4711 tmppath = kmem_alloc(len, KM_SLEEP); in failover_lookup()
4712 (void) strcpy(tmppath, path); in failover_lookup()
4713 s = tmppath; in failover_lookup()
4735 kmem_free(tmppath, len); in failover_lookup()
4745 kmem_free(tmppath, len); in failover_lookup()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c2672 char *tmppath; in vdev_get_one_physpath() local
2676 &tmppath) != 0) in vdev_get_one_physpath()
2683 rsz = snprintf(physpath + pos, bytes_left, format, tmppath); in vdev_get_one_physpath()