Home
last modified time | relevance | path

Searched refs:lmalloc (Results 1 – 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfdopendir.c50 private_DIR *pdirp = lmalloc(sizeof (*pdirp)); in fdopendir()
52 void *buf = lmalloc(DIRBUF); in fdopendir()
H A Dgettxt.c148 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 Dtsdalloc.c87 loc = lmalloc(_T_NUM_ENTRIES * sizeof (tsdent_t)); in tsdalloc()
98 loc[n].buf = p = lmalloc(size); in tsdalloc()
H A Ddeflt.c133 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 Datexit.c107 if ((p = lmalloc(sizeof (_exthdlr_t))) == NULL) in __cxa_atexit()
397 if ((p = lmalloc(sizeof (_qexthdlr_t))) == NULL) in at_quick_exit()
H A Datfork.c62 } else if ((atfp = lmalloc(sizeof (atfork_t))) == NULL) { in pthread_atfork()
H A Dtsearch.c76 q = lmalloc(sizeof (NODE)); /* T5: Not found */ in tsearch()
H A Dgetxby_door.c653 bp = lmalloc(dsize); in _nsc_getdoorbuf()
664 bp = lmalloc(dsize); in _nsc_getdoorbuf()
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dspawn.c300 if ((dirbuf = lmalloc(DIRBUF)) == NULL) in posix_spawn()
404 if ((dirbuf = lmalloc(DIRBUF)) == NULL) in posix_spawnp()
576 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_addopen()
580 if ((fap->fa_path = lmalloc(fap->fa_pathsize)) == NULL) { in posix_spawn_file_actions_addopen()
604 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_addclose()
624 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_adddup2()
644 if ((fap = lmalloc(sizeof (*fap))) == NULL) in posix_spawn_file_actions_addclosefrom_np()
657 if ((attr->__spawn_attrp = lmalloc(sizeof (posix_spawnattr_t))) == NULL) in posix_spawnattr_init()
H A Dalloc.c181 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 Dtls.c63 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 Dtsd.c110 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 Dpthr_rwlock.c40 if ((ap = lmalloc(sizeof (rwlattr_t))) == NULL) in pthread_rwlockattr_init()
H A Dpthr_cond.c40 if ((ap = lmalloc(sizeof (cvattr_t))) == NULL) in pthread_condattr_init()
H A Dpthr_barrier.c43 if ((ap = lmalloc(sizeof (barrierattr_t))) == NULL) in pthread_barrierattr_init()
H A Dpthr_attr.c71 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/
H A DREADME91 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 Dpopen.c101 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/inc/
H A Dmtlib.h55 extern void *lmalloc(size_t);
H A Dlibc.h73 extern void *lmalloc(size_t);
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dsigev_thread.c131 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/port/locale/
H A Dlocaleimpl.c176 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 DMakefile41 LDLIBS += -lmalloc -ll -ladm
/illumos-gate/usr/src/lib/libc/port/tpool/
H A Dthread_pool.c268 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 Ddoprnt.c325 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()

12