| /onnv-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 …]
|
| /onnv-gate/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()
|
| /onnv-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 …]
|
| /onnv-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
| H A D | pkcs11Conf.c | 276 kcfd_door_call(char *fullpath, boolean_t fips140, CK_RV *rv) in kcfd_door_call() argument 335 (void) strlcpy(kda->da_u.filename, fullpath, in kcfd_door_call() 336 strlen(fullpath) + 1); in kcfd_door_call() 447 char *isa, *fullpath = NULL, *dl_error; in pkcs11_slot_mapping() local 509 if ((fullpath = (char *)malloc(len)) == NULL) { in pkcs11_slot_mapping() 519 (void) snprintf(fullpath, len, "%s%s%s", in pkcs11_slot_mapping() 521 } else if ((fullpath = strdup(phead->puent->name)) == 0) { in pkcs11_slot_mapping() 538 dldesc = dlopen(fullpath, RTLD_LAZY); in pkcs11_slot_mapping() 549 fullpath, dl_error != NULL ? dl_error : "Unknown", in pkcs11_slot_mapping() 566 fullpath, conf_err); in pkcs11_slot_mapping() [all …]
|
| /onnv-gate/usr/src/cmd/syseventd/modules/zfs_mod/ |
| H A D | zfs_mod.c | 154 char rawpath[PATH_MAX], fullpath[PATH_MAX]; in zfs_process_add() local 167 (void) strlcpy(fullpath, path, sizeof (fullpath)); in zfs_process_add() 169 fullpath[strlen(fullpath) - 2] = '\0'; in zfs_process_add() 175 if (zpool_vdev_online(zhp, fullpath, in zfs_process_add() 187 (void) zpool_vdev_online(zhp, fullpath, ZFS_ONLINE_FORCEFAULT, in zfs_process_add() 207 (void) zpool_vdev_online(zhp, fullpath, in zfs_process_add() 217 (void) zpool_vdev_online(zhp, fullpath, in zfs_process_add() 251 (void) zpool_vdev_attach(zhp, fullpath, path, nvroot, B_TRUE); in zfs_process_add() 400 char *fullpath; in devid_iter() local 409 fullpath = alloca(len); in devid_iter() [all …]
|
| /onnv-gate/usr/src/cmd/zinject/ |
| H A D | translate.c | 95 char fullpath[MAXPATHLEN]; in parse_pathname() local 97 compress_slashes(inpath, fullpath); in parse_pathname() 99 if (fullpath[0] != '/') { in parse_pathname() 101 "path\n", fullpath); in parse_pathname() 106 if (strlen(fullpath) >= MAXPATHLEN) { in parse_pathname() 111 if (stat64(fullpath, statbuf) != 0) { in parse_pathname() 113 fullpath, strerror(errno)); in parse_pathname() 132 fullpath); in parse_pathname() 138 "filesystem\n", fullpath); in parse_pathname() 142 if (strncmp(fullpath, mp.mnt_mountp, strlen(mp.mnt_mountp)) != 0) { in parse_pathname() [all …]
|
| /onnv-gate/usr/src/lib/sun_sas/common/ |
| H A D | devtree_device_disco.c | 44 char fullpath[MAXPATHLEN]; in get_minor() local 56 (void) snprintf(fullpath, MAXPATHLEN, "%s%s%s", DEVICES_DIR, in get_minor() 60 if ((fd = open(fullpath, O_RDONLY)) == -1) { in get_minor() 228 char fullpath[MAXPATHLEN+1]; in get_attached_devices_info() local 267 (void) snprintf(fullpath, sizeof (fullpath), "%s%s", in get_attached_devices_info() 286 fullpath); in get_attached_devices_info() 293 fullpath); in get_attached_devices_info() 353 fullpath); in get_attached_devices_info() 361 fullpath); in get_attached_devices_info() 391 "device %s.", fullpath); in get_attached_devices_info() [all …]
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/ |
| H A D | TEST | 74 my $fullpath = File::Spec->catfile($dir, $f); 76 _find_tests($fullpath) if -d $fullpath; 77 $fullpath = VMS::Filespec::unixify($fullpath) if $^O eq 'VMS'; 78 push @ARGV, $fullpath if $f =~ /\.t$/;
|
| /onnv-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
| H A D | openssl_spi.c | 1037 char *fullpath = NULL; in OpenSSL_FindCert() local 1065 fullpath = get_fullpath(dirpath, filename); in OpenSSL_FindCert() 1066 if (fullpath == NULL) in OpenSSL_FindCert() 1080 if (isdir(fullpath)) { in OpenSSL_FindCert() 1086 if ((dirp = opendir(fullpath)) == NULL) { in OpenSSL_FindCert() 1098 fname = get_fullpath(fullpath, (char *)&dp->d_name); in OpenSSL_FindCert() 1156 fullpath, &certlist, &loaded_certs); in OpenSSL_FindCert() 1158 free(fullpath); in OpenSSL_FindCert() 1174 strdup(fullpath); in OpenSSL_FindCert() 1190 free(fullpath); in OpenSSL_FindCert() [all …]
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/utils/ |
| H A D | h2xs.PL | 765 my ($name, %fullpath, %prefix, %seen_define, %prefixless, %const_names); 800 my $fullpath = $path_h; 802 $fullpath{$path_h} = $fullpath; 818 $fullpath{$path_h} = $fullpath; 974 if ($fullpath{$filename} =~ /,/) {
|
| /onnv-gate/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
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|