Home
last modified time | relevance | path

Searched refs:destructor (Results 1 – 25 of 116) sorted by relevance

12345

/freebsd/lib/libthr/thread/
H A Dthr_spec.c57 _thr_key_create(pthread_key_t *key, void (*destructor)(void *)) in _thr_key_create()
71 _thread_keytable[i].destructor = destructor; in _thr_key_create()
109 void (*destructor)(void *); in _thread_cleanupspecific() local
121 destructor = NULL; in _thread_cleanupspecific()
128 destructor = _thread_keytable[key]. in _thread_cleanupspecific()
129 destructor; in _thread_cleanupspecific()
150 if (destructor != NULL) { in _thread_cleanupspecific()
152 destructor(__DECONST(void *, data)); in _thread_cleanupspecific()
229 void (*destructor)(void *); in _thr_tsd_unload() local
237 destructor = _thread_keytable[key].destructor; in _thr_tsd_unload()
[all …]
/freebsd/cddl/compat/opensolaris/lib/libumem/
H A Dumem.c34 umem_destructor_t *destructor; member
104 …ize, size_t align, umem_constructor_t *constructor, umem_destructor_t *destructor, umem_reclaim_t … in umem_cache_create() argument
113 cache->destructor = destructor; in umem_cache_create()
155 if(cache->destructor != NULL) in umem_cache_free()
156 cache->destructor(buffer, cache->callback_data); in umem_cache_free()
/freebsd/contrib/netbsd-tests/lib/csu/
H A Dt_crt0.sh38 destructor executed
54 destructor executed
74 destructor executed
91 destructor executed
/freebsd/sys/sys/
H A Dosd.h57 int osd_register(u_int type, osd_destructor_t destructor,
73 #define osd_thread_register(destructor) \ argument
74 osd_register(OSD_THREAD, (destructor), NULL)
94 #define osd_jail_register(destructor, methods) \ argument
95 osd_register(OSD_JAIL, (destructor), (methods))
/freebsd/lib/libc/locale/
H A Dxlocale_private.h89 void(*destructor)(void*); member
158 if (count < 0 && obj->destructor != NULL) in xlocale_release()
159 obj->destructor(obj); in xlocale_release()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DDiagnosticASTKinds.td338 "pseudo-destructor call is not permitted in constant expressions "
392 "base class type %0 with non-virtual destructor">;
691 "%select{method %5|constructor|destructor}4|"
692 "%select{method %5|constructor|destructor}4 "
694 "%select{method %5|constructor|destructor}4 "
696 "%select{method %5|constructor|destructor}4 "
698 "%select{method %5|constructor|destructor}4 "
700 "%select{method %5|constructor|destructor}4 "
702 "%select{method %5|constructor|destructor}4 "
704 "%select{method %5|constructor|destructor}4 "
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_archive_read_support.c35 typedef int destructor(struct archive *);
49 test_success(constructor new_, enabler enable_, destructor free_)
65 test_failure(constructor new_, enabler enable_, destructor free_)
36 typedef int destructor(struct archive *); global() typedef
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_posix.cpp30 void TSDInit(void (*destructor)(void *tsd)) { in TSDInit()
33 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in TSDInit()
H A Dmemprof_internal.h65 void TSDInit(void (*destructor)(void *tsd));
/freebsd/contrib/byacc/test/btyacc/
H A Derr_inherit4.error1 YACC: w - line 32 of "./err_inherit4.y", destructor redeclared
2 %destructor {
/freebsd/contrib/byacc/
H A Dreader.c110 int destructor = 0; /* =1 if at least one %destructor */ variable
2122 destructor = 1; in read_declarations()
3422 if (bp->destructor != NULL) in copy_destructor()
3426 bp->destructor = process_destructor_XX(code_text, NULL); in copy_destructor()
3438 if (bp->destructor != NULL) in copy_destructor()
3443 bp->destructor = TMALLOC(char, strlen(code_text) + 1); in copy_destructor()
3444 NO_SPACE(bp->destructor); in copy_destructor()
3445 strcpy(bp->destructor, code_text); in copy_destructor()
3452 if (bp->destructor != NULL) in copy_destructor()
3456 bp->destructor = process_destructor_XX(code_text, tag); in copy_destructor()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_linux.cpp239 void MsanTSDInit(void (*destructor)(void *tsd)) { in MsanTSDInit()
241 tsd_destructor = destructor; in MsanTSDInit()
268 void MsanTSDInit(void (*destructor)(void *tsd)) { in MsanTSDInit()
271 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit()
/freebsd/crypto/heimdal/include/
H A Dheim_threads.h162 void (*destructor)(void *); member
167 do { (k)->value = NULL; (k)->destructor = (d); r = 0; } while(0)
170 #define HEIMDAL_key_delete(k) do { (*(k).destructor)((k).value); } while(0)
/freebsd/sys/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dzfs_context_os.h51 #define tsd_create(keyp, destructor) do { \ argument
52 *(keyp) = osd_thread_register((destructor)); \
/freebsd/contrib/byacc/test/
H A Dbtyacc_demo.y67 %destructor { // 'msg' is a 'char *' indicating the context of destructor invocation
73 %destructor { printf("%s accessed by symbol with type <decl> (case s.b. 279 & 280) @ position[%d,%d…
78 %destructor { printf("%s accessed by symbol of any type other than <decl> @ position[%d,%d..%d,%d]…
83 %destructor { printf("%s accessed by symbol with no type @ position[%d,%d..%d,%d]\n",
H A Derr_inherit4.y28 %destructor { } <nlist>
32 %destructor {
H A Dbtyacc_destroy1.y39 %destructor { if (!param->rtrn) close($$); } <file>
41 %destructor {
H A Dbtyacc_destroy2.y39 %destructor { if (!param->rtrn) close($$); } <file>
41 %destructor {
H A Dbtyacc_destroy3.y42 %destructor { if (!param->rtrn) close($$); } <file>
44 %destructor {
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_kmem.c157 int (*constructor)(void *, void *, int), void (*destructor)(void *, void *), in kmem_cache_create()
167 cache->kc_destructor = destructor; in kmem_cache_create()
172 destructor != NULL ? kmem_std_destructor : NULL, in kmem_cache_create()
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_libdispatch.cpp564 size_t size, dispatch_queue_t q, dispatch_block_t destructor) { in DECLARE_REAL_AND_INTERCEPTOR()
565 SCOPED_TSAN_INTERCEPTOR(dispatch_data_create, buffer, size, q, destructor); in DECLARE_REAL_AND_INTERCEPTOR()
566 if ((q == nullptr) || (destructor == DISPATCH_DATA_DESTRUCTOR_DEFAULT)) in DECLARE_REAL_AND_INTERCEPTOR()
567 return REAL(dispatch_data_create)(buffer, size, q, destructor); in DECLARE_REAL_AND_INTERCEPTOR()
569 if (destructor == DISPATCH_DATA_DESTRUCTOR_FREE) in DECLARE_REAL_AND_INTERCEPTOR()
570 destructor = ^(void) { WRAP(free)((void *)(uintptr_t)buffer); }; in DECLARE_REAL_AND_INTERCEPTOR()
571 else if (destructor == DISPATCH_DATA_DESTRUCTOR_MUNMAP) in DECLARE_REAL_AND_INTERCEPTOR()
572 destructor = ^(void) { WRAP(munmap)((void *)(uintptr_t)buffer, size); }; in DECLARE_REAL_AND_INTERCEPTOR()
575 dispatch_block_t heap_block = Block_copy(destructor); in DECLARE_REAL_AND_INTERCEPTOR()
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_thread.cpp102 void DFsanTSDInit(void (*destructor)(void *tsd)) { in DFsanTSDInit()
105 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in DFsanTSDInit()
/freebsd/sys/kern/
H A Dkern_osd.c93 osd_register(u_int type, osd_destructor_t destructor, const osd_method_t *methods) in osd_register() argument
104 if (destructor == NULL) in osd_register()
105 destructor = osd_default_destructor; in osd_register()
139 osdm[type].osd_destructors[i] = destructor; in osd_register()
/freebsd/sys/contrib/openzfs/lib/libspl/include/
H A Dumem.h163 umem_destructor_t *destructor, in umem_cache_create() argument
175 cp->cache_destructor = destructor; in umem_cache_create()
/freebsd/sys/geom/raid/
H A Dg_raid_md_if.m157 # free_disk() - disk destructor.
163 # free_volume() - volume destructor.
169 # free() - destructor.

12345