Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 3797) sorted by relevance

12345678910>>...152

/freebsd-10-stable/sys/contrib/octeon-sdk/cvmx-malloc/
DREADME-malloc1 Readme for Octeon shared memory malloc
3 This malloc is based on ptmalloc2, which is the malloc
5 on this can be found at http://www.malloc.de/en/index.html.
8 The main change to the code modifies the way the malloc
9 gets memory from the system. Under Linux/Unix, malloc
12 given to malloc by the application.
/freebsd-10-stable/tools/tools/nxge/
Dxge_info.c136 hw_stats = (char *)malloc(buffer_size); in xge_get_hwstats()
150 pci_cfg = (void *)malloc(buffer_size); in xge_get_hwstats()
193 pci_cfg = (char *)malloc(buffer_size); in xge_get_pciconf()
231 device_cfg = (char *)malloc(buffer_size); in xge_get_devconf()
267 buf_mode = (char *)malloc(sizeof(int)); in xge_get_buffer_mode()
302 print_msg = (char *)malloc(sizeof(char)); in xge_change_buffer_mode()
356 registers = (void *)malloc(buffer_size); in xge_get_registers()
393 (xge_register_info_t *)malloc(sizeof(xge_register_info_t)); in xge_get_register()
434 (xge_register_info_t *)malloc(sizeof(xge_register_info_t)); in xge_set_register()
472 dev_stats = (char *)malloc(buffer_size); in xge_get_devstats()
[all …]
/freebsd-10-stable/sbin/dhclient/tests/
Doption-domain-search.c44 option->data = malloc(option->len); in one_domain_valid()
69 option->data = malloc(option->len); in one_domain_truncated1()
93 option->data = malloc(option->len); in one_domain_truncated2()
118 option->data = malloc(option->len); in two_domains_valid()
143 option->data = malloc(option->len); in two_domains_truncated1()
167 option->data = malloc(option->len); in two_domains_truncated2()
192 option->data = malloc(option->len); in two_domains_compressed()
217 option->data = malloc(option->len); in two_domains_infloop()
241 option->data = malloc(option->len); in two_domains_forwardptr()
265 option->data = malloc(option->len); in two_domains_truncatedptr()
[all …]
/freebsd-10-stable/lib/libdpv/
Ddialog_util.c91 if ((maxsize = malloc(sizeof(struct winsize))) == NULL) in tty_maxsize_update()
127 if ((maxsize = malloc(sizeof(struct winsize))) == NULL) in x11_maxsize_update()
260 if ((dargv[n] = malloc(8)) == NULL) in dialog_spawn_gauge()
265 if ((dargv[n] = malloc(8)) == NULL) in dialog_spawn_gauge()
268 if ((dargv[n] = malloc(1)) == NULL) in dialog_spawn_gauge()
273 if ((dargv[n] = malloc(12)) == NULL) in dialog_spawn_gauge()
279 if ((dargv[n] = malloc(11)) == NULL) in dialog_spawn_gauge()
284 if ((dargv[n] = malloc(7)) == NULL) in dialog_spawn_gauge()
293 if ((dargv[n] = malloc(7)) == NULL) in dialog_spawn_gauge()
297 if ((dargv[n] = malloc(8)) == NULL) in dialog_spawn_gauge()
[all …]
/freebsd-10-stable/tools/regression/redzone9/
Dredzone.c59 p = malloc(10, M_TEMP, M_NOWAIT); in redzone_sysctl()
65 p = malloc(10, M_TEMP, M_NOWAIT); in redzone_sysctl()
71 p = malloc(8192, M_TEMP, M_NOWAIT); in redzone_sysctl()
80 p = malloc(8192, M_TEMP, M_NOWAIT); in redzone_sysctl()
89 p = malloc(10, M_TEMP, M_NOWAIT); in redzone_sysctl()
98 p = malloc(10, M_TEMP, M_NOWAIT); in redzone_sysctl()
/freebsd-10-stable/crypto/heimdal/lib/asn1/
Dder_copy.c89 to->data = malloc(to->length + 1); in der_copy_printable_string()
108 to->data = malloc(to->length * sizeof(to->data[0])); in der_copy_bmp_string()
120 to->data = malloc(to->length * sizeof(to->data[0])); in der_copy_universal_string()
138 to->data = malloc(to->length); in der_copy_octet_string()
149 to->data = malloc(to->length); in der_copy_heim_integer()
161 to->components = malloc(to->length * sizeof(*to->components)); in der_copy_oid()
176 to->data = malloc(len); in der_copy_bit_string()
/freebsd-10-stable/contrib/libstdc++/libsupc++/
Dnew_op.cc40 using std::malloc;
44 extern "C" void *malloc (std::size_t);
57 p = (void *) malloc (sz); in operator new()
68 p = (void *) malloc (sz); in operator new()
Dnew_opnt.cc37 extern "C" void *malloc (std::size_t);
48 p = (void *) malloc (sz); in operator new()
63 p = (void *) malloc (sz); in operator new()
/freebsd-10-stable/contrib/gcclibs/libmudflap/
Dmf-hooks1.c100 #undef malloc
101 WRAPPER(void *, malloc, size_t c) in WRAPPER() argument
104 DECLARE(void *, malloc, size_t c); in WRAPPER()
106 BEGIN_PROTECT (malloc, c); in WRAPPER()
112 result = (char *) CALL_REAL (malloc, size_with_crumple_zones); in WRAPPER()
141 DECLARE(void *, malloc, size_t); in WRAPPER()
151 result = (char *) CALL_REAL (malloc, size_with_crumple_zones); in WRAPPER()
407 DECLARE (void *, malloc, size_t); in __mf_wrap_alloca_indirect()
450 track = (struct alloca_tracking *) CALL_REAL (malloc, in __mf_wrap_alloca_indirect()
456 result = CALL_REAL (malloc, c); in __mf_wrap_alloca_indirect()
/freebsd-10-stable/usr.bin/whereis/
Dwhereis.c238 if ((cp = malloc(s + 1)) == NULL) in colonify()
273 if ((b = malloc(s + 1)) == NULL) in defaults()
287 if ((b = malloc(strlen(cp) + 1)) == NULL) in defaults()
303 if ((b = malloc(strlen(buf) + 1)) == NULL) in defaults()
312 if ((b = malloc(strlen(sourcepath) + 1)) == NULL) in defaults()
355 if ((b = malloc(sizeof PATH_PORTS + 1 + dirp->d_namlen)) in defaults()
447 cp = malloc(strlen(*dp) + 1 + s + 1); in main()
485 cp = malloc(sizeof MANWHEREISALLCMD - 2 + s); in main()
487 cp = malloc(sizeof MANWHEREISCMD - 2 + s); in main()
513 cp2 = malloc(rlen + 1); in main()
[all …]
/freebsd-10-stable/tools/regression/ccd/layout/
Dccd.sh19 mdconfig -a -t malloc -s $1 -u 90
20 mdconfig -a -t malloc -s $2 -u 91
21 mdconfig -a -t malloc -s $3 -u 92
22 mdconfig -a -t malloc -s $4 -u 93
/freebsd-10-stable/crypto/heimdal/appl/rsh/
Dcommon.c52 ivec_in[0] = malloc(blocksize); in init_ivecs()
56 ivec_in[1] = malloc(blocksize); in init_ivecs()
61 ivec_out[0] = malloc(blocksize); in init_ivecs()
65 ivec_out[1] = malloc(blocksize); in init_ivecs()
96 edata = malloc (outer_len); in do_read()
143 unsigned char *tmp = malloc(sz + 4); in do_write()
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Examples/
Dpl_malloc_example.txt4 malloc() from Perl, and to print byte distribution plots.
14 Perl malloc byte distributions by engine caller,
46 Perl malloc byte distributions by Perl file and subroutine,
76 identified in the last distribution plot printed, with one malloc event
77 of between 64 Kbytes and 128 Kbytes in size. There was also a malloc event
/freebsd-10-stable/contrib/jemalloc/include/jemalloc/
Djemalloc.h46 JEMALLOC_EXPORT void *je_malloc(size_t size) JEMALLOC_ATTR(malloc);
48 JEMALLOC_ATTR(malloc);
52 JEMALLOC_ATTR(malloc);
58 JEMALLOC_ATTR(malloc);
62 JEMALLOC_EXPORT void * je_valloc(size_t size) JEMALLOC_ATTR(malloc);
101 #define malloc je_malloc macro
/freebsd-10-stable/sbin/iscontrol/
Dmisc.c94 if((tmp = malloc((len+1)/2)) == NULL) { in str2bin()
113 if((tmp = malloc(len)) == NULL) { in str2bin()
145 if((tmp = malloc(len)) == NULL) in str2bin()
168 dst = malloc(len + 3); in bin2str()
184 dst = malloc(len + 3); in bin2str()
/freebsd-10-stable/contrib/unbound/compat/
Dmalloc.c5 #undef malloc
8 void *malloc ();
18 return malloc (n); in rpl_malloc_unbound()
/freebsd-10-stable/contrib/ldns/compat/
Dmalloc.c7 #undef malloc
11 void *malloc ();
21 return malloc (n); in rpl_malloc()
/freebsd-10-stable/lib/libc/tests/sys/
Dqueue_test.c67 n1 = malloc(sizeof(struct entry)); in ATF_TC_BODY()
87 n2 = malloc(sizeof(struct entry)); in ATF_TC_BODY()
93 n3 = malloc(sizeof(struct entry)); in ATF_TC_BODY()
176 n1 = malloc(sizeof(struct entry)); in ATF_TC_BODY()
193 n2 = malloc(sizeof(struct entry)); in ATF_TC_BODY()
199 n3 = malloc(sizeof(struct entry)); in ATF_TC_BODY()
/freebsd-10-stable/lib/libc/rpc/
Dgetnetconfig.c165 nc_addr = (int *)malloc(sizeof (int)); in __nc_error()
200 if ((nc_vars = (struct netconfig_vars *)malloc(sizeof in setnetconfig()
301 stringp = (char *) malloc(MAXNETCONFIGLINE); in getnetconfig()
328 list = (struct netconfig_list *) malloc(sizeof (struct netconfig_list)); in getnetconfig()
333 np = (struct netconfig *) malloc(sizeof (struct netconfig)); in getnetconfig()
487 if ((linep = malloc(MAXNETCONFIGLINE)) == NULL) { in getnetconfigent()
511 malloc(sizeof (struct netconfig))) == NULL) { in getnetconfigent()
698 if ((tmp=malloc(MAXNETCONFIGLINE)) == NULL) in dup_ncp()
700 if ((p=(struct netconfig *)malloc(sizeof(struct netconfig))) == NULL) { in dup_ncp()
721 p->nc_lookups = (char **)malloc((size_t)(p->nc_nlookups+1) * sizeof(char *)); in dup_ncp()
/freebsd-10-stable/tests/sys/geom/class/stripe/
D1_test.sh8 us0=$(attach_md -t malloc -s 1M) || exit 1
9 us1=$(attach_md -t malloc -s 2M) || exit 1
10 us2=$(attach_md -t malloc -s 3M) || exit 1
/freebsd-10-stable/tests/sys/geom/class/mirror/
D1_test.sh8 us0=$(attach_md -t malloc -s 1M) || exit 1
9 us1=$(attach_md -t malloc -s 2M) || exit 1
10 us2=$(attach_md -t malloc -s 3M) || exit 1
/freebsd-10-stable/tests/sys/geom/class/concat/
D1_test.sh8 us0=$(attach_md -t malloc -s 1M) || exit 1
9 us1=$(attach_md -t malloc -s 2M) || exit 1
10 us2=$(attach_md -t malloc -s 3M) || exit 1
/freebsd-10-stable/contrib/ofed/management/opensm/opensm/
Dosm_db_files.c167 p_db_imp = (osm_db_imp_t *) malloc(sizeof(osm_db_imp_t)); in osm_db_init()
216 p_domain = (osm_db_domain_t *) malloc(sizeof(osm_db_domain_t)); in osm_db_domain_init()
220 (osm_db_domain_imp_t *) malloc(sizeof(osm_db_domain_imp_t)); in osm_db_domain_init()
227 (char *)malloc(sizeof(char) * (dir_name_len) + strlen(domain_name) + in osm_db_domain_init()
341 (char *)malloc(sizeof(char) * in osm_db_restore()
348 (char *)malloc(sizeof(char) * in osm_db_restore()
354 p_accum_val = (char *)malloc(2); in osm_db_restore()
406 (char *)malloc(strlen(p_prev_val) + in osm_db_restore()
448 (char *)malloc(sizeof(char) * in osm_db_store()
581 p_new_key = malloc(sizeof(char) * (strlen(p_key) + 1)); in osm_db_update()
[all …]
/freebsd-10-stable/tests/sys/geom/class/raid3/
D1_test.sh8 us0=$(attach_md -t malloc -s 1M) || exit 1
9 us1=$(attach_md -t malloc -s 2M) || exit 1
10 us2=$(attach_md -t malloc -s 3M) || exit 1
/freebsd-10-stable/tests/sys/geom/class/shsec/
D1_test.sh8 us0=$(attach_md -t malloc -s 1M) || exit 1
9 us1=$(attach_md -t malloc -s 2M) || exit 1
10 us2=$(attach_md -t malloc -s 3M) || exit 1

12345678910>>...152