Home
last modified time | relevance | path

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

12345678910>>...180

/freebsd-12.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-12.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-12.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-12.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-12.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-12.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()
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-12.1/contrib/gcclibs/libmudflap/
H A 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-12.1/contrib/libstdc++/libsupc++/
H A 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()
H A 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-12.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-12.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-12.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-12.1/contrib/ldns/compat/
H A Dmalloc.c7 #undef malloc
11 void *malloc (size_t n);
21 return malloc (n); in rpl_malloc()
/freebsd-12.1/contrib/compiler-rt/lib/asan/
H A Dasan_malloc_win.cc68 void *malloc(size_t size) { in malloc() function
75 return malloc(size); in _malloc_base()
80 return malloc(size); in _malloc_dbg()
230 TryToOverrideFunction("malloc", (uptr)malloc); in ReplaceSystemMalloc()
231 TryToOverrideFunction("_malloc_base", (uptr)malloc); in ReplaceSystemMalloc()
232 TryToOverrideFunction("_malloc_crt", (uptr)malloc); in ReplaceSystemMalloc()
/freebsd-12.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-12.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-12.1/sys/contrib/zstd/lib/freebsd/
H A Dstdlib.h38 #undef malloc
39 #define malloc(x) (malloc)((x), M_ZSTD, M_WAITOK) macro
/freebsd-12.1/contrib/jemalloc/include/jemalloc/
H A Djemalloc.h66 # define je_malloc malloc
218 JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(1);
221 JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE2(1, 2);
226 size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc)
236 JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(1);
265 JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc);
271 JEMALLOC_ATTR(malloc);
370 # define malloc je_malloc macro
/freebsd-12.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-12.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-12.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-12.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-12.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-12.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-12.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

12345678910>>...180