Searched refs:lmalloc (Results 1 - 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfdopendir.c32 * We use lmalloc()/lfree() rather than malloc()/free() in
52 private_DIR *pdirp = lmalloc(sizeof (*pdirp));
54 void *buf = lmalloc(DIRBUF);
H A Dtsdalloc.c89 loc = lmalloc(_T_NUM_ENTRIES * sizeof (tsdent_t));
100 loc[n].buf = p = lmalloc(size);
H A Dgettxt.c148 if ((dbc = lmalloc(sizeof (struct db_cache))) == NULL) {
152 if ((dbc->loc = lmalloc(strlen(curloc) + 1)) == NULL) {
163 if ((dbl = lmalloc(sizeof (struct db_list))) == NULL) {
H A Ddeflt.c120 * the libc lmalloc'd memory, defclose_r must be used to close
132 /* memory allocated by lmalloc gets initialized to zeros */
133 struct thr_data *thr_data = lmalloc(sizeof (struct thr_data));
169 (thr_data->buf = lmalloc(BUFFERSIZE)) == NULL) {
H A Datfork.c64 } else if ((atfp = lmalloc(sizeof (atfork_t))) == NULL) {
H A Dtsearch.c78 q = lmalloc(sizeof (NODE)); /* T5: Not found */
H A Datexit.c41 * Note that memory is managed by lmalloc()/lfree().
50 * Another reason for using lmalloc()/lfree() is that the atexit()
107 if ((p = lmalloc(sizeof (_exthdlr_t))) == NULL)
397 if ((p = lmalloc(sizeof (_qexthdlr_t))) == NULL)
H A Dgetxby_door.c655 bp = lmalloc(dsize);
666 bp = lmalloc(dsize);
H A Derr.c64 udp->progname = lmalloc(PROGNAMESIZE);
/illumos-gate/usr/src/lib/libc/inc/
H A Dmtlib.h57 extern void *lmalloc(size_t);
H A Dlibc.h71 extern void *lmalloc(size_t);
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dpthr_rwlock.c40 if ((ap = lmalloc(sizeof (rwlattr_t))) == NULL)
H A Dspawn.c300 if ((dirbuf = lmalloc(DIRBUF)) == NULL)
404 if ((dirbuf = lmalloc(DIRBUF)) == NULL)
576 if ((fap = lmalloc(sizeof (*fap))) == NULL)
580 if ((fap->fa_path = lmalloc(fap->fa_pathsize)) == NULL) {
604 if ((fap = lmalloc(sizeof (*fap))) == NULL)
624 if ((fap = lmalloc(sizeof (*fap))) == NULL)
644 if ((fap = lmalloc(sizeof (*fap))) == NULL)
657 if ((attr->__spawn_attrp = lmalloc(sizeof (posix_spawnattr_t))) == NULL)
H A Dtls.c63 modinfo = lmalloc(mod_slots * sizeof (TLS_modinfo));
115 * We call lmalloc() to allocate the template even though libc_init()
116 * has not yet been called. lmalloc() must and does deal with this.
119 tlsm->static_tls.tls_data = data = lmalloc(statictlssize);
237 tlsent = lmalloc(tlsm->tls_modinfo.tls_size * sizeof (tls_t));
259 base = lmalloc(tlsp->tm_memsz);
H A Dalloc.c49 * because pointers returned by lmalloc() are stored in the
52 * Memory blocks returned by lmalloc() are initialized to zero.
81 * On the very first lmalloc(), before any memory has been allocated,
181 lmalloc(size_t size) function
351 if ((ptr = lmalloc(size)) == NULL)
364 if ((ptr = lmalloc(size)) == NULL)
H A Dpthr_barrier.c43 if ((ap = lmalloc(sizeof (barrierattr_t))) == NULL)
H A Dpthr_cond.c40 if ((ap = lmalloc(sizeof (cvattr_t))) == NULL)
H A Dtsd.c112 if ((new_data = lmalloc(new_nkeys * sizeof (void *))) == NULL) {
303 if ((ntsd = lmalloc(nkeys * sizeof (void *))) == NULL)
H A Dpthr_attr.c68 if ((ap = lmalloc(sizeof (thrattr_t))) != NULL) {
102 if ((ap = lmalloc(sizeof (thrattr_t))) == NULL)
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dpopen.c101 if ((node = lmalloc(sizeof (node_t))) == NULL)
297 if ((node = lmalloc(sizeof (node_t))) == NULL)
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dsigev_thread.c133 if ((stdp = lmalloc(sizeof (*stdp))) == NULL)
358 if ((stdp = lmalloc(sizeof (*stdp))) == NULL)
408 if ((tcdp = lmalloc(sizeof (*tcdp))) != NULL) {
/illumos-gate/usr/src/cmd/fs.d/udfs/fsdb/
H A DMakefile38 LDLIBS += -lmalloc -ll -ladm
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dlocaleimpl.c162 if ((ldata = lmalloc(sizeof (*ldata))) == NULL) {
381 loc = lmalloc(sizeof (*loc));
/illumos-gate/usr/src/lib/libc/port/tpool/
H A Dthread_pool.c270 tpool = lmalloc(sizeof (*tpool));
334 if ((job = lmalloc(sizeof (*job))) == NULL)
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c154 * Replace both malloc() and lmalloc() (libc's private memory allocator).
157 #pragma weak lmalloc = malloc macro

Completed in 82 milliseconds

12