/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | fdopendir.c | 52 private_DIR *pdirp = lmalloc(sizeof (*pdirp)); in fdopendir() 54 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 | 89 loc = lmalloc(_T_NUM_ENTRIES * sizeof (tsdent_t)); in tsdalloc() 100 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 | atfork.c | 64 } else if ((atfp = lmalloc(sizeof (atfork_t))) == NULL) { in pthread_atfork()
|
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 | tsearch.c | 78 q = lmalloc(sizeof (NODE)); /* T5: Not found */ in tsearch()
|
H A D | getxby_door.c | 655 bp = lmalloc(dsize); in _nsc_getdoorbuf() 666 bp = lmalloc(dsize); in _nsc_getdoorbuf()
|
H A D | err.c | 64 udp->progname = lmalloc(PROGNAMESIZE); in setprogname()
|
/titanic_50/usr/src/lib/libc/port/threads/ |
H A D | spawn.c | 300 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 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 | alloc.c | 180 lmalloc(size_t size) in lmalloc() function 350 if ((ptr = lmalloc(size)) == NULL) in libc_malloc() 363 if ((ptr = lmalloc(size)) == NULL) in libc_realloc()
|
H A D | tsd.c | 112 if ((new_data = lmalloc(new_nkeys * sizeof (void *))) == NULL) { in thr_keycreate() 303 if ((ntsd = lmalloc(nkeys * sizeof (void *))) == NULL) in thr_setspecific_slow()
|
H A D | pthr_rwlock.c | 42 if ((ap = lmalloc(sizeof (rwlattr_t))) == NULL) in pthread_rwlockattr_init()
|
H A D | pthr_attr.c | 64 if ((ap = lmalloc(sizeof (thrattr_t))) != NULL) { in pthread_attr_init() 98 if ((ap = lmalloc(sizeof (thrattr_t))) == NULL) in pthread_attr_clone()
|
H A D | pthr_cond.c | 42 if ((ap = lmalloc(sizeof (cvattr_t))) == NULL) in pthread_condattr_init()
|
H A D | pthr_barrier.c | 45 if ((ap = lmalloc(sizeof (barrierattr_t))) == NULL) in pthread_barrierattr_init()
|
/titanic_50/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
|
/titanic_50/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()
|
/titanic_50/usr/src/lib/libc/inc/ |
H A D | mtlib.h | 57 extern void *lmalloc(size_t);
|
H A D | libc.h | 71 extern void *lmalloc(size_t);
|
/titanic_50/usr/src/lib/libc/port/rt/ |
H A D | sigev_thread.c | 133 if ((stdp = lmalloc(sizeof (*stdp))) == NULL) in sigev_add_work() 358 if ((stdp = lmalloc(sizeof (*stdp))) == NULL) in aio_spawner() 408 if ((tcdp = lmalloc(sizeof (*tcdp))) != NULL) { in alloc_sigev_handler()
|
/titanic_50/usr/src/lib/libc/port/locale/ |
H A D | localeimpl.c | 162 if ((ldata = lmalloc(sizeof (*ldata))) == NULL) { in __locdata_alloc() 381 loc = lmalloc(sizeof (*loc)); in duplocale()
|
/titanic_50/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | Makefile | 38 LDLIBS += -lmalloc -ll -ladm
|
/titanic_50/usr/src/lib/libc/port/tpool/ |
H A D | thread_pool.c | 270 tpool = lmalloc(sizeof (*tpool)); in tpool_create() 334 if ((job = lmalloc(sizeof (*job))) == NULL) in tpool_dispatch()
|