| /freebsd-13.1/lib/libc/stdio/ |
| H A D | fopencookie.c | 60 thunk = malloc(sizeof(*thunk)); in fopencookie() 61 if (thunk == NULL) in fopencookie() 77 free(thunk); in fopencookie() 92 thunk = cookie; in _fopencookie_read() 106 thunk = cookie; in _fopencookie_write() 112 return ((int)thunk->foc_io.write(thunk->foc_cookie, buf, in _fopencookie_write() 134 thunk = cookie; in _fopencookie_seek() 146 res = thunk->foc_io.seek(thunk->foc_cookie, &off64, whence); in _fopencookie_seek() 160 thunk = cookie; in _fopencookie_close() 162 ret = thunk->foc_io.close(thunk->foc_cookie); in _fopencookie_close() [all …]
|
| /freebsd-13.1/lib/libc/tests/stdlib/ |
| H A D | qsort_s_test.c | 73 int thunk = THUNK; in ATF_TC_BODY() local 83 int thunk = THUNK; in ATF_TC_BODY() local 93 int thunk = THUNK; in ATF_TC_BODY() local 103 int thunk = THUNK; in ATF_TC_BODY() local 113 int thunk = THUNK; in ATF_TC_BODY() local 123 int thunk = THUNK; in ATF_TC_BODY() local 139 int thunk = THUNK; in ATF_TC_BODY() local 155 int thunk = THUNK; in ATF_TC_BODY() local 171 int thunk = THUNK; in ATF_TC_BODY() local 187 int thunk = THUNK; in ATF_TC_BODY() local [all …]
|
| H A D | qsort_r_test.c | 43 sorthelp_r(void *thunk, const void *a, const void *b) in sorthelp_r() argument 47 ATF_REQUIRE_EQ(*(int *)thunk, THUNK); in sorthelp_r() 65 int thunk = THUNK; in ATF_TC_BODY() local 73 qsort_r(testvector, j, sizeof(testvector[0]), &thunk, in ATF_TC_BODY()
|
| /freebsd-13.1/lib/libc/stdlib/ |
| H A D | qsort.c | 89 return CMP(thunk, a, b) < 0 ? in med3() 90 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) in med3() 91 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); in med3() 130 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); in local_qsort() 131 pm = med3(pm - d, pm, pm + d, cmp, thunk); in local_qsort() 132 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in local_qsort() 134 pm = med3(pl, pm, pn, cmp, thunk); in local_qsort() 184 local_qsort(a, d1 / es, es, cmp, thunk); in local_qsort() 196 local_qsort(pn - d2, d2 / es, es, cmp, thunk); in local_qsort() 211 local_qsort_r(a, n, es, cmp, thunk); in qsort_r() [all …]
|
| /freebsd-13.1/sys/libkern/ |
| H A D | qsort.c | 103 return CMP(thunk, a, b) < 0 ? in med3() 104 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) in med3() 105 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); in med3() 112 #define thunk NULL in qsort_r() 128 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; in qsort_r() 140 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); in qsort_r() 141 pm = med3(pm - d, pm, pm + d, cmp, thunk); in qsort_r() 142 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in qsort_r() 144 pm = med3(pl, pm, pn, cmp, thunk); in qsort_r() 195 qsort_r(a, d1 / es, es, thunk, cmp); in qsort_r() [all …]
|
| /freebsd-13.1/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-13.1/sys/dev/drm2/ |
| H A D | drm_linux_list_sort.c | 43 struct drm_list_sort_thunk *thunk; in drm_le_cmp() local 45 thunk = priv; in drm_le_cmp() 48 return ((thunk->cmp)(thunk->priv, le1, le2)); in drm_le_cmp() 58 struct drm_list_sort_thunk thunk; in drm_list_sort() local 69 thunk.cmp = cmp; in drm_list_sort() 70 thunk.priv = priv; in drm_list_sort() 71 qsort_r(ar, count, sizeof(struct list_head *), &thunk, drm_le_cmp); in drm_list_sort()
|
| /freebsd-13.1/contrib/llvm-project/lld/MachO/Arch/ |
| H A D | ARM64.cpp | 37 void populateThunk(InputSection *thunk, Symbol *funcSym) override; 117 void ARM64::populateThunk(InputSection *thunk, Symbol *funcSym) { in populateThunk() argument 118 thunk->align = 4; in populateThunk() 119 thunk->data = {reinterpret_cast<const uint8_t *>(thunkCode), in populateThunk() 121 thunk->relocs.push_back({/*type=*/ARM64_RELOC_PAGEOFF12, in populateThunk() 125 thunk->relocs.push_back({/*type=*/ARM64_RELOC_PAGE21, in populateThunk()
|
| /freebsd-13.1/sys/compat/ndis/ |
| H A D | winx32_wrap.S | 133 call *%eax # thunk 166 call ctxsw_utow # thunk 211 call *%eax # thunk 231 call ctxsw_utow # thunk 272 call *%eax # thunk 288 call ctxsw_utow # thunk
|
| /freebsd-13.1/lib/libproc/ |
| H A D | proc_sym.c | 114 struct symsort_thunk *thunk; in symvalcmp() local 121 thunk = _thunk; in symvalcmp() 123 (void)gelf_getsym(thunk->symtab->data, i1, &sym1); in symvalcmp() 124 (void)gelf_getsym(thunk->symtab->data, i2, &sym2); in symvalcmp() 139 s1 = elf_strptr(thunk->e, thunk->symtab->stridx, sym1.st_name); in symvalcmp() 140 s2 = elf_strptr(thunk->e, thunk->symtab->stridx, sym2.st_name); in symvalcmp() 165 struct symsort_thunk thunk; in load_symtab() local 196 thunk.e = e; in load_symtab() 197 thunk.symtab = symtab; in load_symtab() 198 qsort_r(symtab->index, nsyms, sizeof(u_int), &thunk, symvalcmp); in load_symtab()
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | scandir-compat11.c | 61 static int freebsd11_alphasort_thunk(void *thunk, const void *p1, 144 freebsd11_alphasort_thunk(void *thunk, const void *p1, const void *p2) in freebsd11_alphasort_thunk() argument 150 const struct freebsd11_dirent **))thunk; in freebsd11_alphasort_thunk()
|
| H A D | scandir.c | 64 static int alphasort_thunk(void *thunk, const void *p1, const void *p2); 154 alphasort_thunk(void *thunk, const void *p1, const void *p2) in alphasort_thunk() argument 158 dc = *(int (**)(const struct dirent **, const struct dirent **))thunk; in alphasort_thunk()
|
| /freebsd-13.1/sys/compat/cloudabi32/ |
| H A D | cloudabi32_thread.c | 45 initialize_thread(struct thread *td, void *thunk) in initialize_thread() argument 47 struct thread_create_args *args = thunk; in initialize_thread()
|
| /freebsd-13.1/sys/compat/cloudabi64/ |
| H A D | cloudabi64_thread.c | 45 initialize_thread(struct thread *td, void *thunk) in initialize_thread() argument 47 struct thread_create_args *args = thunk; in initialize_thread()
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_thr.c | 106 thr_create_initthr(struct thread *td, void *thunk) in thr_create_initthr() argument 111 args = thunk; in thr_create_initthr() 147 thr_new_initthr(struct thread *td, void *thunk) in thr_new_initthr() argument 159 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-13.1/sys/opencrypto/ |
| H A D | cryptodev.c | 1462 } thunk; in crypto_ioctl() local 1474 data = (void *)&thunk.sopc; in crypto_ioctl() 1481 data = (void *)&thunk.sopc; in crypto_ioctl() 1483 &thunk.sopc); in crypto_ioctl() 1489 data = (void *)&thunk.copc; in crypto_ioctl() 1490 crypt_op_from_32((struct crypt_op32 *)data32, &thunk.copc); in crypto_ioctl() 1496 data = (void *)&thunk.aeadc; in crypto_ioctl() 1507 data = (void *)&thunk.kopc; in crypto_ioctl() 1508 crypt_kop_from_32((struct crypt_kop32 *)data32, &thunk.kopc); in crypto_ioctl() 1534 session2_op_from_op((void *)data, &thunk.sopc); in crypto_ioctl() [all …]
|
| /freebsd-13.1/contrib/llvm-project/lld/COFF/ |
| H A D | DLL.cpp | 451 explicit DelayAddressChunk(Chunk *c) : thunk(c) { in DelayAddressChunk() 458 write64le(buf, thunk->getRVA() + config->imageBase); in writeTo() 464 write32le(buf, (thunk->getRVA() + config->imageBase) | bit); in writeTo() 472 Chunk *thunk; member in lld::coff::__anon342243280111::DelayAddressChunk
|
| H A D | InputFiles.h | 169 uint32_t addRangeThunkSymbol(Symbol *thunk) { in addRangeThunkSymbol() argument 170 symbols.push_back(thunk); in addRangeThunkSymbol()
|
| H A D | Writer.cpp | 463 Defined *thunk; in createThunks() local 465 std::tie(thunk, wasNew) = getThunk(lastThunks, sym, p, rel.Type, margin); in createThunks() 467 Chunk *thunkChunk = thunk->getChunk(); in createThunks() 480 auto insertion = thunkSymtabIndices.insert({{file, thunk}, ~0U}); in createThunks() 483 thunkSymbolIndex = file->addRangeThunkSymbol(thunk); in createThunks() 1051 DefinedImportThunk *thunk = cast<DefinedImportThunk>(file->thunkSym); in appendImportThunks() local 1053 textSec->addChunk(thunk->getChunk()); in appendImportThunks()
|
| H A D | PDB.cpp | 1523 DefinedImportThunk *thunk = cast<DefinedImportThunk>(file->thunkSym); in addImportFilesToPDB() local 1524 Chunk *thunkChunk = thunk->getChunk(); in addImportFilesToPDB() 1537 ts.Name = thunk->getName(); in addImportFilesToPDB() 1567 createSectionContrib(thunk->getChunk(), mod->getModuleIndex()); in addImportFilesToPDB()
|
| /freebsd-13.1/contrib/llvm-project/lld/MachO/ |
| H A D | Target.h | 69 virtual void populateThunk(InputSection *thunk, Symbol *funcSym) { in populateThunk() argument
|
| /freebsd-13.1/bin/sh/ |
| H A D | histedit.c | 521 comparator(const void *a, const void *b, void *thunk) in comparator() argument 523 size_t curpos = (intptr_t)thunk; in comparator()
|
| /freebsd-13.1/sys/compat/linuxkpi/common/src/ |
| H A D | linux_compat.c | 2567 struct list_sort_thunk *thunk; in linux_le_cmp() local 2569 thunk = priv; in linux_le_cmp() 2572 return ((thunk->cmp)(thunk->priv, le1, le2)); in linux_le_cmp() 2579 struct list_sort_thunk thunk; in list_sort() local 2590 thunk.cmp = cmp; in list_sort() 2591 thunk.priv = priv; in list_sort() 2592 qsort_r(ar, count, sizeof(struct list_head *), &thunk, linux_le_cmp); in list_sort()
|
| /freebsd-13.1/sys/sys/ |
| H A D | libkern.h | 166 void qsort_r(void *base, size_t nmemb, size_t size, void *thunk,
|
| /freebsd-13.1/contrib/llvm-project/lld/docs/ |
| H A D | ReleaseNotes.rst | 95 * The ARM port now accounts for PC biases in range extension thunk creation. 103 * Fixed a thunk creation bug in the PowerPC port when TOC/NOTOC calls are mixed.
|