/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | spawn.c | 324 if ((dirbuf = lmalloc(DIRBUF)) == NULL) in posix_spawn() 428 if ((dirbuf = lmalloc(DIRBUF)) == NULL) in posix_spawnp() 600 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_addopen() 604 if ((fap->fa_path = lmalloc(fap->fa_pathsize)) == NULL) { in posix_spawn_file_actions_addopen() 628 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_addclose() 648 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_adddup2() 668 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_addclosefrom_np() 684 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_addchdir() 688 if ((fap->fa_path = lmalloc(fap->fa_pathsize)) == NULL) { in posix_spawn_file_actions_addchdir() 717 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_addfchdir() [all …]
|
H A D | alloc.c | 181 lmalloc(size_t size) in lmalloc() function 351 if ((ptr = lmalloc(size)) == NULL) in libc_malloc() 364 if ((ptr = lmalloc(size)) == NULL) in libc_realloc()
|
H A D | tls.c | 63 modinfo = lmalloc(mod_slots * sizeof (TLS_modinfo)); in tls_modinfo_alloc() 119 tlsm->static_tls.tls_data = data = lmalloc(statictlssize); in __tls_static_mods() 237 tlsent = lmalloc(tlsm->tls_modinfo.tls_size * sizeof (tls_t)); in slow_tls_get_addr() 259 base = lmalloc(tlsp->tm_memsz); in slow_tls_get_addr()
|
H A D | tsd.c | 110 if ((new_data = lmalloc(new_nkeys * sizeof (void *))) == NULL) { in thr_keycreate() 301 if ((ntsd = lmalloc(nkeys * sizeof (void *))) == NULL) in thr_setspecific_slow()
|
H A D | pthr_rwlock.c | 40 if ((ap = lmalloc(sizeof (rwlattr_t))) == NULL) in pthread_rwlockattr_init()
|
H A D | pthr_cond.c | 40 if ((ap = lmalloc(sizeof (cvattr_t))) == NULL) in pthread_condattr_init()
|
H A D | pthr_barrier.c | 43 if ((ap = lmalloc(sizeof (barrierattr_t))) == NULL) in pthread_barrierattr_init()
|
H A D | pthr_attr.c | 71 if ((ap = lmalloc(sizeof (thrattr_t))) != NULL) { in pthread_attr_init() 105 if ((ap = lmalloc(sizeof (thrattr_t))) == NULL) in pthread_attr_clone()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | fdopendir.c | 50 private_DIR *pdirp = lmalloc(sizeof (*pdirp)); in fdopendir() 52 void *buf = lmalloc(DIRBUF); in fdopendir()
|
H A D | gettxt.c | 148 if ((dbc = lmalloc(sizeof (struct db_cache))) == NULL) { in gettxt() 152 if ((dbc->loc = lmalloc(strlen(curloc) + 1)) == NULL) { in gettxt() 163 if ((dbl = lmalloc(sizeof (struct db_list))) == NULL) { in gettxt()
|
H A D | tsdalloc.c | 87 loc = lmalloc(_T_NUM_ENTRIES * sizeof (tsdent_t)); in tsdalloc() 98 loc[n].buf = p = lmalloc(size); in tsdalloc()
|
H A D | deflt.c | 133 struct thr_data *thr_data = lmalloc(sizeof (struct thr_data)); in defopen_r() 169 (thr_data->buf = lmalloc(BUFFERSIZE)) == NULL) { in defopen_common()
|
H A D | atexit.c | 107 if ((p = lmalloc(sizeof (_exthdlr_t))) == NULL) in __cxa_atexit() 397 if ((p = lmalloc(sizeof (_qexthdlr_t))) == NULL) in at_quick_exit()
|
H A D | atfork.c | 62 } else if ((atfp = lmalloc(sizeof (atfork_t))) == NULL) { in pthread_atfork()
|
H A D | tsearch.c | 76 q = lmalloc(sizeof (NODE)); /* T5: Not found */ in tsearch()
|
H A D | getxby_door.c | 653 bp = lmalloc(dsize); in _nsc_getdoorbuf() 664 bp = lmalloc(dsize); in _nsc_getdoorbuf()
|
/illumos-gate/usr/src/lib/libc/ |
H A D | README | 91 void *lmalloc(size_t); 99 lmalloc() and lfree() are the basic interfaces. The libc_*() 100 variants are built on top of lmalloc()/lfree() but they have 102 without the 'libc_' prefix. lmalloc() and libc_malloc() 103 return zeroed memory blocks. Note that lmalloc()/lfree() 105 to lmalloc() and to pass the same value to lfree(). 107 Memory allocated by lmalloc() can only be freed by lfree(). 112 lmalloc()/lfree() is a small and simple power of two allocator. 161 * lmalloc or libc_malloc should be used. The memory must 168 * As the memory allocated by lmalloc or libc_malloc needs
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | popen.c | 101 if ((node = lmalloc(sizeof (node_t))) == NULL) in popen() 297 if ((node = lmalloc(sizeof (node_t))) == NULL) in _insert()
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | sigev_thread.c | 131 if ((stdp = lmalloc(sizeof (*stdp))) == NULL) in sigev_add_work() 356 if ((stdp = lmalloc(sizeof (*stdp))) == NULL) in aio_spawner() 406 if ((tcdp = lmalloc(sizeof (*tcdp))) != NULL) { in alloc_sigev_handler()
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | mtlib.h | 55 extern void *lmalloc(size_t);
|
H A D | libc.h | 74 extern void *lmalloc(size_t);
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | localeimpl.c | 176 if ((ldata = lmalloc(sizeof (*ldata))) == NULL) { in __locdata_alloc() 428 loc = lmalloc(sizeof (*loc)); in duplocale()
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | Makefile | 41 LDLIBS += -lmalloc -ll -ladm
|
/illumos-gate/usr/src/lib/libc/port/tpool/ |
H A D | thread_pool.c | 268 tpool = lmalloc(sizeof (*tpool)); in tpool_create() 332 if ((job = lmalloc(sizeof (*job))) == NULL) in tpool_dispatch()
|
/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | doprnt.c | 325 tmpp = lmalloc(tsize); in put_wide() 1818 wstr = (wchar_t *)lmalloc(bpsize); in _wndoprnt() 1838 wstr = (wchar_t *)lmalloc(bpsize); in _wndoprnt() 1851 wstr = (wchar_t *)lmalloc(bpsize); in _wndoprnt() 1915 if ((wp = lmalloc(wpsize)) in _wndoprnt()
|