| /freebsd-14.2/lib/libc/stdio/ |
| H A D | fopencookie.c | 57 thunk = malloc(sizeof(*thunk)); in fopencookie() 58 if (thunk == NULL) in fopencookie() 74 free(thunk); in fopencookie() 89 thunk = cookie; in _fopencookie_read() 103 thunk = cookie; in _fopencookie_write() 109 return ((int)thunk->foc_io.write(thunk->foc_cookie, buf, in _fopencookie_write() 131 thunk = cookie; in _fopencookie_seek() 143 res = thunk->foc_io.seek(thunk->foc_cookie, &off64, whence); in _fopencookie_seek() 157 thunk = cookie; in _fopencookie_close() 159 ret = thunk->foc_io.close(thunk->foc_cookie); in _fopencookie_close() [all …]
|
| /freebsd-14.2/lib/libc/tests/stdlib/ |
| H A D | qsort_s_test.c | 70 int thunk = THUNK; in ATF_TC_BODY() local 80 int thunk = THUNK; in ATF_TC_BODY() local 90 int thunk = THUNK; in ATF_TC_BODY() local 100 int thunk = THUNK; in ATF_TC_BODY() local 110 int thunk = THUNK; in ATF_TC_BODY() local 120 int thunk = THUNK; in ATF_TC_BODY() local 136 int thunk = THUNK; in ATF_TC_BODY() local 152 int thunk = THUNK; in ATF_TC_BODY() local 168 int thunk = THUNK; in ATF_TC_BODY() local 184 int thunk = THUNK; in ATF_TC_BODY() local [all …]
|
| H A D | qsort_r_test.c | 40 sorthelp_r(const void *a, const void *b, void *thunk) in sorthelp_r() argument 44 ATF_REQUIRE_EQ(*(int *)thunk, THUNK); in sorthelp_r() 62 int thunk = THUNK; in ATF_TC_BODY() local 71 &thunk); in ATF_TC_BODY()
|
| H A D | qsort_r_compat_test.c | 40 sorthelp_r(void *thunk, const void *a, const void *b) in sorthelp_r() argument 44 ATF_REQUIRE_EQ(*(int *)thunk, THUNK); in sorthelp_r() 62 int thunk = THUNK; in ATF_TC_BODY() local 70 qsort_r(testvector, j, sizeof(testvector[0]), &thunk, in ATF_TC_BODY()
|
| /freebsd-14.2/sys/sys/ |
| H A D | queue_mergesort.h | 71 (sqms_cmp)(sqms_elm2, sqms_elm1, thunk) >= 0) { \ 87 sqms_mpos, thunk, sqms_cmp, TYPE, NAME, \ argument 107 thunk) >= 0)) { \ 154 sqms_sortmask, sqms_elm, sqms_mpos, thunk, sqms_cmp,\ 168 sqms_elm, sqms_mpos, thunk, sqms_cmp, \ 185 #define SLIST_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument 189 #define SLIST_MERGE(list1, list2, thunk, cmp, TYPE, NAME) \ argument 193 #define LIST_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument 197 #define LIST_MERGE(list1, list2, thunk, cmp, TYPE, NAME) \ argument 201 #define STAILQ_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument [all …]
|
| H A D | libkern.h | 206 int (*compar)(const void *, const void *, void *), void *thunk);
|
| /freebsd-14.2/lib/libc/stdlib/ |
| H A D | qsort.c | 90 return CMP(thunk, a, b) < 0 ? in med3() 91 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) in med3() 92 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); in med3() 134 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); in local_qsort() 135 pm = med3(pm - d, pm, pm + d, cmp, thunk); in local_qsort() 136 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in local_qsort() 138 pm = med3(pl, pm, pn, cmp, thunk); in local_qsort() 193 local_qsort(a, d1 / es, es, cmp, thunk); in local_qsort() 220 local_qsort_r(a, n, es, cmp, thunk); 226 local_qsort_r_compat(a, n, es, cmp, thunk); in __qsort_r_compat() [all …]
|
| /freebsd-14.2/sys/libkern/ |
| H A D | qsort.c | 101 return CMP(thunk, a, b) < 0 ? in med3() 102 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) in med3() 103 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); in med3() 110 #define thunk NULL 126 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; 138 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); 139 pm = med3(pm - d, pm, pm + d, cmp, thunk); 140 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); 142 pm = med3(pl, pm, pn, cmp, thunk); 193 qsort_r(a, d1 / es, es, cmp, thunk); [all …]
|
| /freebsd-14.2/crypto/heimdal/lib/roken/ |
| H A D | qsort.c | 99 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk in med3() argument 105 return CMP(thunk, a, b) < 0 ? in med3() 106 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) in med3() 107 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); in med3() 114 #define thunk NULL in rk_qsort_r() 129 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; in rk_qsort_r() 140 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); in rk_qsort_r() 141 pm = med3(pm - d, pm, pm + d, cmp, thunk); in rk_qsort_r() 142 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in rk_qsort_r() 144 pm = med3(pl, pm, pn, cmp, thunk); in rk_qsort_r() [all …]
|
| /freebsd-14.2/sys/dev/drm2/ |
| H A D | drm_linux_list_sort.c | 41 struct drm_list_sort_thunk *thunk; in drm_le_cmp() local 43 thunk = priv; in drm_le_cmp() 46 return ((thunk->cmp)(thunk->priv, le1, le2)); in drm_le_cmp() 56 struct drm_list_sort_thunk thunk; in drm_list_sort() local 67 thunk.cmp = cmp; in drm_list_sort() 68 thunk.priv = priv; in drm_list_sort() 69 qsort_r(ar, count, sizeof(struct list_head *), drm_le_cmp, &thunk); in drm_list_sort()
|
| /freebsd-14.2/lib/libproc/ |
| H A D | proc_sym.c | 109 struct symsort_thunk *thunk; in symvalcmp() local 116 thunk = _thunk; in symvalcmp() 118 (void)gelf_getsym(thunk->symtab->data, i1, &sym1); in symvalcmp() 119 (void)gelf_getsym(thunk->symtab->data, i2, &sym2); in symvalcmp() 134 s1 = elf_strptr(thunk->e, thunk->symtab->stridx, sym1.st_name); in symvalcmp() 135 s2 = elf_strptr(thunk->e, thunk->symtab->stridx, sym2.st_name); in symvalcmp() 160 struct symsort_thunk thunk; in load_symtab() local 191 thunk.e = e; in load_symtab() 192 thunk.symtab = symtab; in load_symtab() 193 qsort_r(symtab->index, nsyms, sizeof(u_int), symvalcmp, &thunk); in load_symtab()
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | scandir-compat11.c | 59 void *thunk); 141 freebsd11_scandir_thunk_cmp(const void *p1, const void *p2, void *thunk) in freebsd11_scandir_thunk_cmp() argument 147 const struct freebsd11_dirent **))thunk; in freebsd11_scandir_thunk_cmp()
|
| H A D | scandir.c | 64 static int scandir_thunk_cmp(const void *p1, const void *p2, void *thunk); 200 scandir_thunk_cmp(const void *p1, const void *p2, void *thunk) in scandir_thunk_cmp() argument 204 dc = *(int (**)(const struct dirent **, const struct dirent **))thunk; in scandir_thunk_cmp()
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_thr.c | 103 thr_create_initthr(struct thread *td, void *thunk) in thr_create_initthr() argument 108 args = thunk; in thr_create_initthr() 144 thr_new_initthr(struct thread *td, void *thunk) in thr_new_initthr() argument 157 param = thunk; in thr_new_initthr() 193 int (*initialize_thread)(struct thread *, void *), void *thunk) in thread_create() argument 244 error = initialize_thread(newtd, thunk); in thread_create()
|
| /freebsd-14.2/sys/net/ |
| H A D | if.c | 2919 } thunk; in ifioctl() local 2949 thunk.ifc.ifc_len = ifc32->ifc_len; in ifioctl() 2951 data = (caddr_t)&thunk.ifc; in ifioctl() 2958 sizeof(thunk.ifd.ifd_name)); in ifioctl() 2959 thunk.ifd.ifd_cmd = ifd32->ifd_cmd; in ifioctl() 2962 data = (caddr_t)&thunk.ifd; in ifioctl() 2971 sizeof(thunk.ifgr.ifgr_name)); in ifioctl() 2984 data = (caddr_t)&thunk.ifgr; in ifioctl() 2991 sizeof(thunk.ifmr.ifm_name)); in ifioctl() 2998 data = (caddr_t)&thunk.ifmr; in ifioctl() [all …]
|
| /freebsd-14.2/sys/opencrypto/ |
| H A D | cryptodev.c | 1137 } thunk; in crypto_ioctl() local 1149 data = (void *)&thunk.sopc; in crypto_ioctl() 1150 session_op_from_32((struct session_op32 *)data32, &thunk.sopc); in crypto_ioctl() 1156 data = (void *)&thunk.sopc; in crypto_ioctl() 1158 &thunk.sopc); in crypto_ioctl() 1164 data = (void *)&thunk.copc; in crypto_ioctl() 1165 crypt_op_from_32((struct crypt_op32 *)data32, &thunk.copc); in crypto_ioctl() 1171 data = (void *)&thunk.aeadc; in crypto_ioctl() 1172 crypt_aead_from_32((struct crypt_aead32 *)data32, &thunk.aeadc); in crypto_ioctl() 1198 session2_op_from_op((void *)data, &thunk.sopc); in crypto_ioctl() [all …]
|
| /freebsd-14.2/contrib/llvm-project/lld/MachO/Arch/ |
| H A D | ARM64.cpp | 43 void populateThunk(InputSection *thunk, Symbol *funcSym) override; 167 void ARM64::populateThunk(InputSection *thunk, Symbol *funcSym) { in populateThunk() argument 168 thunk->align = 4; in populateThunk() 169 thunk->data = {reinterpret_cast<const uint8_t *>(thunkCode), in populateThunk() 171 thunk->relocs.emplace_back(/*type=*/ARM64_RELOC_PAGEOFF12, in populateThunk() 175 thunk->relocs.emplace_back(/*type=*/ARM64_RELOC_PAGE21, in populateThunk()
|
| /freebsd-14.2/include/ |
| H A D | stdlib.h | 362 void *thunk, int (*compar)(void *, const void *, const void *)) { in qsort_r() argument 363 __qsort_r_compat(base, nmemb, size, thunk, compar); in qsort_r()
|
| /freebsd-14.2/contrib/llvm-project/lld/COFF/ |
| H A D | InputFiles.h | 161 uint32_t addRangeThunkSymbol(Symbol *thunk) { in addRangeThunkSymbol() argument 162 symbols.push_back(thunk); in addRangeThunkSymbol()
|
| H A D | DLL.cpp | 533 : thunk(c), ctx(ctx) { in DelayAddressChunk() 540 write64le(buf, thunk->getRVA() + ctx.config.imageBase); in writeTo() 546 write32le(buf, (thunk->getRVA() + ctx.config.imageBase) | bit); in writeTo() 554 Chunk *thunk; member in lld::coff::__anon094f78ea0111::DelayAddressChunk
|
| H A D | Writer.cpp | 499 auto [thunk, wasNew] = getThunk(lastThunks, sym, p, rel.Type, margin); in createThunks() 501 Chunk *thunkChunk = thunk->getChunk(); in createThunks() 514 auto insertion = thunkSymtabIndices.insert({{file, thunk}, ~0U}); in createThunks() 517 thunkSymbolIndex = file->addRangeThunkSymbol(thunk); in createThunks() 1204 DefinedImportThunk *thunk = cast<DefinedImportThunk>(file->thunkSym); in appendImportThunks() local 1206 textSec->addChunk(thunk->getChunk()); in appendImportThunks()
|
| H A D | PDB.cpp | 1555 DefinedImportThunk *thunk = cast<DefinedImportThunk>(file->thunkSym); in addImportFilesToPDB() local 1556 Chunk *thunkChunk = thunk->getChunk(); in addImportFilesToPDB() 1569 ts.Name = thunk->getName(); in addImportFilesToPDB() 1600 createSectionContrib(ctx, thunk->getChunk(), mod->getModuleIndex()); in addImportFilesToPDB()
|
| /freebsd-14.2/sys/compat/linuxkpi/common/src/ |
| H A D | linux_compat.c | 2440 struct list_sort_thunk *thunk; in linux_le_cmp() local 2442 thunk = priv; in linux_le_cmp() 2445 return ((thunk->cmp)(thunk->priv, le1, le2)); in linux_le_cmp() 2452 struct list_sort_thunk thunk; in list_sort() local 2463 thunk.cmp = cmp; in list_sort() 2464 thunk.priv = priv; in list_sort() 2465 qsort_r(ar, count, sizeof(struct list_head *), linux_le_cmp, &thunk); in list_sort()
|
| /freebsd-14.2/contrib/llvm-project/lld/MachO/ |
| H A D | Target.h | 86 virtual void populateThunk(InputSection *thunk, Symbol *funcSym) { in populateThunk() argument
|
| /freebsd-14.2/bin/sh/ |
| H A D | histedit.c | 587 comparator(const void *a, const void *b, void *thunk) in comparator() argument 589 size_t curpos = (intptr_t)thunk; in comparator()
|