/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/ |
H A D | Utility.java | 38 loadLibrary(String paths[], String name, boolean debug) in loadLibrary() argument 41 for (String p : paths) { in loadLibrary() 65 String[] paths = path.split(":"); in loadLibrary() local 71 String[] npaths = new String[paths.length * 2]; in loadLibrary() 72 for (int i = 0; i < paths.length; i++) { in loadLibrary() 73 npaths[i] = root + "/" + paths[i]; in loadLibrary() 74 npaths[i + paths.length] = paths[i]; in loadLibrary() 76 paths = npaths; in loadLibrary() 80 loadLibrary(paths, name, debug); in loadLibrary()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_finddev.c | 51 char **paths; member 118 handle->paths = NULL; in finddev_readdir_alt() 130 handle->paths = calloc(n, sizeof (char *)); in finddev_readdir_alt() 131 if (handle->paths == NULL) { in finddev_readdir_alt() 151 handle->paths[n] = strdup(dp->d_name); in finddev_readdir_alt() 152 if (handle->paths[n] == NULL) { in finddev_readdir_alt() 193 handle->paths = NULL; in finddev_readdir_devfs() 216 handle->paths = calloc(n, sizeof (char *)); in finddev_readdir_devfs() 217 if (handle->paths == NULL) { in finddev_readdir_devfs() 224 handle->paths[n] = strdup(p); in finddev_readdir_devfs() [all …]
|
H A D | devfsinfo.c | 318 struct devfs_prom_path **paths) in devfs_get_all_prom_names() argument 339 *paths = NULL; in devfs_get_all_prom_names() 345 devfs_free_all_prom_names(*paths); in devfs_get_all_prom_names() 350 *paths = new; in devfs_get_all_prom_names() 358 devfs_free_all_prom_names(*paths); in devfs_get_all_prom_names() 367 devfs_free_all_prom_names(*paths); in devfs_get_all_prom_names() 377 devfs_free_all_prom_names(struct devfs_prom_path *paths) in devfs_free_all_prom_names() argument 381 if (paths == NULL) in devfs_free_all_prom_names() 384 devfs_free_all_prom_names(paths->next); in devfs_free_all_prom_names() 386 if (paths->obp_path != NULL) in devfs_free_all_prom_names() [all …]
|
/illumos-gate/usr/src/cmd/abi/appcert/scripts/ |
H A D | abi_index.pl | 197 my (%list, $paths, $path, $cnt); 204 $paths = ''; 207 $paths .= ' ' if ($paths ne ''); 217 $paths .= "'$path'"; 229 open($file_fh, "/usr/bin/file $paths 2>&1 |") || die "$!\n"; 245 $paths .= " $paths"; 253 open($pvs_fh, "/usr/bin/pvs -dn $paths 2>&1 |") || die "$!\n";
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | path.c | 99 descriptor_t **paths; in path_get_descriptor_by_name() local 103 paths = cache_get_descriptors(DM_PATH, errp); in path_get_descriptor_by_name() 108 for (i = 0; paths[i]; i++) { in path_get_descriptor_by_name() 109 if (libdiskmgt_str_eq(name, paths[i]->p.path->name)) { in path_get_descriptor_by_name() 110 path = paths[i]; in path_get_descriptor_by_name() 113 cache_free_descriptor(paths[i]); in path_get_descriptor_by_name() 116 free(paths); in path_get_descriptor_by_name() 155 if (cp->paths != NULL) { in path_make_descriptors() 158 for (i = 0; cp->paths[i]; i++) { in path_make_descriptors() 159 cache_load_desc(DM_PATH, cp->paths[i], NULL, NULL, &error); in path_make_descriptors()
|
H A D | controller.c | 272 descriptor_t **paths; in get_assoc_paths() local 275 pp = desc->p.controller->paths; in get_assoc_paths() 284 paths = (descriptor_t **)calloc(cnt + 1, sizeof (descriptor_t *)); in get_assoc_paths() 285 if (paths == NULL) { in get_assoc_paths() 296 paths[i] = cache_get_desc(DM_PATH, pp[i], NULL, NULL, errp); in get_assoc_paths() 298 cache_free_descriptors(paths); in get_assoc_paths() 303 paths[i] = NULL; in get_assoc_paths() 306 return (paths); in get_assoc_paths()
|
H A D | cache.c | 206 if (cp->paths != NULL) { in cache_free_controller() 209 for (i = 0; cp->paths[i]; i++) { in cache_free_controller() 211 cache_free_path(cp->paths[i]); in cache_free_controller() 213 free(cp->paths); in cache_free_controller() 271 free(dp->paths); in cache_free_disk() 557 if (dp->paths != NULL) { in del_drive() 558 for (i = 0; dp->paths[i]; i++) { in del_drive() 559 clr_path_disk_ptr(dp->paths[i], dp); in del_drive() 993 pp = newctrlp->paths; in update_desc_pathp()
|
H A D | findevs.c | 738 if (add_ptr2array(pp, (void ***)&dp->paths) != 0) { in add_disk2path() 898 if (cp->paths != NULL && cp->paths[0] != NULL) { in remove_controller() 922 pp = cp->paths; in clean_paths() 978 diskp->paths = NULL; in create_disk() 1627 if (cp->paths != NULL) { in new_path() 1630 for (i = 0; cp->paths[i]; i++) { in new_path() 1631 if (libdiskmgt_str_eq(devpath, cp->paths[i]->name)) { in new_path() 1632 pp = cp->paths[i]; in new_path() 1669 if (add_ptr2array(pp, (void ***)&cp->paths) != 0) { in new_path()
|
H A D | drive.c | 824 descriptor_t **paths; in get_assoc_paths() local 827 pp = dp->p.disk->paths; in get_assoc_paths() 837 paths = (descriptor_t **)calloc(cnt + 1, sizeof (descriptor_t *)); in get_assoc_paths() 838 if (paths == NULL) { in get_assoc_paths() 850 paths[i] = cache_get_desc(DM_PATH, pp[i], dp->p.disk->device_id, in get_assoc_paths() 853 cache_free_descriptors(paths); in get_assoc_paths() 858 paths[i] = NULL; in get_assoc_paths() 861 return (paths); in get_assoc_paths()
|
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | Ancestor.cc | 45 paths = (char **)malloc(sizeof (char *) in Ancestor() 52 if (paths != NULL) { in ~Ancestor() 54 free(paths[i]); in ~Ancestor() 57 free(paths); in ~Ancestor() 89 paths = (char **)realloc(offsets, in addInstance() 94 paths[numInstances++] = strdup(path); in addInstance() 134 return (paths[num]); in getPath() 136 return (paths[numInstances]); in getPath()
|
/illumos-gate/usr/src/test/os-tests/tests/libtopo/ |
H A D | digraph-test.c | 139 topo_path_t **paths; in test_paths() local 149 if (topo_digraph_paths(thp, tdg, vertices[0], vertices[4], &paths, in test_paths() 159 topo_path_destroy(thp, paths[i]); in test_paths() 161 topo_hdl_free(thp, paths, np * sizeof (topo_path_t *)); in test_paths() 164 if (topo_digraph_paths(thp, tdg, vertices[6], vertices[4], &paths, in test_paths() 174 topo_path_destroy(thp, paths[i]); in test_paths() 176 topo_hdl_free(thp, paths, np * sizeof (topo_path_t *)); in test_paths() 179 if (topo_digraph_paths(thp, tdg, vertices[5], vertices[1], &paths, in test_paths() 193 topo_path_destroy(thp, paths[i]); in test_paths() 195 topo_hdl_free(thp, paths, np * sizeof (topo_path_t *)); in test_paths()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | main.c | 472 printf("%s:", conf.manpath.paths[i]); in main() 473 printf("%s\n", conf.manpath.paths[i]); in main() 735 fs_lookup(const struct manpaths *paths, size_t ipath, in fs_lookup() argument 755 paths->paths[ipath], sec, name, sec); in fs_lookup() 761 paths->paths[ipath], sec, name); in fs_lookup() 770 paths->paths[ipath], sec, arch, name, sec); in fs_lookup() 776 cp = file = mandoc_malloc(strlen(paths->paths[ipath]) * 2 + in fs_lookup() 779 glob_esc(&cp, paths->paths[ipath], slman); in fs_lookup() 796 cp = file = mandoc_malloc(strlen(paths->paths[ipath]) * 2 + in fs_lookup() 800 glob_esc(&cp, paths->paths[ipath], slman); in fs_lookup() [all …]
|
H A D | mansearch.c | 85 const struct manpaths *paths, in mansearch() argument 141 for (i = 0; i < paths->sz; i++) { in mansearch() 142 if (chdir_status && paths->paths[i][0] != '/') { in mansearch() 144 warnx("%s: getcwd: %s", paths->paths[i], buf); in mansearch() 151 if (chdir(paths->paths[i]) == -1) { in mansearch() 152 warn("%s", paths->paths[i]); in mansearch() 159 warn("%s/%s", paths->paths[i], MANDOC_DB); in mansearch() 189 paths->paths[i], page->file + 1); in mansearch() 195 page->file + 1, paths->paths[i]); in mansearch()
|
H A D | manpath.c | 131 if (strcmp(dirs->paths[i], dir) == 0) in manpath_add() 137 dirs->paths = mandoc_reallocarray(dirs->paths, in manpath_add() 138 dirs->sz + 1, sizeof(*dirs->paths)); in manpath_add() 139 dirs->paths[dirs->sz++] = mandoc_strdup(cp); in manpath_add() 154 free(conf->manpath.paths[i]); in manconf_free() 156 free(conf->manpath.paths); in manconf_free()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | asppp2pppd | 381 local($paths, $options, $defref) = @_; 400 if defined($paths{$peer}); 404 $paths{$peer} = $options; 439 local($words,$word,$prevword,$i,$errors,%defaults,%ifconfig,%paths); 465 savepath(\%paths, $options, \%defaults); 471 savepath(\%paths, $options, \%defaults); 504 savepath(\%paths, $options, \%defaults); 505 die "No paths defined for aspppd.\n" if 0+(keys %paths) == 0; 508 nof 0+(keys %paths), "path", " and "; 512 ( \%ifconfig, \%paths ); [all …]
|
/illumos-gate/usr/src/lib/libdevid/ |
H A D | deviceid.c | 248 char *paths = NULL; in devid_deviceid_to_nmlist() local 279 if ((paths = (char *)malloc(lens)) == NULL) in devid_deviceid_to_nmlist() 281 if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, paths) != 0) { in devid_deviceid_to_nmlist() 283 free(paths); in devid_deviceid_to_nmlist() 284 paths = NULL; in devid_deviceid_to_nmlist() 311 for (path = paths; *path; path += strlen(path) + 1) { in devid_deviceid_to_nmlist() 364 if (paths) in devid_deviceid_to_nmlist() 365 free(paths); in devid_deviceid_to_nmlist()
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_path.c | 56 ibt_path_info_t *paths; member 87 ibt_path_flags_t flags, uint8_t max_paths, ibt_path_info_t *paths, 394 ibt_path_attr_t *attrp, uint8_t max_paths, ibt_path_info_t *paths, in ibt_get_paths() argument 399 ASSERT(paths != NULL); in ibt_get_paths() 404 if (paths == NULL) { in ibt_get_paths() 413 if (ibcm_path_cache_check(flags, attrp, max_paths, paths, in ibt_get_paths() 417 retval = ibcm_handle_get_path(attrp, flags, max_paths, paths, in ibt_get_paths() 421 ibcm_path_cache_add(flags, attrp, max_paths, paths); in ibt_get_paths() 428 uint8_t max_paths, ibt_path_info_t *paths, uint8_t *num_path_p, in ibcm_handle_get_path() argument 475 path_tq->paths = paths; in ibcm_handle_get_path() [all …]
|
/illumos-gate/usr/src/tools/findunref/ |
H A D | findunref.c | 54 char **paths; member 510 newpaths = realloc(pnsetp->paths, sizeof (char *) * maxpaths); in pnset_add() 513 pnsetp->paths = newpaths; in pnset_add() 517 pnsetp->paths[pnsetp->npath] = strdup(path); in pnset_add() 518 if (pnsetp->paths[pnsetp->npath] == NULL) in pnset_add() 534 if (fnmatch(pnsetp->paths[i], path, 0) == 0) in pnset_check() 547 free(pnsetp->paths[pnsetp->npath]); in pnset_empty() 549 free(pnsetp->paths); in pnset_empty()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | devid_cache.c | 882 char *path, **paths; in e_devid_cache_to_devt_list() local 902 paths = kmem_zalloc(nalloced * sizeof (char *), KM_SLEEP); in e_devid_cache_to_devt_list() 907 &ndevis, devis, &npaths, paths); in e_devid_cache_to_devt_list() 913 kmem_free(paths, nalloced * sizeof (char *)); in e_devid_cache_to_devt_list() 919 path = i_ddi_strdup(paths[i], KM_SLEEP); in e_devid_cache_to_devt_list() 920 paths[i] = path; in e_devid_cache_to_devt_list() 926 kmem_free(paths, nalloced * sizeof (char *)); in e_devid_cache_to_devt_list() 947 DEVID_LOG_LOOKUP((CE_CONT, "lookup %s\n", paths[i])); in e_devid_cache_to_devt_list() 948 devi = e_ddi_hold_devi_by_path(paths[i], 0); in e_devid_cache_to_devt_list() 951 devid, paths[i])); in e_devid_cache_to_devt_list() [all …]
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | git-pbchk.py | 166 def git_file_list(parent, paths=None): argument 173 (parent, ' '.join(paths))) 196 def gen_files(root, parent, paths, exclude, filter=None): argument 208 for abspath in git_file_list(parent, paths): 225 def gen_links(root, parent, paths, exclude): argument 230 return gen_files(root, parent, paths, exclude, lambda x: os.path.islink(x)) 232 def gen_none(root, parent, paths, exclude): argument 490 def run_checks(root, parent, checklist, paths=''): argument 507 result = cmd(root, parent, gen(root, parent, paths, exclude),
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/zfs_list/ |
H A D | zfs_list_004_neg.ksh | 52 paths="$TESTPOOL/NONEXISTFS $TESTPOOL/$TESTFS/NONEXISTFS \ 57 for fs in $paths ; do
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | mc.c | 71 char* paths[5]; in mcfind() local 91 paths[i++] = p; in mcfind() 92 paths[i++] = "share/lib/locale/%l/%C/%N"; in mcfind() 93 paths[i++] = "share/locale/%l/%C/%N"; in mcfind() 94 paths[i++] = "lib/locale/%l/%C/%N"; in mcfind() 95 paths[i] = 0; in mcfind() 97 for (i = 0; p = paths[i]; i += next) in mcfind()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_digraph.c | 636 topo_vertex_t *to, topo_path_t ***paths, uint_t *npaths) in topo_digraph_paths() argument 683 *paths = topo_hdl_zalloc(thp, (*npaths) * sizeof (topo_path_t *)); in topo_digraph_paths() 684 if (*paths == NULL) { in topo_digraph_paths() 692 *((*paths) + i) = path->dgp_path; in topo_digraph_paths() 772 nvlist_t **paths, *auth; in path_fmri_nvl2str() local 811 (void) nvlist_lookup_nvlist_array(in, FM_FMRI_PATH, &paths, in path_fmri_nvl2str() 824 (void) nvlist_lookup_string(paths[i], FM_FMRI_PATH_NAME, in path_fmri_nvl2str() 826 (void) nvlist_lookup_uint64(paths[i], FM_FMRI_PATH_INST, in path_fmri_nvl2str()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 1252 char **paths; in ses_create_disk() local 1293 TOPO_PROP_SAS_ADDR, &paths, &nsas, &err) != 0) in ses_create_disk() 1299 ret = disk_declare_addr(mod, pnode, &sdp->sed_devs, paths[s], in ses_create_disk() 1330 if (scsi_wwnstr_to_wwn(paths[i], &wwn) != in ses_create_disk() 1353 topo_mod_free(mod, paths[s], strlen(paths[s]) + 1); in ses_create_disk() 1354 topo_mod_free(mod, paths, nsas * sizeof (char *)); in ses_create_disk() 1368 char **paths; in ses_add_bay_props() local 1388 if ((paths = topo_mod_zalloc(mod, all_phys * sizeof (char *))) == NULL) in ses_add_bay_props() 1406 if ((paths[i] = topo_mod_alloc(mod, len)) == NULL) in ses_add_bay_props() 1409 (void) snprintf(paths[i], len, "%016llx", addr); in ses_add_bay_props() [all …]
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libshare_zfs.c | 1019 sa_init_selective_arg_t *sharearg, char ***paths, size_t *paths_len) in sa_get_one_zfs_share() argument 1034 *paths = calloc(*paths_len, sizeof (char *)); in sa_get_one_zfs_share() 1042 if ((*paths)[free_idx] != NULL) in sa_get_one_zfs_share() 1043 free((*paths)[free_idx]); in sa_get_one_zfs_share() 1045 free(*paths); in sa_get_one_zfs_share() 1046 *paths = NULL; in sa_get_one_zfs_share() 1050 (*paths)[i] = malloc(sizeof (char) * ZFS_MAXPROPLEN); in sa_get_one_zfs_share() 1051 err |= sa_get_zfs_share_common(handle, fs_handle, (*paths)[i], in sa_get_one_zfs_share()
|