Home
last modified time | relevance | path

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

12345678910>>...174

/freebsd-13.1/sys/contrib/octeon-sdk/cvmx-malloc/
H A 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-13.1/sbin/dhclient/tests/
H A 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-13.1/contrib/unbound/compat/
H A Dmalloc.c5 #undef malloc
9 void *malloc ();
12 void *malloc (size_t n);
23 return malloc (n); in rpl_malloc_unbound()
/freebsd-13.1/lib/libdpv/
H A Ddialog_util.c91 if ((maxsize = malloc(sizeof(struct winsize))) == NULL) in tty_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()
301 if ((dargv[n] = malloc(40)) == NULL) in dialog_spawn_gauge()
[all …]
/freebsd-13.1/tools/regression/redzone9/
H A 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-13.1/crypto/heimdal/lib/asn1/
H A 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()
142 to->data = malloc(to->length); in der_copy_octet_string()
153 to->data = malloc(to->length); in der_copy_heim_integer()
165 to->components = malloc(to->length * sizeof(*to->components)); in der_copy_oid()
180 to->data = malloc(len); in der_copy_bit_string()
/freebsd-13.1/tools/regression/ccd/layout/
H A 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-13.1/crypto/heimdal/appl/rsh/
H A 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-13.1/tests/sys/geom/class/eli/
H A Dattach_test.sh16 md=$(attach_md -t malloc -s `expr $sectors + 1`)
54 md=$(attach_md -t malloc -s `expr $sectors + 1`)
82 md0=$(attach_md -t malloc -s `expr $sectors + 1`)
83 md1=$(attach_md -t malloc -s `expr $sectors + 1`)
84 md2=$(attach_md -t malloc -s `expr $sectors + 1`)
112 md=$(attach_md -t malloc -s `expr $sectors + 1`)
/freebsd-13.1/contrib/ldns/compat/
H A Dmalloc.c7 #undef malloc
11 void *malloc (size_t n);
21 return malloc (n); in rpl_malloc()
/freebsd-13.1/sbin/iscontrol/
H A Dmisc.c96 if((tmp = malloc((len+1)/2)) == NULL) { in str2bin()
115 if((tmp = malloc(len)) == NULL) { in str2bin()
147 if((tmp = malloc(len)) == NULL) in str2bin()
170 dst = malloc(len + 3); in bin2str()
186 dst = malloc(len + 3); in bin2str()
/freebsd-13.1/sys/contrib/zstd/lib/freebsd/
H A Dstdlib.h38 #undef malloc
39 #define malloc(x) (malloc)((x), M_ZSTD, M_WAITOK) macro
/freebsd-13.1/tests/sys/geom/class/mirror/
H A 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-13.1/tests/sys/geom/class/stripe/
H A 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-13.1/tests/sys/geom/class/concat/
H A 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-13.1/lib/libc/tests/sys/
H A 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-13.1/tests/sys/geom/class/shsec/
H A 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-13.1/tests/sys/geom/class/raid3/
H A 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-13.1/crypto/openssh/openbsd-compat/
H A Dbsd-malloc.c18 #undef malloc
31 return malloc(size); in rpl_malloc()
54 return malloc(size); in rpl_realloc()
/freebsd-13.1/crypto/heimdal/lib/roken/
H A Dcopyhostent.c49 res = malloc (sizeof (*res)); in copyhostent()
64 res->h_aliases = malloc ((n + 1) * sizeof(*res->h_aliases)); in copyhostent()
81 res->h_addr_list = malloc ((n + 1) * sizeof(*res->h_addr_list)); in copyhostent()
90 res->h_addr_list[i] = malloc (h->h_length); in copyhostent()
/freebsd-13.1/lib/libc/rpc/
H A Dgetnetconfig.c167 nc_addr = (int *)malloc(sizeof (int)); in __nc_error()
202 if ((nc_vars = (struct netconfig_vars *)malloc(sizeof in setnetconfig()
303 stringp = (char *) malloc(MAXNETCONFIGLINE); in getnetconfig()
330 list = (struct netconfig_list *) malloc(sizeof (struct netconfig_list)); in getnetconfig()
335 np = (struct netconfig *) malloc(sizeof (struct netconfig)); in getnetconfig()
489 if ((linep = malloc(MAXNETCONFIGLINE)) == NULL) { in getnetconfigent()
513 malloc(sizeof (struct netconfig))) == NULL) { in getnetconfigent()
700 if ((tmp=malloc(MAXNETCONFIGLINE)) == NULL) in dup_ncp()
702 if ((p=(struct netconfig *)malloc(sizeof(struct netconfig))) == NULL) { in dup_ncp()
723 p->nc_lookups = (char **)malloc((size_t)(p->nc_nlookups+1) * sizeof(char *)); in dup_ncp()
/freebsd-13.1/contrib/jemalloc/include/jemalloc/
H A Djemalloc.h69 # define je_malloc malloc
229 JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(1);
232 JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE2(1, 2);
237 size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc)
247 JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(1);
276 JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc);
282 JEMALLOC_ATTR(malloc);
381 # define malloc je_malloc macro
/freebsd-13.1/contrib/elftoolchain/libelftc/
H A Dlibelftc_vstr.c124 if ((rtn = malloc(sizeof(char) * (rtn_size + 1))) == NULL) in vector_str_get_flat()
159 if ((tmp_ctn = malloc(sizeof(char *) * tmp_cap)) == NULL) in vector_str_grow()
189 if ((v->container = malloc(sizeof(char *) * v->capacity)) == NULL) in vector_str_init()
233 if ((v->container[v->size] = malloc(sizeof(char) * (len + 1))) == NULL) in vector_str_push()
258 if ((tmp_ctn = malloc(sizeof(char *) * tmp_cap)) == NULL) in vector_str_push_vector_head()
298 if ((tmp_ctn = malloc(sizeof(char *) * tmp_cap)) == NULL) in vector_str_push_vector()
344 if ((rtn = malloc(sizeof(char) * (len + 1))) == NULL) in vector_str_substr()
/freebsd-13.1/share/examples/sunrpc/dir/
H A Ddir_proc.c10 extern char *malloc();
42 nl = *nlp = (namenode *) malloc(sizeof(namenode));
43 nl->name = malloc(strlen(d->d_name)+1);
/freebsd-13.1/contrib/unbound/dnstap/
H A Ddnstap_fstrm.c62 control = malloc(n); in fstrm_create_control_frame_start()
85 control = malloc(n); in fstrm_create_control_frame_stop()
109 control = malloc(n); in fstrm_create_control_frame_ready()
137 control = malloc(n); in fstrm_create_control_frame_accept()
162 control = malloc(n); in fstrm_create_control_frame_finish()

12345678910>>...174