/titanic_41/usr/src/psm/stand/lib/names/sparc/common/ |
H A D | uname-i.c | 139 make_platform_path(char *fullpath, char *iarch, char *filename) in make_platform_path() argument 141 (void) strcpy(fullpath, "/platform/"); in make_platform_path() 142 (void) strcat(fullpath, iarch); in make_platform_path() 144 (void) strcat(fullpath, "/"); in make_platform_path() 145 (void) strcat(fullpath, filename); in make_platform_path() 157 char fullpath[MAXPATHLEN]; in find_platform_dir() local 165 make_platform_path(fullpath, ia, NULL); in find_platform_dir() 166 if (((*isdirfn)(fullpath)) != 0) { in find_platform_dir() 185 char *fullpath) in open_platform_file() argument 195 make_platform_path(fullpath, ia, filename); in open_platform_file() [all …]
|
/titanic_41/usr/src/lib/libcryptoutil/common/ |
H A D | util.c | 46 char *fullpath = NULL; in get_fullpath() local 59 fullpath = (char *)malloc(len); in get_fullpath() 60 if (fullpath != NULL) in get_fullpath() 61 (void) snprintf(fullpath, len, "%s/%s", in get_fullpath() 67 fullpath = (char *)strdup(filepath); in get_fullpath() 69 fullpath = (char *)strdup(dir); in get_fullpath() 72 return (fullpath); in get_fullpath()
|
/titanic_41/usr/src/cmd/cmd-crypto/pktool/ |
H A D | download.c | 53 char *fullpath = NULL; in pk_download() local 111 fullpath = get_fullpath(dir, outfile); in pk_download() 112 if (fullpath == NULL) { in pk_download() 118 if (verify_file(fullpath) != KMF_OK) { in pk_download() 121 "will be overwritten."), fullpath); in pk_download() 170 fullpath, &format); in pk_download() 173 fullpath, &format); in pk_download() 221 ch_rv = kmf_check_crl_date(kmfhandle, fullpath); in pk_download() 223 ch_rv = kmf_read_input_file(kmfhandle, fullpath, &cert); in pk_download() 249 if (fullpath) in pk_download() [all …]
|
/titanic_41/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11Conf.c | 262 char *isa, *fullpath = NULL, *dl_error; in pkcs11_slot_mapping() local 309 if ((fullpath = (char *)malloc(len)) == NULL) { in pkcs11_slot_mapping() 319 (void) snprintf(fullpath, len, "%s%s%s", in pkcs11_slot_mapping() 321 } else if ((fullpath = strdup(phead->puent->name)) == 0) { in pkcs11_slot_mapping() 338 dldesc = dlopen(fullpath, RTLD_LAZY); in pkcs11_slot_mapping() 349 fullpath, dl_error != NULL ? dl_error : "Unknown", in pkcs11_slot_mapping() 366 fullpath, conf_err); in pkcs11_slot_mapping() 383 fullpath, conf_err, pkcs11_strerror(prov_rv)); in pkcs11_slot_mapping() 400 fullpath, conf_err, pkcs11_strerror(prov_rv)); in pkcs11_slot_mapping() 423 "%s. %s Error: %s.", fullpath, in pkcs11_slot_mapping() [all …]
|
/titanic_41/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 157 char rawpath[PATH_MAX], fullpath[PATH_MAX]; in zfs_process_add() local 171 (void) strlcpy(fullpath, path, sizeof (fullpath)); in zfs_process_add() 173 fullpath[strlen(fullpath) - 2] = '\0'; in zfs_process_add() 180 (zpool_vdev_online(zhp, fullpath, in zfs_process_add() 193 (void) zpool_vdev_online(zhp, fullpath, ZFS_ONLINE_FORCEFAULT, in zfs_process_add() 213 (void) zpool_vdev_online(zhp, fullpath, in zfs_process_add() 223 (void) zpool_vdev_online(zhp, fullpath, in zfs_process_add() 257 (void) zpool_vdev_attach(zhp, fullpath, path, nvroot, B_TRUE); in zfs_process_add() 406 char *fullpath; in devid_iter() local 415 fullpath = alloca(len); in devid_iter() [all …]
|
/titanic_41/usr/src/cmd/zinject/ |
H A D | translate.c | 96 char fullpath[MAXPATHLEN]; in parse_pathname() local 98 compress_slashes(inpath, fullpath); in parse_pathname() 100 if (fullpath[0] != '/') { in parse_pathname() 102 "path\n", fullpath); in parse_pathname() 107 if (strlen(fullpath) >= MAXPATHLEN) { in parse_pathname() 112 if (stat64(fullpath, statbuf) != 0) { in parse_pathname() 114 fullpath, strerror(errno)); in parse_pathname() 133 fullpath); in parse_pathname() 139 "filesystem\n", fullpath); in parse_pathname() 143 if (strncmp(fullpath, mp.mnt_mountp, strlen(mp.mnt_mountp)) != 0) { in parse_pathname() [all …]
|
/titanic_41/usr/src/lib/sun_sas/common/ |
H A D | devtree_device_disco.c | 45 char fullpath[MAXPATHLEN]; in get_minor() local 57 (void) snprintf(fullpath, MAXPATHLEN, "%s%s%s", DEVICES_DIR, in get_minor() 61 if ((fd = open(fullpath, O_RDONLY)) == -1) { in get_minor() 229 char fullpath[MAXPATHLEN+1]; in get_attached_devices_info() local 268 (void) snprintf(fullpath, sizeof (fullpath), "%s%s", in get_attached_devices_info() 287 fullpath); in get_attached_devices_info() 294 fullpath); in get_attached_devices_info() 354 fullpath); in get_attached_devices_info() 362 fullpath); in get_attached_devices_info() 392 "device %s.", fullpath); in get_attached_devices_info() [all …]
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/ |
H A D | subr.c | 39 get_fname(char *fullpath) in get_fname() argument 45 strcpy(buf, fullpath); in get_fname() 61 get_dirname(char *fullpath) in get_dirname() argument 67 strcpy(buf, fullpath); in get_dirname()
|
H A D | elfrd.c | 431 libsrch(char *name, struct libpath *libpath, char *fullpath) in libsrch() argument 449 strcpy(fullpath, lp->lp_path); in libsrch() 450 strcat(fullpath, "/"); in libsrch() 451 strcat(fullpath, name); in libsrch() 460 if (stat64(fullpath, &statbuf) in libsrch() 463 printf("libsrch: found - %s\n", fullpath); in libsrch()
|
/titanic_41/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_mnt.c | 289 char fullpath[MAXPATHLEN+1]; in load_mnttab() local 310 (void) snprintf(fullpath, sizeof (fullpath), "/dev/%s", in load_mnttab() 313 (void) strlcpy(fullpath, swapent->ste_path, in load_mnttab() 314 sizeof (fullpath)); in load_mnttab() 317 currp->special = strdup(fullpath); in load_mnttab()
|
/titanic_41/usr/src/cmd/swap/ |
H A D | swap.c | 373 char fullpath[MAXPATHLEN+1]; in list() local 433 (void) snprintf(fullpath, sizeof (fullpath), in list() 436 (void) snprintf(fullpath, sizeof (fullpath), in list() 438 if (stat64(fullpath, &statbuf) < 0) in list() 444 fullpath); in list() 449 fullpath, in list() 453 (void) printf(gettext("%-20s - "), fullpath); in list()
|
/titanic_41/usr/src/psm/stand/boot/sparc/common/ |
H A D | boot_plat.c | 251 static char *fullpath; in openfile() local 266 fullpath = (char *)kmem_alloc(MAXPATHLEN, 0); in openfile() 270 (void) strcpy(fullpath, filename); in openfile() 271 fd = boot_open(fullpath, NULL); in openfile() 275 fd = open_platform_file(filename, boot_open, NULL, fullpath); in openfile() 282 (void) strcpy(filename, fullpath); in openfile()
|
/titanic_41/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 1040 char *fullpath = NULL; in OpenSSL_FindCert() local 1068 fullpath = get_fullpath(dirpath, filename); in OpenSSL_FindCert() 1069 if (fullpath == NULL) in OpenSSL_FindCert() 1083 if (isdir(fullpath)) { in OpenSSL_FindCert() 1089 if ((dirp = opendir(fullpath)) == NULL) { in OpenSSL_FindCert() 1101 fname = get_fullpath(fullpath, (char *)&dp->d_name); in OpenSSL_FindCert() 1159 fullpath, &certlist, &loaded_certs); in OpenSSL_FindCert() 1161 free(fullpath); in OpenSSL_FindCert() 1177 strdup(fullpath); in OpenSSL_FindCert() 1193 free(fullpath); in OpenSSL_FindCert() [all …]
|
/titanic_41/usr/src/cmd/logadm/ |
H A D | kw.c | 74 static char *fullpath; in kw_init() local 91 if (fullpath) in kw_init() 92 FREE(fullpath); in kw_init() 93 fullpath = STRDUP(fn_s(fnp)); in kw_init() 94 Keywords = lut_add(Keywords, "file", fullpath); in kw_init()
|
/titanic_41/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 153 pkgfindrealsadmdir(char fullpath[PATH_MAX], const char *root, in pkgfindrealsadmdir() 186 if (realpath(temp, fullpath) == NULL) { in pkgfindrealsadmdir() 191 if (strcmp(fullpath, SADM_DIR) == 0) in pkgfindrealsadmdir() 194 if (testdoor(fullpath) == 0) in pkgfindrealsadmdir() 213 if (strncmp(xmnt.mnt_mountp, fullpath, len) == 0 && in pkgfindrealsadmdir() 214 (len == 1 || fullpath[len] == '/' || in pkgfindrealsadmdir() 215 fullpath[len] == '\0')) { in pkgfindrealsadmdir() 226 &fullpath[max]) >= PATH_MAX) { in pkgfindrealsadmdir() 236 *sadmdir = fullpath; in pkgfindrealsadmdir()
|
/titanic_41/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 918 char fullpath[MAXPATHLEN]; /* full path of file */ in path_open() local 966 (void) strncpy(fullpath, path, MAXPATHLEN); in path_open() 967 (void) strncat(fullpath, "/", MAXPATHLEN); in path_open() 970 (void) strncpy(fullpath, "./", MAXPATHLEN); in path_open() 972 (void) strncat(fullpath, fname, MAXPATHLEN); in path_open() 975 if (stat(fullpath, &st) >= 0) { in path_open() 982 prog, fname, fullpath); in path_open() 984 return (open(fullpath, flags, mode)); in path_open()
|
/titanic_41/usr/src/cmd/fm/schemes/mem/sparc/ |
H A D | mem_disc.c | 212 char fullpath[BUFSIZ]; in picl_frudata_parse() local 216 fullpath, &len) != 1 || fullpath[0] == '\0' || len != strlen(buf)) in picl_frudata_parse() 223 pm->pm_fullpath = fmd_fmri_strdup(fullpath); in picl_frudata_parse()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | nftw.c | 146 char *fullpath; member 393 base_fullpath = vp->fullpath - vp->home; in walk() 405 vp->fullpath = vp->home + base_fullpath; in walk() 469 if (chdir(vp->fullpath) < 0) { in walk() 528 var.fullpath = dp; in nftw() 531 var.fullpath = var.home; in nftw()
|
/titanic_41/usr/src/cmd/csh/ |
H A D | sh.dir.c | 173 tchar *fullpath; in dfollow() local 253 fullpath = strspl(*pv, slashcp); in dfollow() 254 if (chdir_(fullpath) >= 0) { in dfollow() 257 cp = savestr(fullpath); in dfollow() 259 xfree(fullpath); in dfollow()
|
/titanic_41/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_common.c | 955 char *devpath, *fullpath; in disk_status() local 970 if (nvlist_lookup_string(in_nvl, "path", &fullpath) == 0) { in disk_status() 987 if ((fullpath = topo_mod_alloc(mod, pathlen)) == NULL) in disk_status() 990 (void) snprintf(fullpath, pathlen, "/devices%s%s", devpath, in disk_status() 996 if ((dsp = disk_status_open(fullpath, &err)) == NULL) { in disk_status() 998 topo_mod_free(mod, fullpath, pathlen); in disk_status() 1004 topo_mod_free(mod, fullpath, pathlen); in disk_status()
|
/titanic_41/usr/src/cmd/lp/cmd/lpadmin/ |
H A D | do_printer.c | 68 static char *fullpath(); 486 prbufp->interface = fullpath(i); 520 prbufp->ppd = fullpath(n_opt); 653 static char *fullpath (str) in fullpath() function
|
/titanic_41/usr/src/uts/common/os/ |
H A D | devid_cache.c | 516 char *path, *fullpath; in e_devid_cache_register_cmn() local 538 fullpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in e_devid_cache_register_cmn() 539 (void) ddi_pathname(dip, fullpath); in e_devid_cache_register_cmn() 540 pathlen = strlen(fullpath) + 1; in e_devid_cache_register_cmn() 542 bcopy(fullpath, path, pathlen); in e_devid_cache_register_cmn() 543 kmem_free(fullpath, MAXPATHLEN); in e_devid_cache_register_cmn()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | consconfig_dacf.c | 359 char *buf = NULL, *fullpath; in i_consconfig_createvp() local 362 fullpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in i_consconfig_createvp() 369 kmem_free(fullpath, MAXPATHLEN); in i_consconfig_createvp() 372 (void) snprintf(fullpath, MAXPATHLEN, "/devices%s", buf); in i_consconfig_createvp() 376 (void) snprintf(fullpath, MAXPATHLEN, "/devices%s", path); in i_consconfig_createvp() 379 DPRINTF(DPRINT_L0, "lookupname(%s)\n", fullpath); in i_consconfig_createvp() 380 error = lookupname(fullpath, UIO_SYSSPACE, FOLLOW, NULLVPP, &vp); in i_consconfig_createvp() 381 kmem_free(fullpath, MAXPATHLEN); in i_consconfig_createvp()
|
/titanic_41/usr/src/lib/libzfs/common/ |
H A D | libzfs_diff.c | 488 char fullpath[MAXPATHLEN]; in find_shares_object() local 491 (void) strlcpy(fullpath, di->dsmnt, MAXPATHLEN); in find_shares_object() 492 (void) strlcat(fullpath, ZDIFF_SHARESDIR, MAXPATHLEN); in find_shares_object() 494 if (stat64(fullpath, &sb) != 0) { in find_shares_object() 496 dgettext(TEXT_DOMAIN, "Cannot stat %s"), fullpath); in find_shares_object()
|
/titanic_41/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 1077 char *fullpath = NULL; in pci_cfg_creat_cb() local 1109 &fullpath); in pci_cfg_creat_cb() 1152 pathinfo = pci_cfg_info_data(fullpath); in pci_cfg_creat_cb() 1179 if (fullpath != NULL) in pci_cfg_creat_cb() 1180 free(fullpath); in pci_cfg_creat_cb()
|