Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 105) sorted by relevance

12345

/haiku/src/tests/system/libroot/posix/
H A Dcalloc_test.c16 if (calloc(SIZE_MAX, SIZE_MAX) != NULL) { in main()
23 ptr = calloc(0, 0); in main()
30 if (calloc(-1, -1) != NULL) { in main()
H A Dclearenv.cpp52 environ = (char**)calloc(1, sizeof(*environ)); in main()
/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(1, sizeof(tuple_info_t));
/haiku/src/tests/add-ons/kernel/file_systems/fs_shell/
H A Dargv.c37 argv = (char **)calloc(table_size, sizeof(char *)); in build_argv()
81 nargv = (char **)calloc(table_size, sizeof(char *)); in build_argv()
/haiku/src/add-ons/translators/sgi/
H A DSGIImage.cpp118 fOffsetTable = (int32**)calloc(fChannelCount, sizeof(int32*)); in SetTo()
119 fOffsetTable[0] = (int32*)calloc(fHeight * fChannelCount, sizeof(int32)); in SetTo()
127 fLengthTable = (int32**)calloc(fChannelCount, sizeof(int32*)); in SetTo()
128 fLengthTable[0] = (int32*)calloc(fHeight * fChannelCount, sizeof(int32)); in SetTo()
208 fARLERow = (uint16*)calloc(fWidth, sizeof(uint16)); in SetTo()
222 fOffsetTable = (int32**)calloc(fChannelCount, sizeof(int32*)); in SetTo()
223 fOffsetTable[0] = (int32*)calloc(fHeight * fChannelCount, sizeof(int32)); in SetTo()
229 fLengthTable = (int32**)calloc(fChannelCount, sizeof(int32*)); in SetTo()
230 fLengthTable[0] = (int32*)calloc(fHeight * fChannelCount, sizeof(int32)); in SetTo()
/haiku/src/system/libroot/posix/malloc/debug/
H A Dmalloc_debug_api.cpp277 calloc(size_t numElements, size_t size) in calloc() function
279 if (sCurrentHeap->calloc != NULL) in calloc()
280 return sCurrentHeap->calloc(numElements, size); in calloc()
H A Dmalloc_debug_api.h22 void* (*calloc)(size_t numElements, size_t size); member
/haiku/src/add-ons/kernel/file_systems/fat/bsd/sys/
H A Dmalloc.h50 return (flags & M_ZERO) == 0 ? malloc(size) : calloc(1, size); in _malloc()
/haiku/headers/posix/
H A Dmalloc.h19 extern void *calloc(size_t numElements, size_t size);
/haiku/src/tests/system/network/
H A Dunix_recv_test.c30 char *buf = calloc(bufLen, 1); in main()
H A Dunix_send_test.c31 char *buf = calloc(bufLen, 1); in main()
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dmisc.c47 p = calloc(1, size); in ntfs_calloc()
/haiku/src/system/libroot/posix/musl/search/
H A Dhsearch.c60 htab->__tab->entries = calloc(newsize, sizeof *htab->__tab->entries); in resize()
116 htab->__tab = calloc(1, sizeof *htab->__tab); in __hcreate_r()
/haiku/src/add-ons/kernel/drivers/display/
H A Ddisplay.cpp85 (display_device_info *)calloc(1, sizeof(*device)); in display_init()
/haiku/src/add-ons/kernel/drivers/sensor/acpi_als/
H A Dacpi_als.cpp114 device = (als_device_cookie*)calloc(1, sizeof(als_device_cookie)); in acpi_als_open()
237 device = (als_driver_cookie *)calloc(1, sizeof(als_driver_cookie)); in acpi_als_init_driver()
/haiku/src/libs/bsd/
H A Dvis.c360 if ((dst = calloc(len + MAXEXTRAS, sizeof(*dst))) == NULL) in makeextralist()
436 if ((psrc = calloc(mbslength + 1, sizeof(*psrc))) == NULL) in istrsenvisx()
438 if ((pdst = calloc((16 * mbslength) + 1, sizeof(*pdst))) == NULL) in istrsenvisx()
441 if ((mdst = calloc((16 * mbslength) + 1, sizeof(*mdst))) == NULL) in istrsenvisx()
/haiku/src/add-ons/kernel/file_systems/fat/bsd/kern/
H A Dvfs_subr.c99 struct vnode* newBsdNode = calloc(1, sizeof(struct vnode)); in getnewvnode()
/haiku/src/add-ons/kernel/busses/random/ccp/
H A Dccp_pci.cpp34 ccp_pci_sim_info* bus = (ccp_pci_sim_info*)calloc(1, in init_device()
H A Dccp_acpi.cpp61 ccp_acpi_sim_info* bus = (ccp_acpi_sim_info*)calloc(1, in init_device()
/haiku/headers/private/interface/
H A DTextViewSupportBuffer.h45 fBuffer = (T*)calloc(fExtraCount + fItemCount, sizeof(T)); in _BTextViewSupportBuffer_()
/haiku/src/bin/network/ftpd/
H A Dpopen.c84 if ((pids = calloc(fds, sizeof(int))) == NULL) in ftpd_popen()
/haiku/headers/private/shared/
H A Dcpu_type.h487 topology = (cpu_topology_node_info*)calloc(topologyNodeCount, sizeof(cpu_topology_node_info)); in get_cpu_type()
533 topology = (cpu_topology_node_info*)calloc(topologyNodeCount, sizeof(cpu_topology_node_info)); in get_rounded_cpu_speed()
/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)); in acpi_call_init_device()
/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); in bus_dmamap_create_obsd()
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/
H A Dnvme_request.c88 qpair->reqs = calloc(qpair->num_reqs, sizeof(struct nvme_request)); in nvme_request_pool_construct()

12345