Home
last modified time | relevance | path

Searched refs:Malloc (Results 1 – 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/cmd/lp/lib/filters/
H A Dconv.c228 if (!(dst = (TYPE *)Malloc((nitems + 1) * sizeof(TYPE)))) {
265 if (!(dst = (TEMPLATE *)Malloc((nitems + 1) * sizeof(TEMPLATE)))){
328 ret = Malloc(len + 1);
380 if (!(dst = (char **)Malloc((nitems + 1) * sizeof(char *)))) {
419 if (!(dst = (char **)Malloc((nitems + 1) * sizeof(char *)))) {
481 if (!(ret = q = Malloc(len + 1)))
H A Dputfilter.c109 pf = filters = (_FILTER *)Malloc(
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dgetlist.c92 if (!(sep = Malloc(len))) {
155 if (!(list = (char **)Malloc((n+2) * sizeof(char *)))) {
221 if (!(q = ret = Malloc(len + 1)))
H A Daddstring.c65 if (!(*dst = Malloc(len))) {
H A Dappendlist.c72 *plist = (char **)Malloc(2 * sizeof(char *));
H A Dsprintlist.c65 if (!(ret = Malloc(len))) {
H A Dduplist.c58 if (!(dst = (char **)Malloc((nitems + 1) * sizeof(char *)))) {
H A Daddlist.c81 *plist = (char **)Malloc(2 * sizeof(char *));
H A Dgetname.c88 logname = Malloc(10 + 1); in getname()
H A Dsop.c67 str = Malloc(size + add_size + 1); in sop_up_rest()
H A Dmakestr.c85 if (!(ret = Malloc(len + 1))) {
H A Dmakepath.c87 if (!(ret = Malloc(len))) {
H A Dtx.c84 zname = Malloc(ZONENAME_MAX + 1); in get_labeled_zonename()
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmwrite.c124 if ((p = (MQUE *)Malloc(sizeof(MQUE))) == NULL in mwrite()
125 || (p->dat = (struct strbuf *)Malloc(sizeof(struct strbuf))) == NULL in mwrite()
126 || (p->dat->buf = (char *)Malloc(size)) == NULL) in mwrite()
H A Dmlisten.c69 Connections = (MESG **) Malloc(ConsSize * MDSIZE); in mlisteninit()
70 PollFdList = (struct pollfd*) Malloc(ConsSize * sizeof(struct pollfd)); in mlisteninit()
318 if ((md = (MESG *)Malloc(MDSIZE)) == NULL) in mlisten()
542 if ((md->on_discon = (PTR_TO_VOID_FUNC_PTR) Malloc (size * sizeof(VOID_FUNC_PTR))) == NULL) in mon_discon()
H A Dmconnect.c119 if ((md = (MESG *)Malloc(MDSIZE)) == NULL)
143 if ((md = (MESG *)Malloc(MDSIZE)) == NULL)
H A Dmgetputm.c84 if ((MBG = (char *)Malloc(needsize)) == NULL)
129 if ((MBP = (char *)Malloc(needsize)) == NULL)
H A Dmcreate.c60 if ((md = (MESG *)Malloc(MDSIZE)) == NULL)
H A Dmdisconnect.c121 if ((msgbuf = (char *)Malloc((unsigned)size)))
/illumos-gate/usr/src/boot/libsa/
H A Dzalloc_malloc.c55 Malloc(size_t bytes, const char *file __unused, int line __unused) in Malloc() function
152 if ((res = Malloc(bytes, file, line)) != NULL) { in Calloc()
174 if ((res = Malloc(size, file, line)) != NULL) { in Realloc()
H A Dstand.h438 void *Malloc(size_t, const char *, int);
446 #define malloc(x) Malloc(x, __FILE__, __LINE__)
453 #define malloc(x) Malloc(x, NULL, 0)
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dfaults.c191 msg = Malloc(strlen(PREFIX) + strlen(p->reason) + 2); in dial_problem()
203 msg = Malloc( in dial_problem()
/illumos-gate/usr/src/cmd/prstat/
H A Dprutil.h52 extern void *Malloc(size_t);
/illumos-gate/usr/src/cmd/lp/lib/access/
H A Dchange.c212 if (!(empty = (char **)Malloc(sizeof(char *)))) { in empty_list()
H A Dloadaccess.c140 list = (char **)Malloc((nalloc + 1) * sizeof(char *)); in _loadaccess()

12