/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | mapping.c | 120 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() 145 tmppath = get_mapper_pathname(name, dir); 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() 162 tmppath = get_mapper_pathname(map->mapname, map->dir); 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() [all …]
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_lofs.c | 222 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 D | srcpath.c | 43 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 D | nftw.c | 145 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() 332 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); 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() 449 if ((vp->tmppath[0] != '\0') && (vp->curflags & FTW_DEPTH) && !skip) in walk() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsd/ |
H A D | nfsd.c | 790 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 D | backend.c | 1005 char *tmppath; in backend_create_backup_locked() local 1027 if ((tmppath = malloc(PATH_MAX)) == NULL) { in backend_create_backup_locked() 1079 (void) strlcpy(tmppath, finalpath, PATH_MAX); in backend_create_backup_locked() 1080 if (strlcat(tmppath, "-tmpXXXXXX", PATH_MAX) >= PATH_MAX) { in backend_create_backup_locked() 1108 outfd = mkstemp(tmppath); in backend_create_backup_locked() 1111 name, tmppath, strerror(errno)); in backend_create_backup_locked() 1117 if ((result = backend_do_copy(src, infd, (const char *)tmppath, in backend_create_backup_locked() 1127 if (rename(tmppath, finalpath) < 0) { in backend_create_backup_locked() 1130 name, tmppath, finalpath, strerror(errno)); in backend_create_backup_locked() 1135 tmppath[len] = 0; /* strip -XXXXXX, for reference symlink */ in backend_create_backup_locked() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 633 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/contrib/ast/src/lib/libast/path/ |
H A D | pathtemp.c | 98 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/libpkg/common/ |
H A D | pkgtrans.c | 95 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 D | genf.c | 1140 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 D | loader_emu.c | 848 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 D | qlgcupdate.c | 150 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 D | ipqosconf.c | 9295 char *tmppath; in writeconf() local 9309 tmppath = malloc(strlen("ipqosconf.tmp") + 1); in writeconf() 9310 if (tmppath == NULL) { in writeconf() 9314 (void) strcpy(tmppath, "ipqosconf.tmp"); in writeconf() 9319 tmppath = malloc(strlen("/ipqosconf.tmp") + 1); in writeconf() 9320 if (tmppath == NULL) { in writeconf() 9324 (void) strcpy(tmppath, "/ipqosconf.tmp"); in writeconf() 9330 tmppath = malloc(strlen(dstpath) + strlen("/ipqosconf.tmp") + in writeconf() 9332 if (tmppath == NULL) { in writeconf() 9336 (void) strcpy(tmppath, dstpath); in writeconf() [all …]
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 339 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 D | nfs_subr.c | 4704 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 D | libzfs_pool.c | 2672 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()
|