Searched refs:malloc (Results 51 - 75 of 1021) sorted by relevance

1234567891011>>

/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dduckduckgo_request.cpp13 #include <malloc.h>
60 url = (char*)malloc(strlen(BASEURL)+strlen(FMT_NUM)+10+strlen(FMT_Q)+strlen(p)+2);
97 cnx->data = malloc(cnx->datalen);
152 r = (duckduckgo_request*)malloc(sizeof(struct duckduckgo_request));
H A Dvnidpool.c6 #include <malloc.h>
30 p = malloc(sizeof(struct vnidpool) + size / sizeof(BMT));
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A Dsettings_tools.cpp12 #include <malloc.h>
38 malloc(ret->parameter_count * sizeof(driver_parameter));
92 driver_settings *settings = (driver_settings*) malloc(sizeof(driver_settings));
102 driver_parameter *parameter = (driver_parameter*) malloc(sizeof(driver_parameter));
126 to->values = (char**) malloc(from->value_count * sizeof(char*));
137 (driver_parameter*) malloc(to->parameter_count * sizeof(driver_parameter));
175 to->values = (char**) malloc((oldCount + 1) * sizeof(char*));
200 (driver_parameter*) malloc((oldCount + 1) * sizeof(driver_parameter));
/haiku/headers/private/media/
H A DTList.h13 items((value **)malloc(sizeof(value *) * INIT_COUNT))
35 items = (value **)malloc(sizeof(value *) * item_max);
/haiku/src/kits/interface/textview_support/
H A DUndoBuffer.cpp40 fTextData = (char*)malloc(fTextLength);
134 fPasteText = (char*)malloc(fPasteTextLength);
205 fDropText = (char*)malloc(fDropTextLength);
274 fTypedText = (char*)malloc(len);
317 fTextData = (char*)malloc(fTextLength);
343 char* buffer = (char*)malloc(fTextLength + charLen);
374 fTextData = (char*)malloc(fTextLength);
384 // copy (malloc + memcpy vs realloc + memmove).
387 char* buffer = (char*)malloc(newLength);
/haiku/src/add-ons/kernel/drivers/graphics/vesa/
H A Ddriver.cpp19 #include <malloc.h>
70 gDeviceInfo[0] = (vesa_info*)malloc(sizeof(vesa_info));
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dmalloc.h10 #include <malloc.h>
20 * flags to malloc.
57 # define malloc(size, tag, flags) kernel_malloc(size, tag, flags) macro
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dfirewire_module.cpp16 #include <malloc.h>
149 pci_info *info = (pci_info*)malloc(sizeof(pci_info));
177 fwohci_sc = (fwohci_softc_t*)malloc(sizeof(fwohci_softc_t));
185 fw_sc = (firewire_softc*)malloc(sizeof(struct firewire_softc));
197 info = (pci_info*)malloc(sizeof(pci_info));
/haiku/src/add-ons/accelerants/radeon_hd/
H A Daccelerant.cpp64 gInfo = (accelerant_info*)malloc(sizeof(accelerant_info));
72 // malloc memory for active display information
74 gDisplay[id] = (display_info*)malloc(sizeof(display_info));
79 gDisplay[id]->regs = (register_info*)malloc(sizeof(register_info));
85 // malloc for possible physical card connectors
87 gConnector[id] = (connector_info*)malloc(sizeof(connector_info));
99 // malloc for card gpio pin information
101 gGPIOInfo[id] = (gpio_info*)malloc(sizeof(gpio_info));
/haiku/src/bin/unzip/
H A Denvargs.c72 bufptr = malloc(1 + strlen(envptr));
95 argv = (char **)malloc((argc + *Pargc + 1) * sizeof(char *));
303 newargv = (char **) malloc(sizeof(char **) * (newargc+1));
305 return; /* malloc failed */
/haiku/src/tests/add-ons/kernel/file_systems/consistency_check/
H A DAdaptiveBuffering.cpp65 fReadBytes = (size_t*)malloc(fBufferCount * sizeof(size_t));
69 fBuffers = (uint8**)malloc(fBufferCount * sizeof(uint8*));
74 fBuffers[i] = (uint8*)malloc(fMaxBufferSize);
/haiku/src/system/runtime_loader/
H A Delf_symbol_lookup.h67 fValues = (addr_t*)malloc(sizeof(addr_t) * fTableSize);
68 fDSOs = (image_t**)malloc(sizeof(image_t*) * fTableSize);
71 fValuesResolved = (uint32*)malloc(4 * elementCount);
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_dfs/null/
H A Ddfs_null.c48 #include <sys/malloc.h>
235 indata = malloc(insize, M_TEMP, M_NOWAIT);
252 outdata = malloc(outsize, M_TEMP, M_NOWAIT);
/haiku/src/add-ons/kernel/bus_managers/usb/
H A DPhysicalMemoryAllocator.cpp9 #include <malloc.h>
46 fArray = (uint8 **)malloc(size);
50 fBlockSize = (size_t *)malloc(size);
51 fArrayLength = (size_t *)malloc(size);
52 fArrayOffset = (size_t *)malloc(size);
62 fArray[i] = (uint8 *)malloc(size);
/haiku/headers/cpp/
H A Dstl_tempbuf.h45 _Tp* __tmp = (_Tp*) malloc((size_t)__len * sizeof(_Tp));
93 _M_buffer = (_Tp*) malloc(_M_len * sizeof(_Tp));
/haiku/src/apps/resedit/
H A DResourceData.cpp106 fData = (char *)malloc(fLength);
160 fData = (char *)malloc(size);
/haiku/src/system/kernel/util/
H A Dqueue.cpp10 #include <malloc.h>
116 q->table = (void**)malloc(size * sizeof(void *));
/haiku/src/tests/system/libroot/posix/
H A Dmemalign_test.cpp4 #include <malloc.h>
51 allocations[i] = malloc(sizes[i]);
/haiku/src/system/libnetwork/
H A Dinterfaces.cpp96 ifreq* interfaces = (ifreq*)malloc(count * sizeof(struct ifreq));
107 struct if_nameindex* interfaceArray = (struct if_nameindex*)malloc(
/haiku/src/tests/add-ons/accelerants/intel_extreme/
H A DPllTest.cpp69 gInfo = (accelerant_info*)malloc(sizeof(accelerant_info));
71 fprintf(stderr, "Unable to malloc artificial gInfo!\n");
75 gInfo->shared_info = (intel_shared_info*)malloc(sizeof(intel_shared_info));
77 fprintf(stderr, "Unable to malloc shared_info!\n");
/haiku/src/tests/add-ons/kernel/file_systems/bfs/btree/
H A Dcache.cpp16 #include <malloc.h>
83 void* buffer = malloc(sBlockSize);
/haiku/headers/private/debugger/types/
H A DValueLocation.h77 void* tempValue = malloc(size);
130 char* valueData = (char*)malloc(size);
/haiku/src/add-ons/kernel/drivers/network/ether/wb840/
H A Ddriver.c63 item = (pci_info*)malloc(sizeof(pci_info));
79 item = (pci_info *)malloc(sizeof(pci_info));
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DRequest.cpp47 void* buffer = malloc(sizeof(RequestBuffer) + dataSize);
/haiku/src/add-ons/kernel/file_systems/nfs/
H A DRPCPendingCalls.h5 #include <malloc.h>

Completed in 133 milliseconds

1234567891011>>