Home
last modified time | relevance | path

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

12345678910>>...136

/netbsd-src/external/gpl2/libmalloc/dist/
H A DMakefile27 gmalloc = valloc.c malloc.c free.c cfree.c realloc.c calloc.c morecore.c memalign.c
28 …urces = valloc.c malloc.c free.c cfree.c realloc.c calloc.c morecore.c memalign.c mcheck.c mtrace.…
29 …jects = valloc.o malloc.o free.o cfree.o realloc.o calloc.o morecore.o memalign.o mcheck.o mtrace.…
30 headers = malloc.h
48 .PHONY: clean realclean malloc-clean malloc-realclean
49 clean malloc-clean:
51 realclean malloc-realclean: clean
55 malloc.tar malloc.tar.Z: FORCE
H A DREADME1 This is the standalone distribution of GNU malloc.
2 GNU malloc is part of the GNU C Library, but is also distributed separately.
4 If you find bugs in GNU malloc, send reports to bug-glibc@prep.ai.mit.edu.
6 GNU malloc is free software. See the file COPYING.LIB for copying conditions.
8 The makefile builds libmalloc.a and gmalloc.o. If you are using GNU malloc
9 to replace your system's existing malloc package, it is important to make
12 that will make sure you don't accidentally mix the two malloc packages.
H A DOChangeLog6 * malloc.h, *.c: Use ansideclisms and #ifdefs for portability both
8 * Makefile: New makefile for malloc subdir in libc.
9 Has targets to create malloc.tar{,.Z} by ansidecl processing on srcs.
10 * malloc/Makefile: New file; Makefile for standalone distribution.
11 * malloc/README: New file; info for same.
21 * malloc.h: Declare __free().
27 * malloc.c (morecore): Call __free on oldinfo.
H A Drealloc.c121 return malloc (0);
124 return malloc (size);
138 result = malloc (size);
179 result = malloc (size);
186 (void) malloc (blocks * BLOCKSIZE);
189 __ptr_t previous = malloc ((block - _heapindex) * BLOCKSIZE);
190 (void) malloc (blocks * BLOCKSIZE);
211 result = malloc (size);
/netbsd-src/external/gpl2/diffutils/dist/m4/
H A Dmalloc.m44 dnl Determine whether malloc accepts 0 as its argument.
11 dnl mistakenly use a broken malloc -- as it might if this test were omitted.
13 [Define if the malloc check has been performed. ])
15 AC_CACHE_CHECK([for working malloc], jm_cv_func_working_malloc,
17 char *malloc ();
21 exit (malloc (0) ? 0 : 1);
26 dnl When crosscompiling, assume malloc is broken.
30 AC_LIBOBJ(malloc)
31 AC_DEFINE(malloc, rpl_malloc, definition
/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cris/c/
H A Dmapbrk.c11 if ((p1 = malloc (8100)) == NULL in main()
12 || (p2 = malloc (16300)) == NULL in main()
13 || (p3 = malloc (4000)) == NULL in main()
14 || (p4 = malloc (500)) == NULL in main()
15 || (p5 = malloc (1023*1024)) == NULL in main()
16 || (p6 = malloc (8191*1024)) == NULL) in main()
29 p1 = malloc (64000); in main()
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/m4/
H A Dmalloc.m41 # malloc.m4 serial 28
12 AC_CACHE_CHECK([whether malloc (0) returns nonnull],
18 [[void *p = malloc (0);
41 # Replace malloc if it is not compatible with GNU libc.
54 # Test whether malloc (N) reliably fails when N exceeds PTRDIFF_MAX,
55 # and replace malloc otherwise.
63 # Test whether malloc, realloc, calloc refuse to create objects
68 AC_CACHE_CHECK([whether malloc is ptrdiff_t safe],
82 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
90 #error "malloc might not be ptrdiff_t safe"
[all …]
/netbsd-src/external/mpl/bind/dist/lib/isc/include/isc/
H A Dattributes.h42 * Indicates that a function is malloc-like, i.e., that the
46 #define ISC_ATTR_MALLOC __attribute__((malloc))
52 #define ISC_ATTR_DEALLOCATOR(deallocator) __attribute__((malloc(deallocator)))
59 __attribute__((malloc(deallocator, idx)))
64 __attribute__((malloc, malloc(deallocator)))
71 __attribute__((malloc, malloc(deallocator, idx)))
74 * There is support for malloc attribute but not for
75 * extended attributes, so macros that combine attribute malloc
[all...]
/netbsd-src/external/gpl3/binutils/dist/gprofng/examples/mxv-pthreads/src/
H A Dmanage_data.c41 if ((*b = (double *) malloc (number_of_columns * sizeof (double))) == NULL) in allocate_data()
52 if ((*c = (double *) malloc (number_of_rows * sizeof (double))) == NULL) in allocate_data()
63 if ((*ref = (double *) malloc (number_of_rows * sizeof (double))) == NULL) in allocate_data()
70 if ((*A = (double **) malloc (number_of_rows * sizeof (double))) == NULL) in allocate_data()
80 if (((*A)[i] = (double *) malloc (number_of_columns in allocate_data()
92 if ((*thread_data_arguments = (thread_data *) malloc ((active_threads) in allocate_data()
103 if ((*pthread_ids = (pthread_t *) malloc ((active_threads) in allocate_data()
/netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dcall-rt-st.c571 list1 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
583 struct1 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
584 cflags = (struct bit_flags_char_t *)malloc(sizeof(struct bit_flags_char_t)); in main()
585 sflags = (struct bit_flags_short_t *)malloc(sizeof(struct bit_flags_short_t)); in main()
586 flags = (struct bit_flags_t *)malloc(sizeof(struct bit_flags_t)); in main()
587 flags_combo = (struct bit_flags_combo_t *)malloc(sizeof(struct bit_flags_combo_t)); in main()
588 three_char = (struct three_char_t *)malloc(sizeof(struct three_char_t)); in main()
589 five_char = (struct five_char_t *)malloc(sizeof(struct five_char_t)); in main()
590 int_char_combo = (struct int_char_combo_t *)malloc(sizeof(struct int_char_combo_t)); in main()
592 d1 = (struct one_double_t *)malloc(sizeof(struct one_double_t)); in main()
[all …]
H A Dcall-ar-st.c950 list1 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
951 list2 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
952 list3 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
953 list4 = (struct array_rep_info_t *)malloc(sizeof(struct array_rep_info_t)); in main()
973 struct1 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
974 struct2 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
975 struct3 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
976 struct4 = (struct small_rep_info_t *)malloc(sizeof(struct small_rep_info_t)); in main()
977 flags = (struct bit_flags_t *)malloc(sizeof(struct bit_flags_t)); in main()
978 flags_combo = (struct bit_flags_combo_t *)malloc(sizeof(struct bit_flags_combo_t)); in main()
[all …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/
H A Dtsp_daa.c78 if ((pk->modulus = malloc(pk->modulusLength)) == NULL) in Trspi_UnloadBlob_DAA_PK()
88 if ((pk->capitalS = malloc(pk->capitalSLength)) == NULL) in Trspi_UnloadBlob_DAA_PK()
98 if ((pk->capitalZ = malloc(pk->capitalZLength)) == NULL) in Trspi_UnloadBlob_DAA_PK()
108 if ((pk->capitalR0 = malloc(pk->capitalR0Length)) == NULL) in Trspi_UnloadBlob_DAA_PK()
118 if ((pk->capitalR1 = malloc(pk->capitalR1Length)) == NULL) in Trspi_UnloadBlob_DAA_PK()
128 if ((pk->gamma = malloc(pk->gammaLength)) == NULL) in Trspi_UnloadBlob_DAA_PK()
138 if ((pk->capitalGamma = malloc(pk->capitalGammaLength)) == NULL) in Trspi_UnloadBlob_DAA_PK()
148 if ((pk->rho = malloc(pk->rhoLength)) == NULL) in Trspi_UnloadBlob_DAA_PK()
164 if ((pk->capitalY[i] = malloc(pk->capitalYLength2)) == NULL) in Trspi_UnloadBlob_DAA_PK()
177 if ((pk->issuerBaseName = malloc(pk->issuerBaseNameLength)) == NULL) in Trspi_UnloadBlob_DAA_PK()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/
H A Dasan_interface_test.cc32 char *array = Ident((char*)malloc(kArraySize)); in TEST()
65 void *zero_alloc = Ident(malloc(0)); in TEST()
82 array = Ident((char*)malloc(kMallocSize)); in TEST()
96 free(Ident(malloc(kLargeMallocSize))); // Drain quarantine. in TEST()
100 free(Ident(malloc(kLargeMallocSize))); in TEST()
115 free(Ident(malloc(kManyThreadsMallocSizes[size_index]))); in ManyThreadsWithStatsWorker()
119 free(Ident(malloc(1 << 20))); in ManyThreadsWithStatsWorker()
168 char *array = Ident((char*)malloc(120)); in TEST()
186 char *array = Ident((char*)malloc(120)); in TEST()
209 char *vec = Ident((char*)malloc(20)); in TEST()
[all …]
H A Dasan_test.cc34 void *res = malloc/**/(size); break_optimization(0); return res;} in malloc_fff()
77 int *a = (int*)malloc(100 * sizeof(int)); in TEST()
81 int *r = (int*)malloc(10); in TEST()
133 free(Ident(malloc(Ident(1 << 27)))); // Try to drain the quarantine. in TEST()
318 EXPECT_DEATH(Ident((char*)malloc(size))[-1] = 0, buff); in TestLargeMalloc()
332 EXPECT_DEATH(Ident((char*)malloc(n_megs << 20))[-1] = 0, in TEST()
359 free(Ident(malloc(size))); in ManyThreadsWorker()
383 int *ptr = (int*)malloc(sizeof(int) * kMinElem); in TEST()
392 int *ptr2 = Ident((int*)malloc(0)); in TEST()
400 void *ptr = Ident(malloc(42)); in TEST()
[all …]
/netbsd-src/external/bsd/unbound/dist/compat/
H A Dmalloc.c5 #undef malloc
9 void *malloc ();
12 void *malloc (size_t n);
23 return malloc (n); in rpl_malloc_unbound()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/
H A Dtcsi_caps.c87 if ((*resp = malloc(*respSize)) == NULL) { in internal_TCSGetCap()
111 if ((*resp = malloc(sizeof(TSS_BOOL))) == NULL) { in internal_TCSGetCap()
130 if ((*resp = malloc(sizeof(TSS_BOOL))) == NULL) { in internal_TCSGetCap()
139 if ((*resp = malloc(sizeof(UINT32))) == NULL) { in internal_TCSGetCap()
148 if ((*resp = malloc(INTERNAL_CAP_MANUFACTURER_STR_LEN)) == NULL) { in internal_TCSGetCap()
165 if ((*resp = malloc(sizeof(TSS_BOOL))) == NULL) { in internal_TCSGetCap()
189 *resp = malloc(*respSize); in internal_TCSGetCap()
212 *resp = malloc(*respSize); in internal_TCSGetCap()
/netbsd-src/external/zlib/pigz/dist/zopfli/
H A Dhash.c33 h->head = (int*)malloc(sizeof(*h->head) * 65536); in ZopfliInitHash()
34 h->prev = (unsigned short*)malloc(sizeof(*h->prev) * window_size); in ZopfliInitHash()
35 h->hashval = (int*)malloc(sizeof(*h->hashval) * window_size); in ZopfliInitHash()
45 h->same = (unsigned short*)malloc(sizeof(*h->same) * window_size); in ZopfliInitHash()
53 h->head2 = (int*)malloc(sizeof(*h->head2) * 65536); in ZopfliInitHash()
54 h->prev2 = (unsigned short*)malloc(sizeof(*h->prev2) * window_size); in ZopfliInitHash()
55 h->hashval2 = (int*)malloc(sizeof(*h->hashval2) * window_size); in ZopfliInitHash()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/daa/
H A Ddaa_structs.c78 void *ret = malloc( size); in normal_malloc()
192 result = (BYTE *)malloc( *result_length); in to_bytes_TSS_DAA_SELECTED_ATTRIB_internal()
210 attrib->indicesList = (TSS_BOOL *)malloc( length * sizeof( TSS_BOOL)); in create_TSS_DAA_SELECTED_ATTRIB()
238 (TSS_DAA_ATTRIB_COMMIT_internal *)malloc( sizeof(TSS_DAA_ATTRIB_COMMIT_internal)); in create_TSS_DAA_ATTRIB_COMMIT()
254 malloc(sizeof(TSS_DAA_PSEUDONYM_PLAIN_internal)); in create_TSS_DAA_PSEUDONYM_PLAIN()
272 (DAA_PRIVATE_KEY_internal *)malloc( sizeof( DAA_PRIVATE_KEY_internal)); in create_TSS_DAA_PRIVATE_KEY()
295 (DAA_PRIVATE_KEY_internal *)malloc( sizeof(DAA_PRIVATE_KEY_internal));
311 (DAA_PRIVATE_KEY_internal *)malloc( sizeof(DAA_PRIVATE_KEY_internal)); in e_2_i_TSS_DAA_PRIVATE_KEY()
372 (KEY_PAIR_WITH_PROOF_internal *)malloc(sizeof(KEY_PAIR_WITH_PROOF_internal));
458 pk_internal = (TSS_DAA_PK_internal *)malloc(sizeof(TSS_DAA_PK_internal)); in create_DAA_PK()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/asn1/
H A Dder_copy.c105 to->data = malloc(to->length + 1); in der_copy_printable_string()
124 to->data = malloc(to->length * sizeof(to->data[0])); in der_copy_bmp_string()
136 to->data = malloc(to->length * sizeof(to->data[0])); in der_copy_universal_string()
158 to->data = malloc(to->length); in der_copy_octet_string()
169 to->data = malloc(to->length); in der_copy_heim_integer()
181 to->components = malloc(to->length * sizeof(*to->components)); in der_copy_oid()
196 to->data = malloc(len); in der_copy_bit_string()
/netbsd-src/external/apache2/llvm/dist/clang/docs/analyzer/checkers/
H A Dunix_malloc_example.c3 int *p = malloc(1); in test()
9 int *p = malloc(sizeof(int)); in test()
15 int *p = malloc(1); in test()
26 int *p = malloc(sizeof(char)); in test()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/daa/daa_platform/
H A Dtest_join.c80 BYTE *message = (BYTE *)malloc( len_message); in sign()
116 message = (BYTE *)malloc(len_message); in init_key_chain()
122 issuer->key_chain = (RSA **)malloc(sizeof(RSA *) * length_key_chain); in init_key_chain()
123 issuer->pk_signatures = (BYTE **)malloc(sizeof(BYTE *) * length_key_chain); in init_key_chain()
132 signature = (BYTE *)malloc( RSA_size(rsa)); in init_key_chain()
133 modulus = (BYTE *)malloc( DAA_PARAM_KEY_SIZE / 8); in init_key_chain()
175 Issuer *issuer = (Issuer *)malloc(sizeof( Issuer)); in initIssuer()
206 issuer->key_pair_extern = (TSS_DAA_KEY_PAIR *)malloc( sizeof(TSS_DAA_KEY_PAIR)); in initIssuer()
222 modulus_N0_bytes = (BYTE *)malloc( TPM_DAA_SIZE_issuerModulus); in initIssuer()
243 sign_data = (BYTE *)malloc( EVP_MD_CTX_size(mdctx) + len_issuer_settings); in initIssuer()
[all …]
/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-delayed-accept.c34 buf->base = malloc(size); in alloc_cb()
50 uv_tcp_t* accepted_handle = (uv_tcp_t*)malloc(sizeof *accepted_handle); in do_accept()
84 timer_handle = (uv_timer_t*)malloc(sizeof *timer_handle); in connection_cb()
102 uv_tcp_t* server = (uv_tcp_t*)malloc(sizeof *server); in start_server()
154 uv_tcp_t* client = (uv_tcp_t*)malloc(sizeof *client); in client_connect()
155 uv_connect_t* connect_req = malloc(sizeof *connect_req); in client_connect()
H A Dtest-ping-pong.c56 buf->base = malloc(size); in alloc_cb()
112 req = malloc(sizeof(*req)); in pinger_write_ping()
188 req = malloc(sizeof(*req)); in ponger_read_cb()
222 pinger = malloc(sizeof(*pinger)); in tcp_pinger_v6_new()
253 pinger = malloc(sizeof(*pinger)); in tcp_pinger_new()
282 pinger = malloc(sizeof(*pinger)); in pipe_pinger_new()
309 pinger = malloc(sizeof(*pinger)); in socketpair_pinger_new()
329 ponger = malloc(sizeof(*ponger)); in socketpair_pinger_new()
356 ponger = malloc(sizeof(*ponger)); in pipe2_pinger_new()
361 pinger = malloc(sizeof(*pinger)); in pipe2_pinger_new()
/netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/
H A 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
/netbsd-src/external/cddl/dtracetoolkit/dist/Examples/
H A 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

12345678910>>...136