/freebsd-13-stable/lib/libc/stdio/ |
H A D | fopencookie.c | 53 struct fopencookie_thunk *thunk; local 60 thunk = malloc(sizeof(*thunk)); 61 if (thunk == NULL) 64 thunk->foc_cookie = cookie; 65 thunk->foc_io = io_funcs; 74 fp = funopen(thunk, readfn, writefn, _fopencookie_seek, 77 free(thunk); 90 struct fopencookie_thunk *thunk; local 92 thunk 104 struct fopencookie_thunk *thunk; local 119 struct fopencookie_thunk *thunk; local 156 struct fopencookie_thunk *thunk; local [all...] |
/freebsd-13-stable/sys/dev/drm2/ |
H A D | drm_linux_list_sort.c | 44 struct drm_list_sort_thunk *thunk; local 46 thunk = priv; 49 return ((thunk->cmp)(thunk->priv, le1, le2)); 59 struct drm_list_sort_thunk thunk; local 70 thunk.cmp = cmp; 71 thunk.priv = priv; 72 qsort_r(ar, count, sizeof(struct list_head *), &thunk, drm_le_cmp);
|
/freebsd-13-stable/lib/libc/tests/stdlib/ |
H A D | qsort_s_test.c | 47 sorthelp_s(const void *a, const void *b, void *thunk) argument 51 ATF_REQUIRE_EQ(*(int *)thunk, THUNK); 73 int thunk = THUNK; local 76 ATF_CHECK(qsort_s(&b, -1, sizeof(int), sorthelp_s, &thunk) != 0); 83 int thunk = THUNK; local 86 ATF_CHECK(qsort_s(&b, RSIZE_MAX + 1, sizeof(int), sorthelp_s, &thunk) != 0); 93 int thunk = THUNK; local 96 ATF_CHECK(qsort_s(&b, 1, -1, sorthelp_s, &thunk) != 0); 103 int thunk = THUNK; local 106 ATF_CHECK(qsort_s(&b, 1, RSIZE_MAX + 1, sorthelp_s, &thunk) ! 113 int thunk = THUNK; local 123 int thunk = THUNK; local 139 int thunk = THUNK; local 155 int thunk = THUNK; local 171 int thunk = THUNK; local 187 int thunk = THUNK; local 202 int thunk = THUNK; local 220 int thunk = THUNK; local [all...] |
H A D | qsort_r_test.c | 43 sorthelp_r(void *thunk, const void *a, const void *b) argument 47 ATF_REQUIRE_EQ(*(int *)thunk, THUNK); 65 int thunk = THUNK; local 73 qsort_r(testvector, j, sizeof(testvector[0]), &thunk,
|
/freebsd-13-stable/lib/libc/stdlib/ |
H A D | qsort.c | 83 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk 89 return CMP(thunk, a, b) < 0 ? 90 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) 91 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); 104 local_qsort(void *a, size_t n, size_t es, cmp_t *cmp, void *thunk) argument 116 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; 128 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); 129 pm = med3(pm - d, pm, pm + d, cmp, thunk); 207 qsort_r(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp) argument 213 qsort_s(void *a, rsize_t n, rsize_t es, cmp_t *cmp, void *thunk) argument [all...] |
/freebsd-13-stable/sys/libkern/ |
H A D | qsort.c | 97 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk 103 return CMP(thunk, a, b) < 0 ? 104 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) 105 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); 110 qsort_r(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp) argument 112 #define thunk NULL 128 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; 140 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); [all...] |
/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | qsort.c | 99 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk 105 return CMP(thunk, a, b) < 0 ? 106 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) 107 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); 112 rk_qsort_r(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp) argument 114 #define thunk NULL 129 pl > (char *)a && CMP(thunk, pl - es, pl) > 0; 140 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); [all...] |
/freebsd-13-stable/sys/compat/cloudabi32/ |
H A D | cloudabi32_thread.c | 45 initialize_thread(struct thread *td, void *thunk) argument 47 struct thread_create_args *args = thunk;
|
/freebsd-13-stable/sys/compat/cloudabi64/ |
H A D | cloudabi64_thread.c | 45 initialize_thread(struct thread *td, void *thunk) argument 47 struct thread_create_args *args = thunk;
|
/freebsd-13-stable/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) argument 150 const struct freebsd11_dirent **))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) argument 158 dc = *(int (**)(const struct dirent **, const struct dirent **))thunk;
|
/freebsd-13-stable/sys/compat/ndis/ |
H A D | winx32_wrap.S | 80 * You'll notice that we call the thunk/unthunk routines in the 87 * we only know the absolute addresses of the thunk and unthunk 91 * Also note that when we call the a thunk/unthunk routine after 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 329 * Once we have a custom descriptor, we have to thunk/unthun [all...] |
/freebsd-13-stable/lib/libproc/ |
H A D | proc_sym.c | 114 struct symsort_thunk *thunk; local 121 thunk = _thunk; 123 (void)gelf_getsym(thunk->symtab->data, i1, &sym1); 124 (void)gelf_getsym(thunk->symtab->data, i2, &sym2); 139 s1 = elf_strptr(thunk->e, thunk->symtab->stridx, sym1.st_name); 140 s2 = elf_strptr(thunk->e, thunk->symtab->stridx, sym2.st_name); 165 struct symsort_thunk thunk; local 196 thunk [all...] |
/freebsd-13-stable/sys/kern/ |
H A D | kern_thr.c | 106 thr_create_initthr(struct thread *td, void *thunk) argument 111 args = thunk; 147 thr_new_initthr(struct thread *td, void *thunk) argument 159 param = thunk; 193 int (*initialize_thread)(struct thread *, void *), void *thunk) 244 error = initialize_thread(newtd, thunk); 192 thread_create(struct thread *td, struct rtprio *rtp, int (*initialize_thread)(struct thread *, void *), void *thunk) argument
|
/freebsd-13-stable/sys/opencrypto/ |
H A D | cryptodev.c | 1407 } thunk; local 1419 data = (void *)&thunk.sopc; 1420 session_op_from_32((struct session_op32 *)data32, &thunk.sopc); 1426 data = (void *)&thunk.sopc; 1428 &thunk.sopc); 1434 data = (void *)&thunk.copc; 1435 crypt_op_from_32((struct crypt_op32 *)data32, &thunk.copc); 1441 data = (void *)&thunk.aeadc; 1442 crypt_aead_from_32((struct crypt_aead32 *)data32, &thunk.aeadc); 1452 data = (void *)&thunk [all...] |
/freebsd-13-stable/contrib/llvm-project/lld/COFF/ |
H A D | InputFiles.h | 161 // Add a symbol for a range extension thunk. Return the new symbol table 163 uint32_t addRangeThunkSymbol(Symbol *thunk) { argument 164 symbols.push_back(thunk); 359 // imported symbol is used separately from whether the thunk is used in order
|
H A D | DLL.cpp | 293 // A chunk for the delay import thunk. 451 explicit DelayAddressChunk(Chunk *c) : thunk(c) { 458 write64le(buf, thunk->getRVA() + config->imageBase); 464 write32le(buf, (thunk->getRVA() + config->imageBase) | bit); 472 Chunk *thunk; member in class:lld::coff::__anon2668::DelayAddressChunk
|
H A D | Writer.cpp | 377 // Return the last thunk for the given target if it is in range, 402 // it adds a thunk after the section chunk that contains the relocation. 403 // If the latest thunk for the specific target is in range, that is used 404 // instead of creating a new thunk. All range checks are done with the 440 // it), giving us some uncertainty once we have added one thunk. 453 // thunk. 454 Defined *thunk; local 456 std::tie(thunk, wasNew) = getThunk(lastThunks, sym, p, rel.Type, margin); 458 Chunk *thunkChunk = thunk->getChunk(); 471 auto insertion = thunkSymtabIndices.insert({{file, thunk}, ~ 1025 DefinedImportThunk *thunk = cast<DefinedImportThunk>(file->thunkSym); local [all...] |
H A D | PDB.cpp | 1311 DefinedImportThunk *thunk = cast<DefinedImportThunk>(file->thunkSym); local 1312 Chunk *thunkChunk = thunk->getChunk(); 1325 ts.Name = thunk->getName(); 1353 createSectionContrib(thunk->getChunk(), mod->getModuleIndex());
|
/freebsd-13-stable/bin/sh/ |
H A D | histedit.c | 535 comparator(const void *a, const void *b, void *thunk) argument 537 size_t curpos = (intptr_t)thunk;
|
/freebsd-13-stable/sys/sys/ |
H A D | libkern.h | 166 void qsort_r(void *base, size_t nmemb, size_t size, void *thunk,
|
H A D | proc.h | 1179 int (*initialize_thread)(struct thread *, void *), void *thunk);
|
/freebsd-13-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_compat.c | 2410 struct list_sort_thunk *thunk; local 2412 thunk = priv; 2415 return ((thunk->cmp)(thunk->priv, le1, le2)); 2422 struct list_sort_thunk thunk; local 2433 thunk.cmp = cmp; 2434 thunk.priv = priv; 2435 qsort_r(ar, count, sizeof(struct list_head *), &thunk, linux_le_cmp);
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
H A D | MachO.h | 906 uint32_t thunk; member in struct:llvm::MachO::tlv_descriptor_32 912 uint64_t thunk; member in struct:llvm::MachO::tlv_descriptor_64 918 uintptr_t thunk; member in struct:llvm::MachO::tlv_descriptor
|