Home
last modified time | relevance | path

Searched refs:strlist (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/streams/strcmd/
H A Dstrconf.c85 struct str_list strlist; /* mods on stream */ in main() local
92 strlist.sl_nmods = NMODULES; in main()
93 strlist.sl_modlist = mlist; in main()
140 if (i > strlist.sl_nmods) in main()
141 if (more_modules(&strlist, i) != SUCCESS) in main()
147 strlist.sl_nmods = i; in main()
148 if (ioctl(STDIN_FILENO, I_LIST, &strlist) < 0) { in main()
158 if (strlist.sl_nmods >= 2) { in main()
159 (void) puts(strlist.sl_modlist[0].l_name); in main()
169 for (i = 0; i < strlist.sl_nmods; i++) { in main()
[all …]
/illumos-gate/usr/src/cmd/hal/tools/
H A Dlshal.c150 char **strlist; in print_props() local
154 strlist = libhal_psi_get_strlist (&it); in print_props()
155 for (i = 0; strlist[i] != 0; i++) { in print_props()
156 printf ("'%s'", strlist[i]); in print_props()
157 if (strlist[i+1] != NULL) in print_props()
438 char **strlist; in print_property() local
445 strlist = libhal_device_get_property_strlist (hal_ctx, udi, key, &error); in print_property()
446 for (i = 0; strlist[i] != 0; i++) { in print_property()
447 printf ("'%s'", strlist[i]); in print_property()
448 if (strlist[i+1] != NULL) in print_property()
[all …]
H A Dhal_get_property.c238 char **strlist; in main() local
240 if ((strlist = libhal_device_get_property_strlist (hal_ctx, udi, key, &error)) != NULL) { in main()
242 for (i = 0; strlist[i] != 0; i++) { in main()
243 printf ("%s", strlist[i]); in main()
244 if (strlist[i+1] != NULL) in main()
H A Dhal-device.c276 char **strlist; in dump_devices() local
279 strlist = libhal_psi_get_strlist(&it); in dump_devices()
280 while (*strlist) { in dump_devices()
281 printf("'%s'%s", *strlist, strlist[1] ? ", " : ""); in dump_devices()
282 strlist++; in dump_devices()
/illumos-gate/usr/src/cmd/sgs/ld/common/
H A Dld.c511 struct strlist { struct
512 struct strlist *sl_next; argument
520 static struct strlist * argument
523 struct strlist *strs = NULL; in split_options()
524 struct strlist **nextp = &strs; in split_options()
525 struct strlist *next; in split_options()
531 next = calloc(1, sizeof (struct strlist)); in split_options()
554 struct strlist *opts, *p, *t; in prepend_ldoptions()
621 struct strlist *opts, *p, *t; in ld_altexec()
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr.c1519 str2attrs(ldap_strlist_t *strlist, char **dn) argument
1526 c = strlist->ldap_count;
1530 *dn = (char *)strlist + strlist->ldap_offsets[1];
1538 ret[j] = new_attr((char *)strlist + strlist->ldap_offsets[i],
1539 (char *)strlist + strlist->ldap_offsets[i + 1]);
1602 ldap_strlist_t *strlist; local
1638 strlist = &in->ldap_u.strlist;
1639 attrs = str2attrs(strlist, &dn);
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_cache_door.h121 ldap_strlist_t strlist; member
145 ldap_strlist_t strlist; member
H A Dns_writes.c4119 len = attr2list(dn, attr, (char *)&space.s_d.ldap_call.ldap_u.strlist, in send_to_cachemgr()
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Ddr.c45 add_string_list_prop(picl_nodehdl_t nodeh, char *name, char *strlist, in add_string_list_prop() argument
80 len = strlen(strlist) + 1; in add_string_list_prop()
86 err = ptree_create_prop(&propinfo, strlist, &proprow[j]); in add_string_list_prop()
89 strlist += len; in add_string_list_prop()
/illumos-gate/usr/src/cmd/hal/hald/
H A Ddevice.c1107 GSList *strlist; in hal_device_property_get_strlist_elem() local
1110 strlist = hal_device_property_get_strlist (device, key); in hal_device_property_get_strlist_elem()
1111 if (strlist == NULL) in hal_device_property_get_strlist_elem()
1114 i = g_slist_nth (strlist, index); in hal_device_property_get_strlist_elem()
1310 GSList *strlist; in hal_device_property_strlist_is_empty() local
1313 strlist = hal_device_property_get_strlist (device, key); in hal_device_property_strlist_is_empty()
1314 if (strlist == NULL ) in hal_device_property_strlist_is_empty()
1317 if (g_slist_length (strlist) > 0) in hal_device_property_strlist_is_empty()
H A Dutil.h95 gchar **hal_util_dup_strv_from_g_slist (GSList *strlist);
H A Dutil.c784 hal_util_dup_strv_from_g_slist (GSList *strlist) in hal_util_dup_strv_from_g_slist() argument
791 len = g_slist_length (strlist); in hal_util_dup_strv_from_g_slist()
794 for (i = strlist, j = 0; i != NULL; i = g_slist_next (i), j++) { in hal_util_dup_strv_from_g_slist()
/illumos-gate/usr/src/tools/scripts/
H A Dgit-pbchk.py141 def slices(strlist, sep): argument
144 for i, v in enumerate(strlist):
149 if low != len(strlist):
150 yield(low, len(strlist))
/illumos-gate/usr/src/cmd/msgfmt/
H A Dxgettext.c843 copy_strlist_to_str(char *str, struct strlist_st *strlist) in copy_strlist_to_str() argument
849 if (strlist != NULL) { in copy_strlist_to_str()
850 p = strlist; in copy_strlist_to_str()
1460 isexcluded(struct strlist_st *strlist) in isexcluded() argument
1466 if (msgidcmp(p->exstr, strlist) == 0) { in isexcluded()
1484 isextracted(struct strlist_st *strlist) in isextracted() argument
1490 p = strlist; in isextracted()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dip_rcm.c1933 struct str_list strlist = { 0 }; in get_modlist() local
1951 strlist.sl_nmods = num_mods; in get_modlist()
1952 strlist.sl_modlist = malloc(sizeof (struct str_mlist) * num_mods); in get_modlist()
1953 if (strlist.sl_modlist == NULL) { in get_modlist()
1959 if (ioctl(fd, I_LIST, (caddr_t)&strlist) < 0) { in get_modlist()
1966 for (i = 0; i < strlist.sl_nmods; i++) { in get_modlist()
1967 lif->li_modules[i] = strdup(strlist.sl_modlist[i].l_name); in get_modlist()
1978 lif->li_modcnt = strlist.sl_nmods; in get_modlist()
1979 free(strlist.sl_modlist); in get_modlist()
1984 free(strlist.sl_modlist); in get_modlist()
/illumos-gate/usr/src/cmd/truss/
H A Dexpound.c1028 struct str_list strlist; in show_strlist() local
1032 if (Pread(Proc, &strlist, sizeof (strlist), offset) == in show_strlist()
1033 sizeof (strlist)) { in show_strlist()
1036 strlist.sl_nmods, in show_strlist()
1037 (long)strlist.sl_modlist); in show_strlist()
1039 count = strlist.sl_nmods; in show_strlist()
1040 offset = (long)strlist.sl_modlist; in show_strlist()
1057 struct str_list32 strlist; in show_strlist32() local
1061 if (Pread(Proc, &strlist, sizeof (strlist), offset) == in show_strlist32()
1062 sizeof (strlist)) { in show_strlist32()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c3500 struct str_list strlist; in getbits() local
3510 strlist.sl_nmods = nmods; in getbits()
3511 strlist.sl_modlist = malloc(sizeof (struct str_mlist) * nmods); in getbits()
3512 if (strlist.sl_modlist == NULL) in getbits()
3514 if (ioctl(fd, I_LIST, (caddr_t)&strlist) < 0) { in getbits()
3517 for (i = 0; i < strlist.sl_nmods; i++) in getbits()
3519 strlist.sl_modlist[i].l_name); in getbits()
3520 free(strlist.sl_modlist); in getbits()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Difconfig.c2325 struct str_list strlist; in modlist() local
2347 strlist.sl_nmods = num_mods; in modlist()
2348 strlist.sl_modlist = malloc(sizeof (struct str_mlist) * in modlist()
2350 if (strlist.sl_modlist == NULL) { in modlist()
2353 if (ioctl(ipfd_lowstr, I_LIST, (caddr_t)&strlist) < 0) { in modlist()
2356 for (i = 0; i < strlist.sl_nmods; i++) { in modlist()
2358 strlist.sl_modlist[i].l_name); in modlist()
2361 free(strlist.sl_modlist); in modlist()
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_utils.c39 typedef struct strlist { struct
41 struct strlist *next; argument
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_utils.c37 typedef struct strlist { struct
39 struct strlist *next; argument
/illumos-gate/usr/src/uts/common/inet/ipnet/
H A Dipnet.c1811 list_t *strlist = &ips->ips_str_list; in ipnetif_zonecheck() local
1815 for (ipnet = list_head(strlist); ipnet != NULL; in ipnetif_zonecheck()
1816 ipnet = list_next(strlist, ipnet)) { in ipnetif_zonecheck()
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.c642 add_string_list_prop(picl_nodehdl_t nodeh, char *name, char *strlist, in add_string_list_prop() argument
677 len = strlen(strlist) + 1; in add_string_list_prop()
683 err = ptree_create_prop(&propinfo, strlist, &proprow[j]); in add_string_list_prop()
686 strlist += len; in add_string_list_prop()
/illumos-gate/usr/src/uts/common/os/
H A Dstreamio.c5570 STRUCT_DECL(str_list, strlist); in strioctl()
5580 STRUCT_INIT(strlist, flag); in strioctl()
5582 error = strcopyin((void *)arg, STRUCT_BUF(strlist), in strioctl()
5583 STRUCT_SIZE(strlist), copyflag); in strioctl()
5587 mlist = STRUCT_FGETP(strlist, sl_modlist); in strioctl()
5588 nmods = STRUCT_FGET(strlist, sl_nmods); in strioctl()
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_libscf.c14470 add_string(uu_list_t *strlist, const char *str) in add_string() argument
14476 if (uu_list_append(strlist, elem) != 0) in add_string()
14482 remove_string(uu_list_t *strlist, const char *str) in remove_string() argument
14490 elems = uu_list_walk_start(strlist, UU_DEFAULT); in remove_string()
14506 uu_list_remove(strlist, sp); in remove_string()