Home
last modified time | relevance | path

Searched refs:malloc_size (Results 1 – 25 of 643) sorted by relevance

12345678910>>...26

/dports/sysutils/fpart/fpart-1.4.0/src/
H A Dfile_entry.c162 size_t malloc_size = 1; /* empty string */ in fpart_hook() local
175 malloc_size = strlen(env_fpart_hooktype_name) + 1 + in fpart_hook()
198 malloc_size = strlen(env_fpart_hooktype_name) + 1 + in fpart_hook()
246 malloc_size = strlen(env_fpart_partsize_name) + 1 + in fpart_hook()
278 malloc_size = strlen(env_fpart_pid_name) + 1 + in fpart_hook()
280 if_not_malloc(env_fpart_pid_string, malloc_size, in fpart_hook()
284 snprintf(env_fpart_pid_string, malloc_size, "%s=%d", in fpart_hook()
534 size_t malloc_size = strlen(path) + 1; in add_file_entry() local
536 if_not_malloc((*current)->path, malloc_size, in add_file_entry()
541 snprintf((*current)->path, malloc_size, "%s", path); in add_file_entry()
[all …]
H A Dutils.c232 size_t malloc_size = 0; in abs_path() local
251 malloc_size += strlen(path) + 1; /* path + '\0' */ in abs_path()
253 if_not_malloc(abs, malloc_size, in abs_path()
260 snprintf(abs, malloc_size, "%s", path); in abs_path()
283 size_t malloc_size = strlen(str) + 1; in str_push() local
284 if_not_malloc(tmp_str, malloc_size, in str_push()
287 snprintf(tmp_str, malloc_size, "%s", str); in str_push()
502 size_t malloc_size = sizeof(char *) * env_size; in clone_env() local
503 if_not_malloc(new_env, malloc_size, in clone_env()
537 size_t malloc_size = sizeof(char *) * env_size; in push_env() local
[all …]
H A Dfpart.c203 size_t malloc_size = input_path_len + 1; in handle_argument() local
204 if_not_malloc(input_path, malloc_size, in handle_argument()
207 snprintf(input_path, malloc_size, "%s", argument); in handle_argument()
424 size_t malloc_size = strlen(optarg) + 1; in handle_options() local
425 if(malloc_size <= 1) in handle_options()
430 if_not_malloc(options->pre_part_hook, malloc_size, in handle_options()
439 size_t malloc_size = strlen(optarg) + 1; in handle_options() local
440 if(malloc_size <= 1) in handle_options()
445 if_not_malloc(options->post_part_hook, malloc_size, in handle_options()
562 size_t malloc_size = strlen(opt_input) + 1; in handle_options() local
[all …]
/dports/net/libosip2/libosip2-5.3.0/src/osipparser2/
H A Dosip_message_to_str.c158 string = osip_realloc(string, *malloc_size); in strcat_simple_header()
185 *malloc_size = message - string + strlen(tmp) + 100; in strcat_simple_header()
186 string = osip_realloc(string, *malloc_size); in strcat_simple_header()
229 string = osip_realloc(string, *malloc_size); in strcat_headers_one_per_line()
258 string = osip_realloc(string, *malloc_size); in strcat_headers_one_per_line()
306 if (*malloc_size < (size_t)(size + needed + 100)) { in _osip_message_realloc()
307 *malloc_size = size + needed + 100; in _osip_message_realloc()
308 *dest = osip_realloc(*dest, *malloc_size); in _osip_message_realloc()
320 size_t malloc_size; in _osip_message_to_str() local
334 malloc_size = SIP_MESSAGE_MAX_LENGTH; in _osip_message_to_str()
[all …]
/dports/emulators/sameboy/SameBoy-0.14.7/Core/
H A Drewind.c9 size_t malloc_size = 0x1000; in state_compress() local
10 uint8_t *compressed = malloc(malloc_size); in state_compress()
30 if (data_pos >= malloc_size) { in state_compress()
31 malloc_size *= 2; in state_compress()
32 compressed = realloc(compressed, malloc_size); in state_compress()
45 if (data_pos >= malloc_size) { in state_compress()
46 malloc_size *= 2; in state_compress()
47 compressed = realloc(compressed, malloc_size); in state_compress()
54 if (counter_pos >= malloc_size - 1) { in state_compress()
55 malloc_size *= 2; in state_compress()
[all …]
/dports/net/lambdamoo/MOO-1.8.1/
H A Dstorage.c75 extern unsigned malloc_size(void *ptr); in mymalloc()
77 alloc_size[type] += malloc_size(memptr); in mymalloc()
126 extern unsigned malloc_size(void *ptr); in myrealloc()
128 alloc_size[type] -= malloc_size(ptr); in myrealloc()
139 alloc_size[type] += malloc_size(ptr); in myrealloc()
154 extern unsigned malloc_size(void *ptr); in myfree()
156 alloc_size[type] -= malloc_size(ptr); in myfree()
/dports/net-mgmt/fprobe/fprobe-1.1/src/
H A Dmem.c34 static unsigned int malloc_size; variable
49 if (limit_memory && (total_memory + malloc_size) > limit_memory) { in mem_alloc()
57 if (!(mptr = calloc(malloc_size, 1))) goto done; in mem_alloc()
73 total_memory += malloc_size; in mem_alloc()
143 total_memory -= malloc_size; in mem_free()
160 malloc_size = sizeof(struct Mem) + mem_index_table_size + element_table_size; in mem_init()
164 element_size, bulk_quantity, malloc_size, limit_memory); in mem_init()
/dports/math/giacxcas/fltk-1.3.0/src/
H A DFl_XPM_Image.cxx69 int malloc_size = INITIALLINES; in Fl_XPM_Image() local
112 if (i >= malloc_size) { in Fl_XPM_Image()
113 temp_data = new char *[malloc_size + INITIALLINES]; in Fl_XPM_Image()
114 memcpy(temp_data, new_data, sizeof(char *) * malloc_size); in Fl_XPM_Image()
117 malloc_size += INITIALLINES; in Fl_XPM_Image()
/dports/x11/virtualgl/virtualgl-3.0/server/fltk/src/
H A DFl_XPM_Image.cxx64 int malloc_size = INITIALLINES; in Fl_XPM_Image() local
107 if (i >= malloc_size) { in Fl_XPM_Image()
108 temp_data = new char *[malloc_size + INITIALLINES]; in Fl_XPM_Image()
109 memcpy(temp_data, new_data, sizeof(char *) * malloc_size); in Fl_XPM_Image()
112 malloc_size += INITIALLINES; in Fl_XPM_Image()
/dports/x11-toolkits/ntk/ntk/src/
H A DFl_XPM_Image.cxx69 int malloc_size = INITIALLINES; in Fl_XPM_Image() local
112 if (i >= malloc_size) { in Fl_XPM_Image()
113 temp_data = new char *[malloc_size + INITIALLINES]; in Fl_XPM_Image()
114 memcpy(temp_data, new_data, sizeof(char *) * malloc_size); in Fl_XPM_Image()
117 malloc_size += INITIALLINES; in Fl_XPM_Image()
/dports/x11-toolkits/fltk/fltk-1.3.8/src/
H A DFl_XPM_Image.cxx61 int malloc_size = INITIALLINES; in Fl_XPM_Image() local
105 if (i >= malloc_size) { in Fl_XPM_Image()
106 temp_data = new char *[malloc_size + INITIALLINES]; in Fl_XPM_Image()
107 memcpy(temp_data, new_data, sizeof(char *) * malloc_size); in Fl_XPM_Image()
110 malloc_size += INITIALLINES; in Fl_XPM_Image()
/dports/editors/emacs-devel/emacs-4d1968b/src/
H A Dtermcap.c354 ptrdiff_t malloc_size = 0; in tgetent() local
368 malloc_size = 1 + strlen (term); in tgetent()
369 bp = xmalloc (malloc_size); in tgetent()
433 malloc_size = indirect ? strlen (tcenv) + 1 : buf.size; in tgetent()
434 bp = xmalloc (malloc_size); in tgetent()
452 if (malloc_size) in tgetent()
462 if (malloc_size) in tgetent()
465 malloc_size = offset1 + buf.size; in tgetent()
466 bp = termcap_name = xrealloc (bp, malloc_size); in tgetent()
491 if (malloc_size) in tgetent()
/dports/editors/emacs/emacs-27.2/src/
H A Dtermcap.c354 ptrdiff_t malloc_size = 0; in tgetent() local
368 malloc_size = 1 + strlen (term); in tgetent()
369 bp = xmalloc (malloc_size); in tgetent()
433 malloc_size = indirect ? strlen (tcenv) + 1 : buf.size; in tgetent()
434 bp = xmalloc (malloc_size); in tgetent()
452 if (malloc_size) in tgetent()
462 if (malloc_size) in tgetent()
465 malloc_size = offset1 + buf.size; in tgetent()
466 bp = termcap_name = xrealloc (bp, malloc_size); in tgetent()
491 if (malloc_size) in tgetent()
/dports/devel/aws-c-common/aws-c-common-0.6.15/source/
H A Dstring.c34 size_t malloc_size = 0; in aws_string_convert_to_wchar_from_byte_cursor() local
42 if (aws_add_size_checked(sizeof(struct aws_wstring) + 2, str_len_size, &malloc_size)) { in aws_string_convert_to_wchar_from_byte_cursor()
46 struct aws_wstring *str = aws_mem_acquire(allocator, malloc_size); in aws_string_convert_to_wchar_from_byte_cursor()
76 size_t malloc_size = 0; in aws_wstring_new_from_array() local
88 struct aws_wstring *str = aws_mem_acquire(allocator, malloc_size); in aws_wstring_new_from_array()
125 size_t malloc_size = 0; in s_convert_from_wchar() local
128 if (aws_add_size_checked(sizeof(struct aws_string), bytes_size, &malloc_size)) { in s_convert_from_wchar()
132 struct aws_string *str = aws_mem_acquire(allocator, malloc_size); in s_convert_from_wchar()
192 size_t malloc_size; in aws_string_new_from_array() local
193 if (aws_add_size_checked(sizeof(struct aws_string) + 1, len, &malloc_size)) { in aws_string_new_from_array()
[all …]
/dports/audio/mp3splt-gtk/mp3splt-gtk-0.9.2/src/
H A Dgstreamer_control.c66 gint malloc_size = strlen(error->message) + 20; in bus_call() local
67 message = malloc(sizeof(char) * malloc_size); in bus_call()
70 memset(message,'\0',malloc_size); in bus_call()
92 gint malloc_size = strlen(error->message) + 20; in bus_call() local
93 message = malloc(sizeof(char) * malloc_size); in bus_call()
96 memset(message,'\0',malloc_size); in bus_call()
97 g_snprintf(message, malloc_size,_("Warning: %s"),error->message); in bus_call()
118 gint malloc_size = strlen(error->message) + 20; in bus_call() local
119 message = malloc(sizeof(char) * malloc_size); in bus_call()
122 memset(message,'\0',malloc_size); in bus_call()
[all …]
/dports/sysutils/LPRng/lprng-3.8.C/UTILS/
H A Dtermcap.c331 int malloc_size = 0; local
387 malloc_size = indirect ? strlen (tcenv) + 1 : buf.size;
388 bp = (char *) malloc (malloc_size);
406 if (malloc_size)
416 if (malloc_size)
418 malloc_size = bp1 - bp + buf.size;
419 termcap_name = (char *) realloc (bp, malloc_size);
445 if (malloc_size)
450 if (malloc_size)
/dports/devel/dev86/dev86-0.16.20/libc/gtermcap/
H A Dtermcap.c476 int malloc_size = 0; local
510 malloc_size = 1; /* force return of bp */
549 malloc_size = indirect ? strlen (tcenv) + 1 : buf.size;
550 bp = (char *) xmalloc (malloc_size);
568 if (malloc_size)
578 if (malloc_size)
580 malloc_size = bp1 - bp + buf.size;
581 termcap_name = (char *) xrealloc (bp, malloc_size);
607 if (malloc_size)
610 adjust_win_extent(&bp, malloc_size ? 2 : 0, li, co);
[all …]
/dports/shells/bash/bash-5.1/lib/termcap/
H A Dtermcap.c460 int malloc_size = 0; local
474 malloc_size = 1 + strlen (term);
475 bp = (char *) xmalloc (malloc_size);
545 malloc_size = indirect ? strlen (tcenv) + 1 : buf.size;
546 bp = (char *) xmalloc (malloc_size);
564 if (malloc_size)
574 if (malloc_size)
576 malloc_size = bp1 - bp + buf.size;
577 termcap_name = (char *) xrealloc (bp, malloc_size);
603 if (malloc_size)
/dports/devel/tinygo/tinygo-0.14.1/lib/compiler-rt/test/tsan/Darwin/
H A Dmalloc_size.mm27 s = malloc_size(p);
34 s = malloc_size(p);
41 s = malloc_size(p);
52 s = malloc_size(p);
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/compiler-rt/test/tsan/Darwin/
H A Dmalloc_size.mm27 s = malloc_size(p);
34 s = malloc_size(p);
41 s = malloc_size(p);
52 s = malloc_size(p);
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/compiler-rt/test/tsan/Darwin/
H A Dmalloc_size.mm27 s = malloc_size(p);
34 s = malloc_size(p);
41 s = malloc_size(p);
52 s = malloc_size(p);
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/compiler-rt/test/tsan/Darwin/
H A Dmalloc_size.mm27 s = malloc_size(p);
34 s = malloc_size(p);
41 s = malloc_size(p);
52 s = malloc_size(p);
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/compiler-rt/test/tsan/Darwin/
H A Dmalloc_size.mm27 s = malloc_size(p);
34 s = malloc_size(p);
41 s = malloc_size(p);
52 s = malloc_size(p);
/dports/devel/llvm12/llvm-project-12.0.1.src/compiler-rt/test/tsan/Darwin/
H A Dmalloc_size.mm27 s = malloc_size(p);
34 s = malloc_size(p);
41 s = malloc_size(p);
52 s = malloc_size(p);
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/compiler-rt/test/tsan/Darwin/
H A Dmalloc_size.mm27 s = malloc_size(p);
34 s = malloc_size(p);
41 s = malloc_size(p);
52 s = malloc_size(p);

12345678910>>...26