/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11Conf.c | 338 dldesc = dlopen(fullpath, RTLD_LAZY); in pkcs11_slot_mapping() 366 fullpath, conf_err); in pkcs11_slot_mapping() 423 "%s. %s Error: %s.", fullpath, in pkcs11_slot_mapping() 481 fullpath); in pkcs11_slot_mapping() 537 fullpath); in pkcs11_slot_mapping() 610 if (fullpath != NULL) { in pkcs11_slot_mapping() 611 free(fullpath); in pkcs11_slot_mapping() 612 fullpath = NULL; in pkcs11_slot_mapping() 741 if (fullpath != NULL) { in pkcs11_slot_mapping() 742 free(fullpath); in pkcs11_slot_mapping() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/zinject/ |
H A D | translate.c | 91 char fullpath[MAXPATHLEN]; in parse_pathname() local 93 compress_slashes(inpath, fullpath); in parse_pathname() 95 if (fullpath[0] != '/') { in parse_pathname() 97 "path\n", fullpath); in parse_pathname() 102 if (strlen(fullpath) >= MAXPATHLEN) { in parse_pathname() 107 if (stat64(fullpath, statbuf) != 0) { in parse_pathname() 109 fullpath, strerror(errno)); in parse_pathname() 128 fullpath); in parse_pathname() 134 "filesystem\n", fullpath); in parse_pathname() 140 "doesn't match path\n", fullpath); in parse_pathname() [all …]
|
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
H A D | zfs_mod.c | 175 (void) strlcpy(fullpath, path, sizeof (fullpath)); in zfs_process_add() 177 fullpath[strlen(fullpath) - 2] = '\0'; in zfs_process_add() 184 (zpool_vdev_online(zhp, fullpath, in zfs_process_add() 218 (void) zpool_vdev_online(zhp, fullpath, in zfs_process_add() 235 (void) zpool_vdev_online(zhp, fullpath, in zfs_process_add() 418 char *fullpath; in devid_iter() local 427 fullpath = alloca(len); in devid_iter() 429 if ((fd = open(fullpath, O_RDONLY)) < 0) in devid_iter() 565 char *path, fullpath[MAXPATHLEN]; in zfsdle_vdev_online() local 585 (void) strlcpy(fullpath, path, sizeof (fullpath)); in zfsdle_vdev_online() [all …]
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | util.c | 143 char *fullpath = NULL; in get_fullpath() local 156 fullpath = (char *)malloc(len); in get_fullpath() 157 if (fullpath != NULL) in get_fullpath() 158 (void) snprintf(fullpath, len, "%s/%s", in get_fullpath() 164 fullpath = (char *)strdup(filepath); in get_fullpath() 166 fullpath = (char *)strdup(dir); in get_fullpath() 169 return (fullpath); in get_fullpath()
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | devtree_device_disco.c | 46 char fullpath[MAXPATHLEN]; in get_minor() local 270 (void) snprintf(fullpath, sizeof (fullpath), "%s%s", in get_attached_devices_info() 289 fullpath); in get_attached_devices_info() 296 fullpath); in get_attached_devices_info() 356 fullpath); in get_attached_devices_info() 364 fullpath); in get_attached_devices_info() 458 (void) snprintf(fullpath, sizeof (fullpath), "%s%s%s", in get_attached_devices_info() 461 OSDeviceName, fullpath, in get_attached_devices_info() 497 fullpath, size); in get_attached_devices_info() 545 " %s.", fullpath); in get_attached_devices_info() [all …]
|
/illumos-gate/usr/src/cmd/swap/ |
H A D | swap.c | 376 char fullpath[MAXPATHLEN+1]; in list() local 439 (void) snprintf(fullpath, sizeof (fullpath), in list() 442 (void) snprintf(fullpath, sizeof (fullpath), in list() 444 if (stat64(fullpath, &statbuf) < 0) in list() 450 fullpath); in list() 455 fullpath, in list() 459 (void) printf(gettext("%-20s - "), fullpath); in list()
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_mnt.c | 287 char fullpath[MAXPATHLEN+1]; in load_mnttab() local 308 (void) snprintf(fullpath, sizeof (fullpath), "/dev/%s", in load_mnttab() 311 (void) strlcpy(fullpath, swapent->ste_path, in load_mnttab() 312 sizeof (fullpath)); in load_mnttab() 315 currp->special = strdup(fullpath); in load_mnttab()
|
/illumos-gate/usr/src/cmd/ahciem/ |
H A D | ahciem.c | 156 char *driver, *mpath, *fullpath; in ahciem_devinfo() local 188 if (asprintf(&fullpath, "/devices/%s", mpath) == -1) { in ahciem_devinfo() 193 if ((fd = open(fullpath, O_RDWR)) < 0) { in ahciem_devinfo() 194 warn("failed to open ahci%d devctl path %s", inst, fullpath); in ahciem_devinfo() 235 free(fullpath); in ahciem_devinfo()
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | boot_plat.c | 252 static char *fullpath; in openfile() local 267 fullpath = (char *)kmem_alloc(MAXPATHLEN, 0); in openfile() 271 (void) strcpy(fullpath, filename); in openfile() 272 fd = boot_open(fullpath, NULL); in openfile() 276 fd = open_platform_file(filename, boot_open, NULL, fullpath); in openfile() 283 (void) strcpy(filename, fullpath); in openfile()
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | kw.c | 72 static char *fullpath; in kw_init() local 89 if (fullpath) in kw_init() 90 FREE(fullpath); in kw_init() 91 fullpath = STRDUP(fn_s(fnp)); in kw_init() 92 Keywords = lut_add(Keywords, "file", fullpath); in kw_init()
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 1145 free(fullpath); in OpenSSL_FindCert() 1177 free(fullpath); in OpenSSL_FindCert() 1237 free(fullpath); in OpenSSL_StoreCert() 1339 free(fullpath); in OpenSSL_DeleteCert() 3030 free(fullpath); in OpenSSL_FindKey() 3602 free(fullpath); in OpenSSL_ExportPK12() 3647 if (fullpath) in OpenSSL_ExportPK12() 3648 free(fullpath); in OpenSSL_ExportPK12() 4657 free(fullpath); in OpenSSL_CreateSymKey() 4742 free(fullpath); in OpenSSL_CreateSymKey() [all …]
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 157 pkgfindrealsadmdir(char fullpath[PATH_MAX], const char *root, in pkgfindrealsadmdir() 190 if (realpath(temp, fullpath) == NULL) { in pkgfindrealsadmdir() 195 if (strcmp(fullpath, SADM_DIR) == 0) in pkgfindrealsadmdir() 198 if (testdoor(fullpath) == 0) in pkgfindrealsadmdir() 217 if (strncmp(xmnt.mnt_mountp, fullpath, len) == 0 && in pkgfindrealsadmdir() 218 (len == 1 || fullpath[len] == '/' || in pkgfindrealsadmdir() 219 fullpath[len] == '\0')) { in pkgfindrealsadmdir() 230 &fullpath[max]) >= PATH_MAX) { in pkgfindrealsadmdir() 240 *sadmdir = fullpath; in pkgfindrealsadmdir()
|
/illumos-gate/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 924 char fullpath[MAXPATHLEN]; /* full path of file */ in path_open() local 972 (void) strncpy(fullpath, path, MAXPATHLEN); in path_open() 973 (void) strncat(fullpath, "/", MAXPATHLEN); in path_open() 976 (void) strncpy(fullpath, "./", MAXPATHLEN); in path_open() 978 (void) strncat(fullpath, fname, MAXPATHLEN); in path_open() 981 if (stat(fullpath, &st) >= 0) { in path_open() 988 prog, fname, fullpath); in path_open() 990 return (open(fullpath, flags, mode)); in path_open()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nftw.c | 144 char *fullpath; member 391 base_fullpath = vp->fullpath - vp->home; in walk() 403 vp->fullpath = vp->home + base_fullpath; in walk() 467 if (chdir(vp->fullpath) < 0) { in walk() 526 var.fullpath = dp; in nftw() 529 var.fullpath = var.home; in nftw()
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.dir.c | 178 tchar *fullpath; in dfollow() local 258 fullpath = strspl(*pv, slashcp); in dfollow() 259 if (chdir_(fullpath) >= 0) { in dfollow() 262 cp = savestr(fullpath); in dfollow() 264 xfree(fullpath); in dfollow()
|
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/ |
H A D | do_printer.c | 64 static char *fullpath(); 471 prbufp->interface = fullpath(i); in configure_printer() 502 prbufp->ppd = fullpath(n_opt); in configure_printer() 622 fullpath(char *str) in fullpath() function
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_common.c | 1151 char *devpath, *fullpath; in disk_status() local 1166 if (nvlist_lookup_string(in_nvl, "path", &fullpath) == 0) { in disk_status() 1184 if ((fullpath = topo_mod_alloc(mod, pathlen)) == NULL) in disk_status() 1187 (void) snprintf(fullpath, pathlen, "/devices%s%s", devpath, in disk_status() 1193 if ((dsp = disk_status_open(fullpath, &err)) == NULL) { in disk_status() 1195 topo_mod_free(mod, fullpath, pathlen); in disk_status() 1201 topo_mod_free(mod, fullpath, pathlen); in disk_status()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | devid_cache.c | 517 char *path, *fullpath; in e_devid_cache_register_cmn() local 539 fullpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in e_devid_cache_register_cmn() 540 (void) ddi_pathname(dip, fullpath); in e_devid_cache_register_cmn() 541 pathlen = strlen(fullpath) + 1; in e_devid_cache_register_cmn() 543 bcopy(fullpath, path, pathlen); in e_devid_cache_register_cmn() 544 kmem_free(fullpath, MAXPATHLEN); in e_devid_cache_register_cmn()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | consconfig_dacf.c | 366 char *buf = NULL, *fullpath; in i_consconfig_createvp() local 369 fullpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in i_consconfig_createvp() 376 kmem_free(fullpath, MAXPATHLEN); in i_consconfig_createvp() 379 (void) snprintf(fullpath, MAXPATHLEN, "/devices%s", buf); in i_consconfig_createvp() 383 (void) snprintf(fullpath, MAXPATHLEN, "/devices%s", path); in i_consconfig_createvp() 386 DPRINTF(DPRINT_L0, "lookupname(%s)\n", fullpath); in i_consconfig_createvp() 387 error = lookupname(fullpath, UIO_SYSSPACE, FOLLOW, NULLVPP, &vp); in i_consconfig_createvp() 388 kmem_free(fullpath, MAXPATHLEN); in i_consconfig_createvp()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_diff.c | 490 char fullpath[MAXPATHLEN]; in find_shares_object() local 493 (void) strlcpy(fullpath, di->dsmnt, MAXPATHLEN); in find_shares_object() 494 (void) strlcat(fullpath, ZDIFF_SHARESDIR, MAXPATHLEN); in find_shares_object() 496 if (stat64(fullpath, &sb) != 0) { in find_shares_object() 498 dgettext(TEXT_DOMAIN, "Cannot stat %s"), fullpath); in find_shares_object()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 1086 char *fullpath = NULL; in pci_cfg_creat_cb() local 1118 &fullpath); in pci_cfg_creat_cb() 1161 pathinfo = pci_cfg_info_data(fullpath); in pci_cfg_creat_cb() 1188 if (fullpath != NULL) in pci_cfg_creat_cb() 1189 free(fullpath); in pci_cfg_creat_cb()
|
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | nameSyntaxYacc.y | 71 fullpath : recordpath
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_tar3.c | 1652 char fullpath[TLM_MAX_PATH_NAME]; in backup_dirv3() local 1683 (void) snprintf(fullpath, TLM_MAX_PATH_NAME, "%s%s", in backup_dirv3() 1686 (void) snprintf(fullpath, TLM_MAX_PATH_NAME, "%s/%s", in backup_dirv3() 1690 (void) (tm_tar_ops.tm_putdir)(fullpath, bpp->bp_tlmacl, in backup_dirv3() 1726 char fullpath[TLM_MAX_PATH_NAME]; in backup_filev3() local 1762 (void) snprintf(fullpath, TLM_MAX_PATH_NAME, "%s%s", in backup_filev3() 1765 (void) snprintf(fullpath, TLM_MAX_PATH_NAME, "%s/%s", in backup_filev3() 1769 rv = (tm_tar_ops.tm_putfile)(fullpath, ent, pnp->tn_path, in backup_filev3()
|