Searched refs:calloc (Results 1 - 25 of 95) sorted by relevance

1234

/haiku/src/tests/system/libroot/posix/
H A Dcalloc_test.c15 printf("Testing calloc(SIZE_MAX, SIZE_MAX)... ");
16 if (calloc(SIZE_MAX, SIZE_MAX) != NULL) {
22 printf("Testing calloc(0, 0)... ");
23 ptr = calloc(0, 0);
24 /* free the value, since calloc() should return a free() able pointer */
26 /* if the test reaches this point, then calloc() works exactly as expected */
29 printf("Testing calloc(-1, -1)... ");
30 if (calloc(-1, -1) != NULL) {
H A Dclearenv.cpp52 environ = (char**)calloc(1, sizeof(*environ));
/haiku/headers/posix/
H A Dmalloc.h18 extern void *calloc(size_t numElements, size_t size);
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dmisc.c47 p = calloc(1, size);
49 ntfs_log_perror("Failed to calloc %lld bytes", (long long)size);
/haiku/src/tests/system/network/
H A Dunix_send_test.c31 char *buf = calloc(bufLen, 1);
H A Dunix_recv_test.c30 char *buf = calloc(bufLen, 1);
/haiku/src/bin/pcmcia-cs/
H A Dyacc_cis.y137 { $$ = calloc(1, sizeof(cisparse_t)); }
149 { $$ = calloc(1, sizeof(cisparse_t)); }
162 $$ = calloc(1, sizeof(cisparse_t));
186 $$ = calloc(1, sizeof(cisparse_t));
194 $$ = calloc(1, sizeof(cisparse_t));
205 $$ = calloc(1, sizeof(cisparse_t));
219 $$ = calloc(1, sizeof(cisparse_t));
233 $$ = calloc(1, sizeof(cisparse_t));
356 $$ = calloc(1, sizeof(cisparse_t));
394 tuple_info_t *t = calloc(
[all...]
/haiku/src/add-ons/kernel/drivers/display/
H A Ddisplay.cpp85 (display_device_info *)calloc(1, sizeof(*device));
/haiku/src/system/libroot/posix/malloc_debug/
H A Dmalloc_debug_api.h22 void* (*calloc)(size_t numElements, size_t size); member in struct:heap_implementation
H A Dmalloc_debug_api.cpp277 calloc(size_t numElements, size_t size) function
279 if (sCurrentHeap->calloc != NULL)
280 return sCurrentHeap->calloc(numElements, size);
/haiku/src/add-ons/translators/sgi/
H A DSGIImage.cpp118 fOffsetTable = (int32**)calloc(fChannelCount, sizeof(int32*));
119 fOffsetTable[0] = (int32*)calloc(fHeight * fChannelCount, sizeof(int32));
127 fLengthTable = (int32**)calloc(fChannelCount, sizeof(int32*));
128 fLengthTable[0] = (int32*)calloc(fHeight * fChannelCount, sizeof(int32));
208 fARLERow = (uint16*)calloc(fWidth, sizeof(uint16));
222 fOffsetTable = (int32**)calloc(fChannelCount, sizeof(int32*));
223 fOffsetTable[0] = (int32*)calloc(fHeight * fChannelCount, sizeof(int32));
229 fLengthTable = (int32**)calloc(fChannelCount, sizeof(int32*));
230 fLengthTable[0] = (int32*)calloc(fHeight * fChannelCount, sizeof(int32));
/haiku/src/system/libroot/posix/musl/search/
H A Dhsearch.c60 htab->__tab->entries = calloc(newsize, sizeof *htab->__tab->entries);
116 htab->__tab = calloc(1, sizeof *htab->__tab);
/haiku/headers/private/interface/
H A DTextViewSupportBuffer.h45 fBuffer = (T*)calloc(fExtraCount + fItemCount, sizeof(T));
/haiku/src/add-ons/kernel/busses/random/ccp/
H A Dccp_acpi.cpp61 ccp_acpi_sim_info* bus = (ccp_acpi_sim_info*)calloc(1,
H A Dccp_pci.cpp34 ccp_pci_sim_info* bus = (ccp_pci_sim_info*)calloc(1,
/haiku/src/add-ons/kernel/drivers/sensor/acpi_als/
H A Dacpi_als.cpp114 device = (als_device_cookie*)calloc(1, sizeof(als_device_cookie));
237 device = (als_driver_cookie *)calloc(1, sizeof(als_driver_cookie));
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/
H A Dnvme_request.c88 qpair->reqs = calloc(qpair->num_reqs, sizeof(struct nvme_request));
/haiku/src/bin/network/ftpd/
H A Dpopen.c88 if ((pids = calloc(fds, sizeof(int))) == NULL)
/haiku/src/add-ons/kernel/bus_managers/acpi/
H A DCall.cpp50 acpi_call_device_info* device = (acpi_call_device_info*)calloc(1, sizeof(acpi_call_device_info));
/haiku/src/libs/compat/openbsd_network/compat/machine/
H A Dbus.h34 *dmamp = calloc(sizeof(struct bus_dmamap_obsd) + (sizeof(bus_dma_segment_t) * nsegments), 1);
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dvcache.cpp100 vol->vcache.by_vnid = (vcache_entry**)calloc(sizeof(struct vache_entry *),
107 vol->vcache.by_loc = (vcache_entry**)calloc(sizeof(struct vache_entry *),
/haiku/headers/private/shared/
H A Dcpu_type.h487 topology = (cpu_topology_node_info*)calloc(topologyNodeCount, sizeof(cpu_topology_node_info));
533 topology = (cpu_topology_node_info*)calloc(topologyNodeCount, sizeof(cpu_topology_node_info));
/haiku/src/add-ons/kernel/drivers/audio/ac97/geode/
H A Dgeode_controller.cpp195 geode_stream* stream = (geode_stream*)calloc(1, sizeof(geode_stream));
433 controller->multi = (geode_multi*)calloc(1, sizeof(geode_multi));
/haiku/src/kits/shared/
H A DColorQuantizer.cpp185 Node* node = (Node*)calloc(1, sizeof(Node));
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dbitstring.h129 return ((bitstr_t *)calloc(bitstr_size(_nbits), 1));

Completed in 354 milliseconds

1234