Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/usr.bin/sort/
H A Dradixsort.c50 #define TINY_NODE(sl) ((sl)->tosort_num < 65) argument
51 #define SMALL_NODE(sl) ((sl)->tosort_num < 5) argument
79 struct sort_level *sl; member
142 push_ls(struct sort_level *sl) in push_ls() argument
147 new_ls->sl = sl; in push_ls()
166 struct sort_level *sl; in pop_ls_st() local
171 sl = g_ls->sl; in pop_ls_st()
176 sl = NULL; in pop_ls_st()
178 return (sl); in pop_ls_st()
190 struct sort_level *sl; in pop_ls_mt() local
[all …]
H A Dfile.c1237 sub_list_swap(struct sort_list **sl, size_t i1, size_t i2) in sub_list_swap() argument
1241 tmp = sl[i1]; in sub_list_swap()
1242 sl[i1] = sl[i2]; in sub_list_swap()
1243 sl[i2] = tmp; in sub_list_swap()
1253 sub_list_swim(struct sort_list **sl, size_t indx) in sub_list_swim() argument
1261 if (sub_list_cmp(sl[indx], sl[parent_index]) < 0) { in sub_list_swim()
1263 sub_list_swap(sl, indx, parent_index); in sub_list_swim()
1264 sub_list_swim(sl, parent_index); in sub_list_swim()
1273 sub_list_sink(struct sort_list **sl, size_t indx, size_t size) in sub_list_sink() argument
1287 (sub_list_cmp(sl[left_child_index], in sub_list_sink()
[all …]
/freebsd/contrib/unbound/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 …]
/freebsd/contrib/mandoc/
H A Dcompat_stringlist.c46 StringList *sl; in sl_init() local
48 sl = malloc(sizeof(StringList)); in sl_init()
49 if (sl == NULL) in sl_init()
52 sl->sl_cur = 0; in sl_init()
53 sl->sl_max = _SL_CHUNKSIZE; in sl_init()
54 sl->sl_str = reallocarray(NULL, sl->sl_max, sizeof(char *)); in sl_init()
55 if (sl->sl_str == NULL) { in sl_init()
56 free(sl); in sl_init()
57 sl = NULL; in sl_init()
59 return sl; in sl_init()
[all …]
H A Dtest-stringlist.c24 StringList *sl; in main() local
27 if ((sl = sl_init()) == NULL) in main()
29 if (sl_add(sl, teststr)) in main()
31 if (sl->sl_cur != 1) in main()
33 if (sl->sl_str[0] != teststr) in main()
36 sl_free(sl, 0); in main()
/freebsd/lib/libc/gen/
H A Dstringlist.c47 StringList *sl; in sl_init() local
49 sl = malloc(sizeof(StringList)); in sl_init()
50 if (sl == NULL) in sl_init()
53 sl->sl_cur = 0; in sl_init()
54 sl->sl_max = _SL_CHUNKSIZE; in sl_init()
55 sl->sl_str = malloc(sl->sl_max * sizeof(char *)); in sl_init()
56 if (sl->sl_str == NULL) in sl_init()
58 return sl; in sl_init()
66 sl_add(StringList *sl, char *name) in sl_add() argument
68 if (sl->sl_cur == sl->sl_max - 1) { in sl_add()
[all …]
H A Dgetusershell.c60 static StringList *sl; variable
84 if (sl) { in endusershell()
85 sl_free(sl, 1); in endusershell()
86 sl = NULL; in endusershell()
109 if (sl) in _local_initshells()
110 sl_free(sl, 1); in _local_initshells()
111 sl = sl_init(); in _local_initshells()
126 sl_add(sl, strdup(sp)); in _local_initshells()
144 if (sl) in _dns_initshells()
145 sl_free(sl, 1); in _dns_initshells()
[all …]
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_sync.c559 synclogent_t *sl; in ipf_sync_read() local
594 (uio->uio_resid > sizeof(*sl))) { in ipf_sync_read()
595 sl = softs->synclog + softs->sl_tail++; in ipf_sync_read()
597 err = UIOMOVE(sl, sizeof(*sl), UIO_READ, uio); in ipf_sync_read()
643 synclist_t *sl; in ipf_sync_state() local
662 KMALLOC(sl, synclist_t *); in ipf_sync_state()
663 if (sl == NULL) { in ipf_sync_state()
693 is->is_sync = sl; in ipf_sync_state()
695 sl->sl_idx = -1; in ipf_sync_state()
696 sl->sl_ips = is; in ipf_sync_state()
[all …]
/freebsd/contrib/unbound/sldns/
H A Dwire2str.c487 static int sldns_rr_tcttl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) in sldns_rr_tcttl_scan() argument
495 d, dl, s, sl); in sldns_rr_tcttl_scan()
501 w += sldns_wire2str_class_print(s, sl, c); in sldns_rr_tcttl_scan()
502 w += sldns_str_print(s, sl, "\t"); in sldns_rr_tcttl_scan()
503 w += sldns_wire2str_type_print(s, sl, t); in sldns_rr_tcttl_scan()
505 return w + sldns_str_print(s, sl, "; Error no ttl"); in sldns_rr_tcttl_scan()
507 "; Error malformed ttl 0x", d, dl, s, sl); in sldns_rr_tcttl_scan()
514 w += sldns_str_print(s, sl, "%lu\t", (unsigned long)ttl); in sldns_rr_tcttl_scan()
515 w += sldns_wire2str_class_print(s, sl, c); in sldns_rr_tcttl_scan()
516 w += sldns_str_print(s, sl, "\t"); in sldns_rr_tcttl_scan()
[all …]
/freebsd/crypto/openssl/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 …]
/freebsd/usr.sbin/services_mkdb/
H A Dservices_mkdb.c91 StringList *sl, ***svc; in main() local
136 svc = parseservices(fname, sl = sl_init()); in main()
156 add(db, s, port, getprotostr(sl, proto), &cnt, warndup); in main()
163 sl_free(sl, 1); in main()
189 add(DB *db, StringList *sl, size_t port, const char *proto, size_t *cnt, in add() argument
199 (void)printf("add %s %zu %s [ ", sl->sl_str[0], port, proto); in add()
200 for (i = 1; i < sl->sl_cur; i++) in add()
201 (void)printf("%s ", sl->sl_str[i]); in add()
208 sl->sl_str[0], port, proto, mkaliases(sl, abuf, sizeof(abuf))) + 1; in add()
221 for (i = 0; i < sl->sl_cur; i++) { in add()
[all …]
/freebsd/contrib/tcsh/
H A Dtw.init.c105 tw_str_add(stringlist_t *sl, size_t len) in tw_str_add() argument
109 if (sl->tlist <= sl->nlist) { in tw_str_add()
111 sl->tlist += TW_INCR; in tw_str_add()
112 sl->list = xrealloc(sl->list, sl->tlist * sizeof(Char *)); in tw_str_add()
115 if (sl->tbuff <= sl->nbuff + len) { in tw_str_add()
118 ptr = sl->buff; in tw_str_add()
120 sl->tbuff += TW_INCR + len; in tw_str_add()
121 sl->buff = xrealloc(sl->buff, sl->tbuff * sizeof(Char)); in tw_str_add()
123 if (ptr != NULL && ptr != sl->buff) { in tw_str_add()
124 for (i = 0; i < sl->nlist; i++) in tw_str_add()
[all …]
H A Dtw.help.c180 nextslist(const Char *sl, Char *np) in nextslist() argument
182 if (!*sl) in nextslist()
184 else if (*sl == ':') { in nextslist()
189 while (*sl && *sl != ':') in nextslist()
190 *np++ = *sl++; in nextslist()
200 skipslist(Char *sl) in skipslist() argument
202 while (*sl && *sl++ != ':') in skipslist()
204 return (sl); in skipslist()
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DUnwindTable.cpp55 SectionList *sl = m_module.GetSectionList(); in Initialize() local
56 if (!sl) in Initialize()
59 SectionSP sect = sl->FindSectionByType(eSectionTypeEHFrame, true); in Initialize()
65 sect = sl->FindSectionByType(eSectionTypeDWARFDebugFrame, true); in Initialize()
71 sect = sl->FindSectionByType(eSectionTypeCompactUnwind, true); in Initialize()
77 sect = sl->FindSectionByType(eSectionTypeARMexidx, true); in Initialize()
79 SectionSP sect_extab = sl->FindSectionByType(eSectionTypeARMextab, true); in Initialize()
100 SectionList *sl = m_module.GetSectionList(); in Update() local
101 if (!sl) in Update()
104 SectionSP sect = sl->FindSectionByType(eSectionTypeEHFrame, true); in Update()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dsegregs.sh60 u_int sl;
65 sl = s;
67 if (sl != 0)
68 i386_set_ldt(sl, NULL, 1);
78 u_int sel, sl;
88 sl = i386_set_ldt(LDT_AUTO_ALLOC, &desc, 1);
89 if ((int)sl == -1)
91 sel = LSEL(sl, SEL_UPL);
92 s = sl;
H A Dkillpg4.sh90 sl=$prog.$i
91 sleep=/tmp/$sl
95 pgrep -q "$sl" && break
98 pgrep -q "$sl" || { echo "No start"; exit 1; }
99 pgid=`pgrep "$sl" | xargs ps -jp | sed 1d | \
102 sed -n "1p;/$sl/p"; exit 1; }
H A Dpts2.sh65 char sl[80];
73 snprintf(sl, sizeof(sl), "/dev/pts/%d", slave);
75 if ((fd2 = open(sl, O_RDONLY | O_EXLOCK)) == -1)
76 err(1, "open(%s)", sl);
/freebsd/sys/riscv/riscv/
H A Dbusdma_bounce.c563 struct sync_list *sl; in _bus_dmamap_addseg()
580 sl = map->slist + map->sync_count - 1; in _bus_dmamap_addseg()
594 sl_end = sl->paddr + sl->datacount;
599 sl++; in bounce_bus_dmamap_load_phys()
600 sl->vaddr = 0; in bounce_bus_dmamap_load_phys() local
601 sl->paddr = curaddr; in bounce_bus_dmamap_load_phys()
602 sl->datacount = sgsize; in bounce_bus_dmamap_load_phys()
603 sl->pages = PHYS_TO_VM_PAGE(curaddr); in bounce_bus_dmamap_load_phys()
604 KASSERT(sl in bounce_bus_dmamap_load_phys()
670 struct sync_list *sl; bounce_bus_dmamap_load_buffer() local
811 dma_dcache_sync(struct sync_list * sl,bus_dmasync_op_t op) dma_dcache_sync() argument
875 struct sync_list *sl, *end; bounce_bus_dmamap_sync() local
[all...]
/freebsd/libexec/rtld-elf/arm/
H A Drtld_start.S42 ldr sl, .L2
46 add sl, pc, sl
47 ldr r5, [sl, r5]
48 ldr r0, [sl, r0]
50 sub r1, sl, r5 /* relocbase */
78 stmdb sp!,{r0-r5,sl,fp}
95 ldmia sp!,{r0-r5,sl,fp,lr} /* restore the stack */
/freebsd/sys/arm64/arm64/
H A Dbusdma_bounce.c727 struct sync_list *sl; in bounce_bus_dmamap_load_phys() local
744 sl = map->slist + map->sync_count - 1; in bounce_bus_dmamap_load_phys()
767 sl_end = sl->paddr + sl->datacount; in bounce_bus_dmamap_load_phys()
772 sl++; in bounce_bus_dmamap_load_phys()
773 sl->vaddr = 0; in bounce_bus_dmamap_load_phys()
774 sl->paddr = curaddr; in bounce_bus_dmamap_load_phys()
775 sl->pages = PHYS_TO_VM_PAGE(curaddr); in bounce_bus_dmamap_load_phys()
776 KASSERT(sl->pages != NULL, in bounce_bus_dmamap_load_phys()
779 sl->datacount = sgsize; in bounce_bus_dmamap_load_phys()
781 sl->datacount += sgsize; in bounce_bus_dmamap_load_phys()
[all …]
/freebsd/sys/arm/arm/
H A Dbusdma_machdep.c163 static void dma_dcache_sync(struct sync_list *sl, bus_dmasync_op_t op);
859 struct sync_list *sl; in _bus_dmamap_addseg()
882 sl = map->slist + map->sync_count - 1; in _bus_dmamap_addseg()
894 sl_end = sl->paddr + sl->datacount; in _bus_dmamap_load_phys()
899 sl++; in _bus_dmamap_load_phys()
900 sl->vaddr = 0; in _bus_dmamap_load_phys()
901 sl->paddr = curaddr; in _bus_dmamap_load_phys()
902 sl->datacount = sgsize; in _bus_dmamap_load_phys()
903 sl in _bus_dmamap_load_phys()
897 struct sync_list *sl; _bus_dmamap_load_phys() local
989 struct sync_list *sl; _bus_dmamap_load_buffer() local
1160 dma_dcache_sync(struct sync_list * sl,bus_dmasync_op_t op) dma_dcache_sync() argument
1223 struct sync_list *sl, *end; bus_dmamap_sync() local
[all...]
/freebsd/contrib/netbsd-tests/lib/libc/ssp/
H A Dh_readlink.c48 char b[512], *sl; in main() local
50 sl = malloc(len); in main()
51 memset(sl, 'a', len); in main()
52 sl[len - 1] = 0; in main()
54 if (symlink(sl, "symlink") == -1) in main()
/freebsd/crypto/heimdal/lib/sl/
H A DChangeLog17 * sl.c: make compile.
19 * sl.c: Pass in pointer to strlen().
21 * sl.c (sl_make_argv): use memmove since we are dealing with
52 * sl.c (sl_make_argv): Add quoting support (both "" and \ style).
56 * sl.c: Use strcspn to remove \n from fgets result. Prompted by
65 * sl.c (sl_slc_help): remove return
69 * sl.h: Add sl_slc_help.
71 * sl.c: Add sl_slc_help.
91 * sl.c: use rk_UNCONST to un-constify
99 * sl.c (sl_command_loop): new return code -2 for EOF
[all …]
/freebsd/lib/msun/src/
H A Ds_clog.c45 double_t ax, ax2h, ax2l, axh, axl, ay, ay2h, ay2l, ayh, ayl, sh, sl, t; in clog() local
135 sl = ay2h; in clog()
136 _2sumF(sh, sl); in clog()
138 return (CMPLX(log(ay2l + ax2l + sl + sh) / 2, v)); in clog()
140 _2sum(sh, sl); in clog()
144 _2sum(sl, ay2l); in clog()
145 t = ax2l + sl; in clog()
H A Ds_clogf.c45 float_t ax, ax2h, ax2l, axh, axl, ay, ay2h, ay2l, ayh, ayl, sh, sl, t; in clogf() local
135 sl = ay2h; in clogf()
136 _2sumF(sh, sl); in clogf()
138 return (CMPLXF(logf(ay2l + ax2l + sl + sh) / 2, v)); in clogf()
140 _2sum(sh, sl); in clogf()
144 _2sum(sl, ay2l); in clogf()
145 t = ax2l + sl; in clogf()

12345678910>>...12