Home
last modified time | relevance | path

Searched refs:sl (Results 1 – 25 of 1059) sorted by relevance

12345678910>>...43

/netbsd-src/external/bsd/unbound/dist/util/storage/
H A Dslabhash.c54 struct slabhash* sl = (struct slabhash*)calloc(1, in slabhash_create() local
56 if(!sl) return NULL; in slabhash_create()
57 sl->size = numtables; in slabhash_create()
58 log_assert(sl->size > 0); in slabhash_create()
59 sl->array = (struct lruhash**)calloc(sl->size, sizeof(struct lruhash*)); in slabhash_create()
60 if(!sl->array) { in slabhash_create()
61 free(sl); in slabhash_create()
64 sl->mask = (uint32_t)(sl->size - 1); in slabhash_create()
65 if(sl->mask == 0) { in slabhash_create()
66 sl->shift = 0; in slabhash_create()
[all …]
/netbsd-src/lib/libc/gen/
H A Dstringlist.c63 StringList *sl; in __weak_alias() local
65 sl = malloc(sizeof(StringList)); in __weak_alias()
66 if (sl == NULL) in __weak_alias()
69 sl->sl_cur = 0; in __weak_alias()
70 sl->sl_max = _SL_CHUNKSIZE; in __weak_alias()
71 sl->sl_str = NULL; in __weak_alias()
72 errno = reallocarr(&sl->sl_str, sl->sl_max, sizeof(*sl->sl_str)); in __weak_alias()
75 free(sl); in __weak_alias()
77 sl = NULL; in __weak_alias()
79 return sl; in __weak_alias()
[all …]
/netbsd-src/sys/lib/libkern/
H A Dstrlist.c114 strlist_next(const char * const sl, size_t const slsize, size_t * const cursorp) in strlist_next() argument
117 if (sl == NULL || slsize == 0 || cursorp == NULL) { in strlist_next()
128 const char *cp = sl + cursor; in strlist_next()
140 strlist_count(const char *sl, size_t slsize) in strlist_count() argument
143 if (sl == NULL || slsize == 0) { in strlist_count()
151 count++, sl += cursize, slsize -= cursize) { in strlist_count()
152 cursize = strlen(sl) + 1; in strlist_count()
164 strlist_string(const char * sl, size_t slsize, unsigned int const idx) in strlist_string() argument
167 if (sl == NULL || slsize == 0) { in strlist_string()
174 for (i = 0; slsize != 0; i++, slsize -= cursize, sl += cursize) { in strlist_string()
[all …]
/netbsd-src/external/bsd/mdocml/dist/
H A Dcompat_stringlist.c51 StringList *sl; in sl_init() local
53 sl = malloc(sizeof(StringList)); in sl_init()
54 if (sl == NULL) in sl_init()
57 sl->sl_cur = 0; in sl_init()
58 sl->sl_max = _SL_CHUNKSIZE; in sl_init()
59 sl->sl_str = reallocarray(NULL, sl->sl_max, sizeof(char *)); in sl_init()
60 if (sl->sl_str == NULL) in sl_init()
62 return sl; in sl_init()
70 sl_add(StringList *sl, char *name) in sl_add() argument
72 if (sl->sl_cur == sl->sl_max - 1) { in sl_add()
[all …]
/netbsd-src/external/bsd/ipf/dist/
H A Dip_sync.c592 synclogent_t *sl; local
651 (uio->uio_resid > sizeof(*sl))) {
652 sl = softs->synclog + softs->sl_tail++;
654 err = UIOMOVE(sl, sizeof(*sl), UIO_READ, uio);
703 synclist_t *sl; local
722 KMALLOC(sl, synclist_t *);
723 if (sl == NULL) {
753 is->is_sync = sl;
755 sl->sl_idx = -1;
756 sl->sl_ips = is;
[all …]
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_sync.c579 synclogent_t *sl; in ipf_sync_read() local
638 (uio->uio_resid > sizeof(*sl))) { in ipf_sync_read()
639 sl = softs->synclog + softs->sl_tail++; in ipf_sync_read()
641 err = UIOMOVE(sl, sizeof(*sl), UIO_READ, uio); in ipf_sync_read()
687 synclist_t *sl; in ipf_sync_state() local
706 KMALLOC(sl, synclist_t *); in ipf_sync_state()
707 if (sl == NULL) { in ipf_sync_state()
737 is->is_sync = sl; in ipf_sync_state()
739 sl->sl_idx = -1; in ipf_sync_state()
740 sl->sl_ips = is; in ipf_sync_state()
[all …]
/netbsd-src/external/bsd/unbound/dist/sldns/
H A Dwire2str.c482 static int sldns_rr_tcttl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) in sldns_rr_tcttl_scan() argument
490 d, dl, s, sl); in sldns_rr_tcttl_scan()
496 w += sldns_wire2str_class_print(s, sl, c); in sldns_rr_tcttl_scan()
497 w += sldns_str_print(s, sl, "\t"); in sldns_rr_tcttl_scan()
498 w += sldns_wire2str_type_print(s, sl, t); in sldns_rr_tcttl_scan()
500 return w + sldns_str_print(s, sl, "; Error no ttl"); in sldns_rr_tcttl_scan()
502 "; Error malformed ttl 0x", d, dl, s, sl); in sldns_rr_tcttl_scan()
509 w += sldns_str_print(s, sl, "%lu\t", (unsigned long)ttl); in sldns_rr_tcttl_scan()
510 w += sldns_wire2str_class_print(s, sl, c); in sldns_rr_tcttl_scan()
511 w += sldns_str_print(s, sl, "\t"); in sldns_rr_tcttl_scan()
[all …]
/netbsd-src/sys/arch/luna68k/luna68k/
H A Ddisksubr.c304 struct sun_disklabel *sl; in disklabel_om_to_bsd() local
310 sl = (struct sun_disklabel *)cp; in disklabel_om_to_bsd()
313 sp1 = (u_short *)sl; in disklabel_om_to_bsd()
314 sp2 = (u_short *)(sl + 1); in disklabel_om_to_bsd()
325 memcpy(lp->d_packname, sl->sl_text, sizeof(lp->d_packname)); in disklabel_om_to_bsd()
329 lp->d_nsectors = sl->sl_nsectors; in disklabel_om_to_bsd()
330 lp->d_ntracks = sl->sl_ntracks; in disklabel_om_to_bsd()
331 lp->d_ncylinders = sl->sl_ncylinders; in disklabel_om_to_bsd()
333 secpercyl = sl->sl_nsectors * sl->sl_ntracks; in disklabel_om_to_bsd()
335 lp->d_secperunit = secpercyl * sl->sl_ncylinders; in disklabel_om_to_bsd()
[all …]
/netbsd-src/sys/dev/sun/
H A Ddisksubr.c242 struct sun_disklabel *sl; in disklabel_sun_to_bsd() local
249 sl = (struct sun_disklabel *)cp; in disklabel_sun_to_bsd()
252 sp1 = (u_short *)sl; in disklabel_sun_to_bsd()
253 sp2 = (u_short *)(sl + 1); in disklabel_sun_to_bsd()
263 memcpy(lp->d_packname, sl->sl_text, sizeof(lp->d_packname)); in disklabel_sun_to_bsd()
268 lp->d_nsectors = sl->sl_nsectors; in disklabel_sun_to_bsd()
269 lp->d_ntracks = sl->sl_ntracks; in disklabel_sun_to_bsd()
270 lp->d_ncylinders = sl->sl_ncylinders; in disklabel_sun_to_bsd()
272 secpercyl = sl->sl_nsectors * sl->sl_ntracks; in disklabel_sun_to_bsd()
274 lp->d_secperunit = secpercyl * sl->sl_ncylinders; in disklabel_sun_to_bsd()
[all …]
/netbsd-src/external/gpl2/lvm2/dist/lib/datastruct/
H A Dstr_list.c23 struct dm_list *sl; in str_list_create() local
25 if (!(sl = dm_pool_alloc(mem, sizeof(struct dm_list)))) { in str_list_create()
30 dm_list_init(sl); in str_list_create()
32 return sl; in str_list_create()
70 struct str_list *sl; in str_list_dup() local
74 dm_list_iterate_items(sl, sllold) { in str_list_dup()
75 if (!str_list_add(mem, sllnew, dm_pool_strdup(mem, sl->str))) in str_list_dup()
87 struct str_list *sl; in str_list_match_item() local
89 dm_list_iterate_items(sl, sll) in str_list_match_item()
90 if (!strcmp(str, sl->str)) in str_list_match_item()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ripemd/asm/
H A Drmd-586.pl55 @sl=( 11,14,15,12, 5, 8, 7, 9,11,13,14,15, 6, 7, 9, 8,
359 &RIP1($A,$B,$C,$D,$E,$wl[ 0],$sl[ 0],-1);
360 &RIP1($E,$A,$B,$C,$D,$wl[ 1],$sl[ 1],0);
361 &RIP1($D,$E,$A,$B,$C,$wl[ 2],$sl[ 2],0);
362 &RIP1($C,$D,$E,$A,$B,$wl[ 3],$sl[ 3],0);
363 &RIP1($B,$C,$D,$E,$A,$wl[ 4],$sl[ 4],0);
364 &RIP1($A,$B,$C,$D,$E,$wl[ 5],$sl[ 5],0);
365 &RIP1($E,$A,$B,$C,$D,$wl[ 6],$sl[ 6],0);
366 &RIP1($D,$E,$A,$B,$C,$wl[ 7],$sl[ 7],0);
367 &RIP1($C,$D,$E,$A,$B,$wl[ 8],$sl[ 8],0);
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ripemd/asm/
H A Drmd-586.pl56 @sl=( 11,14,15,12, 5, 8, 7, 9,11,13,14,15, 6, 7, 9, 8,
360 &RIP1($A,$B,$C,$D,$E,$wl[ 0],$sl[ 0],-1);
361 &RIP1($E,$A,$B,$C,$D,$wl[ 1],$sl[ 1],0);
362 &RIP1($D,$E,$A,$B,$C,$wl[ 2],$sl[ 2],0);
363 &RIP1($C,$D,$E,$A,$B,$wl[ 3],$sl[ 3],0);
364 &RIP1($B,$C,$D,$E,$A,$wl[ 4],$sl[ 4],0);
365 &RIP1($A,$B,$C,$D,$E,$wl[ 5],$sl[ 5],0);
366 &RIP1($E,$A,$B,$C,$D,$wl[ 6],$sl[ 6],0);
367 &RIP1($D,$E,$A,$B,$C,$wl[ 7],$sl[ 7],0);
368 &RIP1($C,$D,$E,$A,$B,$wl[ 8],$sl[ 8],0);
[all …]
/netbsd-src/sys/dev/ofw/
H A Dofw_network_subr.c98 char *sl = NULL; in of_network_decode_media() local
107 sl = malloc(len, M_TEMP, M_WAITOK); in of_network_decode_media()
110 if (OF_getprop(phandle, "supported-network-types", sl, len) != len) in of_network_decode_media()
113 count = strlist_count(sl, len); in of_network_decode_media()
123 (cp = strlist_next(sl, len, &cursor)) != NULL; ) { in of_network_decode_media()
133 free(sl, M_TEMP); in of_network_decode_media()
134 sl = NULL; in of_network_decode_media()
149 sl = malloc(len, M_TEMP, M_WAITOK); in of_network_decode_media()
150 if (OF_getprop(phandle, "chosen-network-type", sl, len) != len) { in of_network_decode_media()
155 cp = sl; in of_network_decode_media()
[all …]
/netbsd-src/external/lgpl3/gmp/dist/
H A Dlonglong.h311 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
319 (sl) = __x; \
387 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
389 : "=r" (sh), "=&r" (sl) \
391 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
393 : "=r" (sh), "=&r" (sl) \
417 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
420 "=&r" (sl) \
425 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
428 "=&r" (sl) \
[all …]
/netbsd-src/external/lgpl3/mpfr/dist/src/
H A Dmpfr-longlong.h317 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
325 (sl) = __x; \
393 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
395 : "=r" (sh), "=&r" (sl) \
397 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
399 : "=r" (sh), "=&r" (sl) \
423 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
426 "=&r" (sl) \
431 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
434 "=&r" (sl) \
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/intl/
H A Dos2compat.c59 size_t sl = strlen (root); in nlos2_initialize() local
60 _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); in nlos2_initialize()
61 memcpy (_nlos2_libdir, root, sl); in nlos2_initialize()
62 memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); in nlos2_initialize()
73 size_t sl = strlen (root); in nlos2_initialize() local
74 _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize()
75 memcpy (_nlos2_localealiaspath, root, sl); in nlos2_initialize()
76 memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize()
87 size_t sl = strlen (root); in nlos2_initialize() local
88 _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); in nlos2_initialize()
[all …]
/netbsd-src/external/gpl2/texinfo/dist/intl/
H A Dos2compat.c61 size_t sl = strlen (root); in nlos2_initialize() local
62 _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); in nlos2_initialize()
63 memcpy (_nlos2_libdir, root, sl); in nlos2_initialize()
64 memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); in nlos2_initialize()
75 size_t sl = strlen (root); in nlos2_initialize() local
76 _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize()
77 memcpy (_nlos2_localealiaspath, root, sl); in nlos2_initialize()
78 memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize()
89 size_t sl = strlen (root); in nlos2_initialize() local
90 _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); in nlos2_initialize()
[all …]
/netbsd-src/external/gpl2/grep/dist/intl/
H A Dos2compat.c69 size_t sl = strlen (root); in os2_initialize() local
70 _os2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); in os2_initialize()
71 memcpy (_os2_libdir, root, sl); in os2_initialize()
72 memcpy (_os2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); in os2_initialize()
83 size_t sl = strlen (root); in os2_initialize() local
84 _os2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); in os2_initialize()
85 memcpy (_os2_localealiaspath, root, sl); in os2_initialize()
86 memcpy (_os2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); in os2_initialize()
97 size_t sl = strlen (root); in os2_initialize() local
98 _os2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); in os2_initialize()
[all …]
/netbsd-src/external/gpl3/binutils/dist/include/
H A Dlonglong.h195 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
198 "=&r" ((USItype) (sl)) \
204 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
207 "=&r" ((USItype) (sl)) \
231 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
234 "=&r" ((USItype) (sl)) \
239 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
242 "=&r" ((USItype) (sl)) \
349 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
352 "=&r" ((USItype) (sl)) \
[all …]
/netbsd-src/external/gpl3/gcc/dist/include/
H A Dlonglong.h195 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
198 "=&r" ((USItype) (sl)) \
204 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
207 "=&r" ((USItype) (sl)) \
231 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
234 "=&r" ((USItype) (sl)) \
239 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
242 "=&r" ((USItype) (sl)) \
349 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
352 "=&r" ((USItype) (sl)) \
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/include/
H A Dlonglong.h195 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
198 "=&r" ((USItype) (sl)) \
204 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
207 "=&r" ((USItype) (sl)) \
231 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
234 "=&r" ((USItype) (sl)) \
239 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
242 "=&r" ((USItype) (sl)) \
349 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
352 "=&r" ((USItype) (sl)) \
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/include/
H A Dlonglong.h195 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
198 "=&r" ((USItype) (sl)) \
204 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
207 "=&r" ((USItype) (sl)) \
231 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
234 "=&r" ((USItype) (sl)) \
239 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument
242 "=&r" ((USItype) (sl)) \
349 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument
352 "=&r" ((USItype) (sl)) \
[all …]
/netbsd-src/tests/usr.bin/xlint/lint1/
H A Dmsg_259_c90.c71 signed long sl, unsigned long ul) in small_integer_types() argument
80 plain_char(sl); in small_integer_types()
90 signed_char(sl); in small_integer_types()
100 unsigned_char(sl); in small_integer_types()
110 signed_short(sl); in small_integer_types()
120 unsigned_short(sl); in small_integer_types()
136 signed_to_unsigned(int si, long sl) in signed_to_unsigned() argument
142 unsigned_int(sl); in signed_to_unsigned()
152 unsigned_long(sl); in signed_to_unsigned()
168 signed_to_signed(signed int si, signed long sl) in signed_to_signed() argument
[all …]
/netbsd-src/usr.sbin/services_mkdb/
H A Doutput_cdb.c64 cdb_add(StringList *sl, size_t port, const char *proto, size_t *cnt, in cdb_add() argument
78 for (i = 0; i < sl->sl_cur; ++i) { in cdb_add()
79 len = strlen(sl->sl_str[i]); in cdb_add()
81 errx(1, "Service alias ``%s'' invalid", sl->sl_str[i]); in cdb_add()
93 for (i = 0; i < sl->sl_cur; ++i) { in cdb_add()
94 len = strlen(sl->sl_str[i]); in cdb_add()
96 memcpy(data_iter, sl->sl_str[i], len + 1); in cdb_add()
119 for (i = 0; i < sl->sl_cur; i++) { in cdb_add()
120 len = strlen(sl->sl_str[i]); in cdb_add()
123 memcpy(key + 2, sl->sl_str[i], len); in cdb_add()
[all …]
/netbsd-src/libexec/ftpd/
H A Dpopen.c114 StringList *sl; in ftpd_popen() local
131 if ((sl = sl_init()) == NULL) in ftpd_popen()
135 if (sl_add(sl, ftpd_strdup(argv[0])) == -1) in ftpd_popen()
144 if (sl_add(sl, ftpd_strdup(argv[argc])) == -1) { in ftpd_popen()
150 if (sl_add(sl, ftpd_strdup(*pop)) == -1) { in ftpd_popen()
158 if (sl_add(sl, NULL) == -1) in ftpd_popen()
162 isls = (strcmp(sl->sl_str[0], INTERNAL_LS) == 0); in ftpd_popen()
194 exit(ls_main(sl->sl_cur - 1, sl->sl_str)); in ftpd_popen()
198 execv(sl->sl_str[0], sl->sl_str); in ftpd_popen()
212 if (sl) in ftpd_popen()
[all …]

12345678910>>...43