Searched refs:malloc (Results 101 - 125 of 2509) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DNS.c339 printer = (ns_printer_t *)malloc(sizeof (*printer));
344 addr = (ns_bsd_addr_t *)malloc(sizeof (*addr));
429 printer = (ns_printer_t *)malloc(sizeof (*printer));
471 cred = (ns_cred_t *)malloc(sizeof (*cred));
492 printer->nsdata = malloc(sizeof (NS_LDAPDATA));
514 printer->nsdata = malloc(sizeof (NS_LDAPDATA));
539 printer = (ns_printer_t *)malloc(sizeof (*printer));
552 item = (char *)malloc(strlen("bsdaddr") +
557 item = (char *)malloc(strlen("bsdaddr") +
578 item = (char *)malloc(strle
[all...]
/illumos-gate/usr/src/tools/stabs/
H A Dstabs.c227 tdp = malloc(sizeof (*tdp));
292 new = malloc(len);
366 tdp = malloc(sizeof (*tdp));
380 *rtdp = malloc(sizeof (**rtdp));
435 ntdp = malloc(sizeof (*ntdp));
440 *rtdp = malloc(sizeof (**rtdp));
451 *rtdp = malloc(sizeof (**rtdp));
459 *rtdp = malloc(sizeof (**rtdp));
469 *rtdp = malloc(sizeof (**rtdp));
479 *rtdp = malloc(sizeo
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dmake_random_key.c66 if ((bytes = (unsigned char *) malloc(keybytes)) == NULL)
68 if ((random_key->contents = (krb5_octet *) malloc(keylength)) == NULL) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dfull_ipadr.c47 if (!(retaddr = (krb5_address *)malloc(sizeof(*retaddr)))) {
55 if (!(retaddr->contents = (krb5_octet *)malloc(retaddr->length))) {
H A Dget_krbhst.c104 rethosts = malloc(sizeof(char *) * (count + 1));
111 rethosts[i] = malloc(len);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dutf8_conv.c145 *ucs2s = (krb5_ucs2 *)malloc((chars + 1) * sizeof(krb5_ucs2));
174 *ucs2s = (krb5_ucs2 *)malloc((chars + 1) * sizeof(krb5_ucs2));
203 *ucs2les = (unsigned char *)malloc((chars + 1) * sizeof(krb5_ucs2));
233 *ucs2les = (unsigned char *)malloc((chars + 1) * sizeof(krb5_ucs2));
341 *utf8s = (char *)malloc((size_t)len + 1);
371 *utf8s = (char *)malloc((size_t)len + 1);
406 *utf8s = (char *)malloc((size_t)len + 1);
442 *utf8s = (char *)malloc((size_t)len + 1);
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dnewkey.c68 (((keys = (_KEY_MAP **) malloc(sizeof (_KEY_MAP *) *
75 if ((key_info = (_KEY_MAP *) malloc(sizeof (_KEY_MAP) + len)) ==
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dlink_addr.c54 ((buf = malloc(3 * size)) == NULL))
109 if ((netaddr = malloc(numcolons + 1)) == NULL) {
/illumos-gate/usr/src/lib/libtecla/common/
H A Dstrngmem.c42 unsigned long nmalloc; /* The number of strings allocated with malloc */
74 sm = (StringMem *) malloc(sizeof(StringMem));
147 int was_malloc; /* True if malloc was used to allocate the string */
164 string = (char *) malloc(length+1); /* Leave room for the flag byte */
168 * Count malloc allocations.
175 * allocated with malloc or from the free-list. Then return the rest
194 int was_malloc; /* True if the string originally came from malloc() */
204 * from malloc().
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_td.c64 t_optreq.opt.buf = malloc(MAXOPTSIZE);
82 t_optret.opt.buf = malloc(MAXOPTSIZE);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dscandir.c58 names = (struct direct **)malloc(arraysz * sizeof(struct direct *));
69 p = (struct direct *)malloc(DIRSIZ(d));
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dsetvbuf.c37 extern char *malloc();
76 buf = malloc((unsigned)size);
H A Dtempnam.c38 extern char *malloc(), *getenv(), *mktemp();
61 if((p=malloc((unsigned)(max(max(x,y),z)+16))) == NULL)
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrcoll.c73 if ((t1 = malloc(sz1 * sizeof (wchar_t))) == NULL)
81 if ((t2 = malloc(sz2 * sizeof (wchar_t))) == NULL)
/illumos-gate/usr/src/lib/libc/port/print/
H A Dasprintf.c50 if ((newstr = malloc(len)) == NULL)
51 return (-1); /* retain errno from malloc() */
67 if ((newstr = malloc(len)) == NULL)
68 return (-1); /* retain errno from malloc() */
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_findbuf.c44 * If buffer space has been pre-allocated use it otherwise malloc space.
48 * If malloc() fails stdio bails out; assumption being the system is in trouble.
68 else if ((buf = (Uchar *)malloc(_SMBFSZ * sizeof (Uchar))) !=
88 if ((buf = (Uchar *)malloc(sizeof (Uchar)*(size+_SMBFSZ))) !=
95 return (NULL); /* malloc() failed */
/illumos-gate/usr/src/lib/libidmap/common/
H A Dsized_array.c34 #include <malloc.h>
62 sa = malloc(total);
/illumos-gate/usr/src/lib/libmalloc/
H A DMakefile.com31 OBJECTS= malloc.o
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/
H A Dopenchild.c50 extern void *malloc();
105 com = malloc((unsigned)strlen(command) + 6);
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test_subr.c45 (struct mtest_alloc_ent *)malloc(sizeof (struct mtest_alloc_ent));
49 new_ent->buf = malloc(size);
/illumos-gate/usr/src/cmd/mail/
H A Dadd_recip.c83 if ((p = malloc (sizeof(struct recip))) == (char *)NULL) {
84 errmsg(E_MEM,"first malloc failed in add_recip()");
89 if ((r->name = malloc (strlen(name)+1)) == (char *)NULL) {
90 errmsg(E_MEM,"second malloc failed in add_recip()");
/illumos-gate/usr/src/cmd/man/
H A Dstringlist.c47 if ((sl = malloc(sizeof (stringlist))) == NULL)
48 err(1, "malloc");
52 sl->sl_str = malloc(sl->sl_max * sizeof (char *));
54 err(1, "malloc");
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/vars/
H A Dtst.ucaller.ksh31 # implementation of malloc(3C). If you're reading this comment because
47 pid\$target:ld.so.1:malloc:entry
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dalloc.c64 * alloc_malloc -- a malloc() with checks
72 void *retval = malloc(nbytes);
75 outfl(O_DIE, fname, line, "malloc: out of memory");
139 retval = malloc(nbytes);
141 out(O_DIE, "malloc: out of memory");
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dcombine_keys.c118 if ((r1 = (unsigned char *) malloc(keybytes)) == NULL)
121 if ((r2 = (unsigned char *) malloc(keybytes)) == NULL) {
126 if ((rnd = (unsigned char *) malloc(keybytes)) == NULL) {
132 if ((combined = (unsigned char *) malloc(keybytes * 2)) == NULL) {
139 if ((output = (unsigned char *) malloc(keylength)) == NULL) {
248 outkey->contents = (krb5_octet *) malloc(keylength);
317 if ((inblockdata = (unsigned char *) malloc(blocksize)) == NULL)
320 if ((outblockdata = (unsigned char *) malloc(blocksize)) == NULL) {

Completed in 181 milliseconds

1234567891011>>