Home
last modified time | relevance | path

Searched refs:npaths (Results 1 – 18 of 18) sorted by relevance

/illumos-gate/usr/src/cmd/svr4pkg/pkgchk/
H A Dmain.c104 short npaths; variable
191 pathlist[npaths] = strtok(optarg, " , "); in main()
192 if (pathlist[npaths++] == NULL) { in main()
197 if (npaths++ >= MAXPATHS) { in main()
302 if ((ppathlist[npaths] == NULL) || in main()
303 (ppathlist[npaths][0] == '-')) { in main()
307 npaths++; in main()
309 if (npaths++ >= MAXPATHS) { in main()
574 pathlist[npaths] = qstrdup(pathname); in setpathlist()
575 if (npaths++ > MAXPATHS) { in setpathlist()
[all …]
H A Dcheckmap.c51 extern short npaths;
379 if (!npaths) in selpath()
382 for (n = 0; n < npaths; n++) { in selpath()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_finddev.c49 int npaths; member
116 handle->npaths = 0; in finddev_readdir_alt()
129 handle->npaths = n; in finddev_readdir_alt()
143 if (n == handle->npaths) { in finddev_readdir_alt()
191 handle->npaths = 0; in finddev_readdir_devfs()
215 handle->npaths = n; in finddev_readdir_devfs()
322 for (i = 0; i < handle->npaths; i++) { in finddev_close()
336 if (handle->curpath < handle->npaths) { in finddev_next()
H A Ddevfsmap.c1300 while (npaths--) { in add_to_phci_list()
1346 uint_t npaths; in vhci_to_phci() local
1360 ioc.ret_elem = &npaths; in vhci_to_phci()
1362 npaths == 0) { in vhci_to_phci()
1371 ioc.buf_elem = npaths; in vhci_to_phci()
1372 ioc.ret_elem = &npaths; in vhci_to_phci()
1377 npaths == 0) { in vhci_to_phci()
1452 npaths--; in build_pathlist()
1466 return (npaths); in build_pathlist()
1815 int npaths, i, j; in devfs_install2target() local
[all …]
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DUtility.java71 String[] npaths = new String[paths.length * 2]; in loadLibrary() local
73 npaths[i] = root + "/" + paths[i]; in loadLibrary()
74 npaths[i + paths.length] = paths[i]; in loadLibrary()
76 paths = npaths; in loadLibrary()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsd/
H A Dnfsd.c88 static int dss_init(uint_t npaths, char **pathnames);
787 dss_mkleafdirs(uint_t npaths, char **pathnames) in dss_mkleafdirs() argument
804 for (i = 0; i < npaths; i++) { in dss_mkleafdirs()
845 dss_init(uint_t npaths, char **pathnames) in dss_init() argument
853 if (npaths > 1) { in dss_init()
866 while (j < npaths) { in dss_init()
884 nreal = npaths - nskipped; in dss_init()
894 for (i = 0, j = 0; i < npaths; i++) in dss_init()
899 npaths = nreal; in dss_init()
905 dss_mkleafdirs(npaths, pathnames); in dss_init()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Ddevid_cache.c802 int ndevis, npaths; in e_devid_cache_devi_path_lists() local
809 npaths = 0; in e_devid_cache_devi_path_lists()
858 if (npaths < retmax) in e_devid_cache_devi_path_lists()
859 retpaths[npaths++] = np->nvp_devpath; in e_devid_cache_devi_path_lists()
866 *retnpaths = npaths; in e_devid_cache_devi_path_lists()
888 int ndevis, npaths, nalloced; in e_devid_cache_to_devt_list() local
907 &ndevis, devis, &npaths, paths); in e_devid_cache_to_devt_list()
918 for (i = 0; i < npaths; i++) { in e_devid_cache_to_devt_list()
924 if (ndevis == 0 && npaths == 0) { in e_devid_cache_to_devt_list()
946 for (i = 0; i < npaths; i++) { in e_devid_cache_to_devt_list()
[all …]
H A Dmodctl.c2168 int npaths; in modctl_devreaddir() local
2196 &npaths, &npaths_alloc, 0)) != 0) { in modctl_devreaddir()
2202 for (i = 0; i < npaths; i++) { in modctl_devreaddir()
2216 for (i = 0; i < npaths; i++) { in modctl_devreaddir()
2236 sdev_modctl_readdir_free(dirlist, npaths, npaths_alloc); in modctl_devreaddir()
2249 int npaths; in modctl_devemptydir() local
2264 &npaths, &npaths_alloc, 1)) != 0) { in modctl_devemptydir()
2268 empty = npaths ? 0 : 1; in modctl_devemptydir()
2274 sdev_modctl_readdir_free(dirlist, npaths, npaths_alloc); in modctl_devemptydir()
H A Dsunddi.c7628 ddi_debug_devid_paths(char *msg, int npaths, char **paths) in ddi_debug_devid_paths() argument
7633 for (i = 0; i < npaths; i++) { in ddi_debug_devid_paths()
/illumos-gate/usr/src/lib/libpcsc/common/
H A Dlibpcsc.c351 uint32_t len, ulen, npaths, nalloc, off, i; in SCardListReaders() local
376 npaths = nalloc = 0; in SCardListReaders()
404 if (npaths == nalloc) { in SCardListReaders()
415 readers[npaths] = strdup(ent->fts_path); in SCardListReaders()
416 npaths++; in SCardListReaders()
420 if (npaths == 0) { in SCardListReaders()
456 for (off = 0, i = 0; i < npaths; i++) { in SCardListReaders()
465 for (i = 0; i < npaths; i++) { in SCardListReaders()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_digraph.c536 topo_list_t *curr_path_comps, uint_t *npaths) in visit_vertex() argument
576 (*npaths)++; in visit_vertex()
609 curr_path_comps, npaths) != 0) in visit_vertex()
636 topo_vertex_t *to, topo_path_t ***paths, uint_t *npaths) in topo_digraph_paths() argument
661 *npaths = 0; in topo_digraph_paths()
666 curr_path, &curr_path_comps, npaths); in topo_digraph_paths()
678 if (*npaths == 0) { in topo_digraph_paths()
683 *paths = topo_hdl_zalloc(thp, (*npaths) * sizeof (topo_path_t *)); in topo_digraph_paths()
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c1328 uint_t npaths = 0; in vhci_to_phci() local
1338 ioc.ret_elem = &npaths; in vhci_to_phci()
1340 if (rv || npaths == 0) { in vhci_to_phci()
1349 ioc.buf_elem = npaths; in vhci_to_phci()
1350 ioc.ret_elem = &npaths; in vhci_to_phci()
1351 if ((ioc.ret_buf = calloc(npaths, sizeof (sv_path_info_t))) in vhci_to_phci()
1355 if (rv || npaths == 0) { in vhci_to_phci()
1363 if (ioc.buf_elem < npaths) in vhci_to_phci()
1364 npaths = ioc.buf_elem; in vhci_to_phci()
1375 while (npaths--) { in vhci_to_phci()
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_dataset.c739 jint npaths; in zjni_get_Datasets_dependents() local
752 npaths = (*env)->GetArrayLength(env, paths); in zjni_get_Datasets_dependents()
753 for (i = 0; i < npaths; i++) { in zjni_get_Datasets_dependents()
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_subr.c2686 int npaths = 0; in sdev_modctl_readdir() local
2743 if (npaths == npaths_alloc) { in sdev_modctl_readdir()
2750 npaths * sizeof (char *)); in sdev_modctl_readdir()
2752 (npaths + 1) * sizeof (char *)); in sdev_modctl_readdir()
2759 pathlist[npaths++] = s; in sdev_modctl_readdir()
2780 *npathsp = npaths; in sdev_modctl_readdir()
2787 sdev_modctl_readdir_free(char **pathlist, int npaths, int npaths_alloc) in sdev_modctl_readdir_free() argument
2791 for (i = 0; i < npaths; i++) { in sdev_modctl_readdir_free()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_state.c731 int npaths = 1; in rfs4_ss_init() local
735 rfs4_dss_readstate(nsrv4, npaths, &default_dss_path); in rfs4_ss_init()
795 rfs4_dss_readstate(nfs4_srv_t *nsrv4, int npaths, char **paths) in rfs4_dss_readstate() argument
803 for (i = 0; i < npaths; i++) { in rfs4_dss_readstate()
971 int i, npaths = sip->dss_npaths; in rfs4_ss_clid_write() local
974 for (i = 0; i < npaths; i++) { in rfs4_ss_clid_write()
1754 int i, npaths = sip->dss_npaths; in rfs4_dss_remove_leaf() local
1756 for (i = 0; i < npaths; i++) { in rfs4_dss_remove_leaf()
H A Dnfs4_srv.c10126 int i, size, npaths; in build_symlink() local
10153 npaths = 0; in build_symlink()
10160 npaths++; in build_symlink()
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibdm/
H A Dibdm.c1991 uint_t npaths = 0; in ibdm_get_reachable_ports() local
2100 npaths++; in ibdm_get_reachable_ports()
2103 IBTF_DPRINTF_L4("ibdm", "\tget_reachable_ports: npaths = %d", npaths); in ibdm_get_reachable_ports()
2104 return (npaths); in ibdm_get_reachable_ports()
4503 uint8_t ii, npaths; in ibdm_create_gid_info() local
4511 npaths = 1; in ibdm_create_gid_info()
4516 sgid, dgid, IBMF_SAA_PKEY_WC, 0, B_TRUE, &npaths, 0, in ibdm_create_gid_info()
6812 uint8_t npaths = 1; in ibdm_reset_gidinfo() local
6866 IBMF_SAA_PKEY_WC, 0, B_TRUE, &npaths, 0, &path_len, &path); in ibdm_reset_gidinfo()
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_ti.c5665 uint8_t npaths; in ibt_gid_to_node_info() local
5774 npaths = 1; in ibt_gid_to_node_info()
5778 sgid, gid, 0, 0, B_TRUE, &npaths, 0, &len, in ibt_gid_to_node_info()
5788 } else if ((npaths == 0) || (path == NULL)) { in ibt_gid_to_node_info()
6108 uint8_t npaths; in ibt_get_companion_port_gids() local
6276 npaths = 1; in ibt_get_companion_port_gids()
6280 sgid, gid, 0, 0, B_TRUE, &npaths, 0, &len, in ibt_get_companion_port_gids()
6291 } else if ((npaths == 0) || (path == NULL)) { in ibt_get_companion_port_gids()