/titanic_41/usr/src/lib/lvm/libsvm/common/ |
H A D | check_svm.c | 97 char tmppath[PATH_MAX]; in svm_check() local 100 (void) strcat(strcpy(tmppath, path), MD_CONF); in svm_check() 102 if ((fp = fopen(tmppath, "r")) == NULL) { in svm_check() 110 tmppath, rval); in svm_check() 118 (void) strcat(strcpy(tmppath, path), SYSTEM_FILE); in svm_check() 120 if ((fp = fopen(tmppath, "r")) == NULL) { in svm_check() 128 tmppath, rval); in svm_check()
|
/titanic_41/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 …]
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | nftw.c | 147 char *tmppath; member 195 comp = vp->tmppath; in walk() 304 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); in walk() 311 if (vp->tmppath[0] != '\0' && component[-1] != '/') in walk() 334 rc = (*fn)(vp->tmppath, &statb, type, &vp->state); in walk() 368 vp->state.base = (int)(component - vp->tmppath); in walk() 394 base_tmppath = vp->tmppath - vp->home; in walk() 406 vp->tmppath = vp->home + base_tmppath; in walk() 441 vp->tmppath, strerror(errno)); in walk() 451 if ((vp->tmppath[0] != '\0') && (vp->curflags & FTW_DEPTH) && !skip) in walk() [all …]
|
/titanic_41/usr/src/cmd/fs.d/nfs/nfsd/ |
H A D | nfsd.c | 774 char *tmppath = NULL; in dss_mkleafdirs() local 782 tmppath = (char *)malloc(MAXPATHLEN); in dss_mkleafdirs() 783 if (tmppath == NULL) { in dss_mkleafdirs() 791 dss_mkleafdir(p, NFS4_DSS_STATE_LEAF, tmppath); in dss_mkleafdirs() 792 dss_mkleafdir(p, NFS4_DSS_OLDSTATE_LEAF, tmppath); in dss_mkleafdirs() 795 free(tmppath); in dss_mkleafdirs() 803 dss_mkleafdir(char *dir, char *leaf, char *tmppath) in dss_mkleafdir() argument 812 (void) snprintf(tmppath, MAXPATHLEN, "%s/%s", dir, leaf); in dss_mkleafdir() 815 if (mkdir(tmppath, NFS4_DSS_DIR_MODE) == -1 && errno != EEXIST) { in dss_mkleafdir() 817 "%s: %s. Exiting", strerror(errno), tmppath); in dss_mkleafdir()
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 632 char tmppath[MAXPATHLEN]; in smb_getdataset() local 643 (void) strlcpy(tmppath, path, MAXPATHLEN); in smb_getdataset() 644 cp = tmppath; in smb_getdataset() 649 mntpref.mnt_mountp = tmppath; in smb_getdataset() 668 if (strcmp(tmppath, "/") == 0) in smb_getdataset() 671 if ((cp = strrchr(tmppath, '/')) == NULL) in smb_getdataset() 679 if (tmppath[0] == '\0') in smb_getdataset() 680 (void) strcpy(tmppath, "/"); in smb_getdataset() 682 cp = tmppath; in smb_getdataset()
|
/titanic_41/usr/src/lib/libast/common/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()
|
/titanic_41/usr/src/lib/libpkg/common/ |
H A D | pkgtrans.c | 98 static char *tmppath; variable 376 tmppath = tmpnam(NULL); in _pkgtrans() 377 tmppath = strdup(tmppath); in _pkgtrans() 378 if (tmppath == NULL) { in _pkgtrans() 383 if (mkdir(tmppath, 0755)) { in _pkgtrans() 385 logerr(pkg_gt(MSG_MKDIR), tmppath); in _pkgtrans() 388 device2 = tmppath; in _pkgtrans() 1828 if (tmppath) { in cleanup() 1830 (void) rrmdir(tmppath); in cleanup() 1831 free(tmppath); in cleanup() [all …]
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipqosconf.c | 9302 char *tmppath; in writeconf() local 9316 tmppath = malloc(strlen("ipqosconf.tmp") + 1); in writeconf() 9317 if (tmppath == NULL) { in writeconf() 9321 (void) strcpy(tmppath, "ipqosconf.tmp"); in writeconf() 9326 tmppath = malloc(strlen("/ipqosconf.tmp") + 1); in writeconf() 9327 if (tmppath == NULL) { in writeconf() 9331 (void) strcpy(tmppath, "/ipqosconf.tmp"); in writeconf() 9337 tmppath = malloc(strlen(dstpath) + strlen("/ipqosconf.tmp") + in writeconf() 9339 if (tmppath == NULL) { in writeconf() 9343 (void) strcpy(tmppath, dstpath); in writeconf() [all …]
|
/titanic_41/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 323 char tmppath[MAXPATHLEN]; in resolve_lofs() local 326 if ((len = resolvepath(path, tmppath, sizeof (tmppath))) == -1) in resolve_lofs() 328 tmppath[len] = '\0'; in resolve_lofs() 329 (void) strlcpy(path, tmppath, sizeof (tmppath)); in resolve_lofs() 381 (void) snprintf(tmppath, sizeof (tmppath), "%s%s", in resolve_lofs() 383 if ((len = resolvepath(tmppath, path, pathlen)) == -1) in resolve_lofs()
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs_subr.c | 4703 char *s, *p, *tmppath; in failover_lookup() local 4710 tmppath = kmem_alloc(len, KM_SLEEP); in failover_lookup() 4711 (void) strcpy(tmppath, path); in failover_lookup() 4712 s = tmppath; in failover_lookup() 4734 kmem_free(tmppath, len); in failover_lookup() 4744 kmem_free(tmppath, len); in failover_lookup()
|
/titanic_41/usr/src/lib/libzfs/common/ |
H A D | libzfs_pool.c | 2159 char *tmppath; in vdev_get_one_physpath() local 2163 &tmppath) != 0) in vdev_get_one_physpath() 2170 rsz = snprintf(physpath + pos, bytes_left, format, tmppath); in vdev_get_one_physpath()
|