Searched refs:malloc (Results 1 - 25 of 1321) sorted by relevance

1234567891011>>

/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dmalloc.c0 /* malloc() function that is glibc compatible.
22 /* Only the AC_FUNC_MALLOC macro defines 'malloc' already in config.h. */
23 #ifdef malloc
25 # undef malloc macro
26 /* Whereas the gnulib module 'malloc-gnu' defines HAVE_MALLOC_GNU. */
36 /* Call the system's malloc below. */
37 #undef malloc macro
52 result = malloc (n);
H A Drealloc.c31 /* Infer the properties of the system's malloc function.
32 The gnulib module 'malloc-gnu' defines HAVE_MALLOC_GNU. */
37 /* Below we want to call the system's malloc and realloc.
39 declaration of malloc(), not of rpl_malloc(), and likewise for realloc. */
40 #undef malloc macro
48 /* Below we want to call the system's malloc and realloc.
51 #undef malloc macro
56 use malloc. */
80 result = malloc (n);
H A Dalloca.in.h43 # include <malloc.h>
H A Dstrndup.c30 char *new = malloc (len + 1);
/osnet-11/usr/src/lib/libsqlite/tool/
H A Dmemleak2.awk19 /[0-9]+ malloc / {
H A Dmemleak.awk8 /[0-9]+ malloc / {
17 print "*** free without a malloc at",$6
/osnet-11/usr/src/lib/libmapmalloc/common/
H A Dllib-lmapmalloc32 #include <malloc.h>
/osnet-11/usr/src/lib/libmtmalloc/tests/
H A Ddblfree.c43 foo = malloc(10);
52 foo = malloc(10);
H A Dwideload.c46 foo = malloc(0); /* prime the pump */
49 printf ("Before big malloc brk is %p request %d\n", foo, request);
50 foo = malloc(request + 100);
52 printf ("After big malloc brk is %p\n", bar);
H A Ddirtymem.c54 foo = (struct a_struct *)malloc(sizeof (struct_o_death));
61 * as the last time. Turn the rotor with malloc until
65 leak = malloc(sizeof (struct_o_death));
67 fprintf(stderr, "malloc struct again\n");
69 foo = malloc(sizeof (struct_o_death));
H A Dfailwide.c47 foo = malloc(request/2); /* prime the pump */
50 printf ("Before big malloc brk is %p request %d\n", foo, request);
51 foo = malloc(request + request/2);
53 printf ("After big malloc brk is %p, should be the same.\n", bar);
H A Dreallocs.c31 * If a malloc'ed buffer can satisfy a realloc() request
46 p = malloc(size);
/osnet-11/usr/src/lib/libresolv2/common/bsd/
H A Dstrdup.c12 char *dst = malloc(strlen(src) + 1);
/osnet-11/usr/src/lib/libmalloc/common/
H A Dllib-lmalloc32 #include <malloc.h>
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dcopy_cksum.c38 if (!(tempto = (krb5_checksum *)malloc(sizeof(*tempto))))
42 if (!(tempto->contents = (krb5_octet *)malloc(tempto->length))) {
/osnet-11/usr/src/lib/libbsdmalloc/common/
H A Dllib-lbsdmalloc34 char *malloc(unsigned nbytes);
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dmisc.c51 * ntfs_malloc - A logging supported malloc(3)
60 p = malloc(size);
62 ntfs_log_perror("Failed to malloc %lld bytes", (long long)size);
/osnet-11/usr/src/lib/libparted/common/lib/
H A Dstrndup.c32 char *new = malloc (len + 1);
/osnet-11/usr/src/lib/krb5/dyn/
H A DdynP.h24 #include <malloc.h>
/osnet-11/usr/src/lib/libc/port/gen/
H A Dcalloc.c57 return ((mp = malloc(total)) ? memset(mp, 0, total) : mp);
H A Dstrdup.c48 char *s2 = malloc(strlen(s1) + 1);
H A Dstrndup.c41 if ((s2 = malloc(n + 1)) == NULL)
/osnet-11/usr/src/lib/libc/port/i18n/
H A Dwsdup.c46 s2 = malloc((wcslen(s1) + 1) * sizeof (wchar_t));
/osnet-11/usr/src/lib/libxcurses/src/libc/mks/
H A Dm_malloc.c31 * Ensure that errno is set if malloc() fails.
56 * Portable replacement for malloc().
57 * If malloc() fails (e.g returns NULL)
58 * then return ENOMEM unless malloc() sets errno for us on this system
59 * and ensure malloc(0) returns a non-NULL pointer.
70 * ANSI does not insist setting errno when malloc() fails.
72 * an errno when malloc() fails.
73 * Thus, on systems that implement malloc() where an errno is not
83 * MKS code seems to rely on malloc(0) returning a valid pointer.
86 * According to ANSI (4.10.3 line 18-19) the result of malloc(
[all...]
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/Bin/
H A Dpy_mallocstk.d3 * py_mallocstk.d - Python libc malloc analysis with full stack traces.
40 pid$target:libc:malloc:entry
47 printf("\nPython malloc byte distributions by stack trace,\n\n");

Completed in 62 milliseconds

1234567891011>>