/freebsd/usr.bin/sort/ |
H A D | radixsort.c | 147 new_ls->sl = sl; in push_ls() 171 sl = g_ls->sl; in pop_ls_st() 196 sl = g_ls->sl; in pop_ls_mt() 344 sl->sorted[sl->start_position] = sl->tosort[0]; in run_sort_level_next() 358 sl->sorted[sl->start_position++] = sl->tosort[1]; in run_sort_level_next() 359 sl->sorted[sl->start_position] = sl->tosort[0]; in run_sort_level_next() 361 sl->sorted[sl->start_position++] = sl->tosort[0]; in run_sort_level_next() 362 sl->sorted[sl->start_position] = sl->tosort[1]; in run_sort_level_next() 452 memcpy(sl->sorted + sl->start_position, sl->leaves, in run_sort_level_next() 500 memcpy(sl->sorted + sl->start_position, sl->leaves, in run_sort_level_next() [all …]
|
H A D | file.c | 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() 1261 if (sub_list_cmp(sl[indx], sl[parent_index]) < 0) { in sub_list_swim() 1290 if (sub_list_cmp(sl[indx], sl[min_child_index]) > 0) { in sub_list_sink() 1306 sl[size++] = s; in sub_list_push() 1323 if (sl && sl->count && f_out && sl->list[0]->str) { in sub_list_header_print() 1344 if (sl && sl->count) { in sub_list_next() 1345 sl->list += 1; in sub_list_next() 1346 sl->count -= 1; in sub_list_next() [all …]
|
/freebsd/contrib/unbound/util/storage/ |
H A D | slabhash.c | 61 free(sl); in slabhash_create() 64 sl->mask = (uint32_t)(sl->size - 1); in slabhash_create() 68 log_assert( (sl->size & sl->mask) == 0 in slabhash_create() 84 return sl; in slabhash_create() 89 if(!sl) in slabhash_delete() 97 free(sl); in slabhash_delete() 103 if(!sl) in slabhash_clear() 113 return ((hash & sl->mask) >> sl->shift); in slab_idx() 130 lruhash_remove(sl->array[slab_idx(sl, hash)], hash, key); in slabhash_remove() 138 id, (unsigned)sl->size, (unsigned)sl->mask, sl->shift); in slabhash_status() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | compat_stringlist.c | 46 StringList *sl; in sl_init() local 49 if (sl == NULL) in sl_init() 54 sl->sl_str = reallocarray(NULL, sl->sl_max, sizeof(char *)); in sl_init() 56 free(sl); in sl_init() 57 sl = NULL; in sl_init() 59 return sl; in sl_init() 69 if (sl->sl_cur == sl->sl_max - 1) { in sl_add() 79 sl->sl_str[sl->sl_cur++] = name; in sl_add() 100 free(sl); in sl_free() 129 sl->sl_str[j - 1] = sl->sl_str[j]; in sl_delete() [all …]
|
H A D | test-stringlist.c | 24 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 D | stringlist.c | 47 StringList *sl; in sl_init() local 50 if (sl == NULL) in sl_init() 53 sl->sl_cur = 0; in sl_init() 55 sl->sl_str = malloc(sl->sl_max * sizeof(char *)); in sl_init() 58 return sl; in sl_init() 68 if (sl->sl_cur == sl->sl_max - 1) { in sl_add() 70 sl->sl_str = reallocf(sl->sl_str, sl->sl_max * sizeof(char *)); in sl_add() 74 sl->sl_str[sl->sl_cur++] = name; in sl_add() 87 if (sl == NULL) in sl_free() 89 if (sl->sl_str) { in sl_free() [all …]
|
H A D | getusershell.c | 84 if (sl) { in endusershell() 85 sl_free(sl, 1); in endusershell() 86 sl = NULL; in endusershell() 109 if (sl) in _local_initshells() 111 sl = sl_init(); in _local_initshells() 144 if (sl) in _dns_initshells() 146 sl = sl_init(); in _dns_initshells() 186 if (sl) in _nis_initshells() 188 sl = sl_init(); in _nis_initshells() 239 if (sl) in initshells() [all …]
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_sync.c | 597 err = UIOMOVE(sl, sizeof(*sl), UIO_READ, uio); in ipf_sync_read() 728 for (sl = softs->syncstatetab[hv]; (sl != NULL); in ipf_sync_state() 729 sl = sl->sl_next) in ipf_sync_state() 746 sp->sm_num, sl->sl_hdr.sm_v, sl->sl_hdr.sm_p, in ipf_sync_state() 747 sl->sl_hdr.sm_cmd, sl->sl_hdr.sm_table, in ipf_sync_state() 807 *sl->sl_pnext = sl->sl_next; in ipf_sync_del() 809 sl->sl_next->sl_pnext = sl->sl_pnext; in ipf_sync_del() 830 KFREE(sl); in ipf_sync_del_state() 920 for (sl = softs->syncnattab[hv]; (sl != NULL); in ipf_sync_nat() 921 sl = sl->sl_next) in ipf_sync_nat() [all …]
|
/freebsd/contrib/unbound/sldns/ |
H A D | wire2str.c | 490 d, dl, s, sl); in sldns_rr_tcttl_scan() 1454 if(*sl) { in str_char_print() 1457 (*sl)--; in str_char_print() 1533 if(*sl < sz+1) { in sldns_wire2str_b32_ext_scan() 1543 (*sl) -= sz; in sldns_wire2str_b32_ext_scan() 1549 size_t* sl, size_t num) in sldns_wire2str_b64_scan_num() argument 1553 if(*sl < sz+1) { in sldns_wire2str_b64_scan_num() 1563 (*sl) -= sz; in sldns_wire2str_b64_scan_num() 1918 size_t odl = *dl, osl = *sl; in sldns_wire2str_ipseckey_scan() 1924 *sl = osl; in sldns_wire2str_ipseckey_scan() [all …]
|
/freebsd/crypto/openssl/crypto/ripemd/asm/ |
H A D | rmd-586.pl | 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); 368 &RIP1($B,$C,$D,$E,$A,$wl[ 9],$sl[ 9],0); 369 &RIP1($A,$B,$C,$D,$E,$wl[10],$sl[10],0); [all …]
|
/freebsd/usr.sbin/services_mkdb/ |
H A D | services_mkdb.c | 91 StringList *sl, ***svc; in main() local 163 sl_free(sl, 1); in main() 200 for (i = 1; i < sl->sl_cur; 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() 224 sl->sl_str[i], proto) + 1; in add() 231 sl_free(sl, 1); in add() 410 for (i= 0; i < sl->sl_cur; i++) in getprotoindex() 419 (void)sl_add(sl, p); in getprotoindex() 426 assert(i < sl->sl_cur); in getprotostr() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | tw.init.c | 109 if (sl->tlist <= sl->nlist) { 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() 121 sl->buff = xrealloc(sl->buff, sl->tbuff * sizeof(Char)); in tw_str_add() 125 sl->list[i] = sl->buff + (sl->list[i] - ptr); in tw_str_add() 129 ptr = sl->list[sl->nlist++] = &sl->buff[sl->nbuff]; in tw_str_add() 143 xfree(sl->list); in tw_str_free() 144 sl->list = NULL; in tw_str_free() 145 sl->tlist = sl->nlist = 0; in tw_str_free() [all …]
|
H A D | tw.help.c | 180 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/sys/riscv/riscv/ |
H A D | busdma_bounce.c | 563 struct sync_list *sl; in bounce_bus_dmamap_load_phys() local 594 sl_end = sl->paddr + sl->datacount; in bounce_bus_dmamap_load_phys() 599 sl++; in bounce_bus_dmamap_load_phys() 600 sl->vaddr = 0; in bounce_bus_dmamap_load_phys() 679 sl_pend = sl->paddr + sl->datacount; in bounce_bus_dmamap_load_buffer() 680 sl_vend = sl->vaddr + sl->datacount; in bounce_bus_dmamap_load_buffer() 688 sl++; in bounce_bus_dmamap_load_buffer() 776 m = sl->pages; in dma_dcache_sync() 778 pa = sl->paddr; in dma_dcache_sync() 791 va = sl->vaddr; in dma_dcache_sync() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | segregs.sh | 60 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 D | pts2.sh | 65 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);
|
H A D | killpg4.sh | 90 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; }
|
/freebsd/libexec/rtld-elf/arm/ |
H A D | rtld_start.S | 42 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 D | busdma_bounce.c | 725 struct sync_list *sl; in bounce_bus_dmamap_load_phys() local 765 sl_end = sl->paddr + sl->datacount; in bounce_bus_dmamap_load_phys() 770 sl++; in bounce_bus_dmamap_load_phys() 771 sl->vaddr = 0; in bounce_bus_dmamap_load_phys() 872 sl_pend = sl->paddr + sl->datacount; in bounce_bus_dmamap_load_buffer() 873 sl_vend = sl->vaddr + sl->datacount; in bounce_bus_dmamap_load_buffer() 881 sl++; in bounce_bus_dmamap_load_buffer() 971 m = sl->pages; in dma_dcache_sync() 973 pa = sl->paddr; in dma_dcache_sync() 986 va = sl->vaddr; in dma_dcache_sync() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/ssp/ |
H A D | h_readlink.c | 48 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/sys/arm/arm/ |
H A D | busdma_machdep.c | 859 struct sync_list *sl; in _bus_dmamap_load_phys() local 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() 1009 sl_pend = sl->paddr + sl->datacount; in _bus_dmamap_load_buffer() 1010 sl_vend = sl->vaddr + sl->datacount; in _bus_dmamap_load_buffer() 1018 sl++; in _bus_dmamap_load_buffer() 1125 m = sl->pages; in dma_dcache_sync() 1127 pa = sl->paddr; in dma_dcache_sync() 1140 va = sl->vaddr; in dma_dcache_sync() [all …]
|
/freebsd/crypto/heimdal/lib/sl/ |
H A D | ChangeLog | 17 * sl.c: make compile. 19 * sl.c: Pass in pointer to strlen(). 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 166 * sl.h: proto 204 * sl.h (SL_BADCOMMAND): define 207 * sl.c: mandoc-generation 286 * sl.c (sl_loop): s/2/1 [all …]
|
/freebsd/kerberos5/lib/libsl/ |
H A D | Makefile | 4 LIB= sl 6 SRCS= sl.c 7 CFLAGS+=-I${KRB5DIR}/lib/sl 11 .PATH: ${KRB5DIR}/lib/sl
|
/freebsd/lib/msun/src/ |
H A D | s_clogf.c | 45 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()
|
H A D | s_clog.c | 45 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()
|