/illumos-gate/usr/src/cmd/dtrace/test/tst/common/vars/ |
H A D | tst.ucaller.ksh | 42 pid\$target:ld.so.1:calloc:entry 44 self->calloc = 1; 48 /self->calloc/ 53 pid\$target:ld.so.1:calloc:return 54 /self->calloc/ 56 self->calloc = 0;
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_alloc.c | 111 if ((p.bind = calloc(1, sizeof (struct t_bind))) == NULL) in _tx_alloc() 123 if ((p.call = calloc(1, sizeof (struct t_call))) == NULL) in _tx_alloc() 153 if ((p.opt = calloc(1, sizeof (struct t_optmgmt))) == NULL) in _tx_alloc() 170 if ((p.dis = calloc(1, sizeof (struct t_discon))) == NULL) in _tx_alloc() 181 if ((p.udata = calloc(1, sizeof (struct t_unitdata))) == NULL) in _tx_alloc() 208 if ((p.uderr = calloc(1, sizeof (struct t_uderr))) == NULL) in _tx_alloc() 230 if ((p.info = calloc(1, sizeof (struct t_info))) == NULL) in _tx_alloc() 293 if ((buf->buf = calloc(1, infalloc)) == NULL) { in _alloc_buf() 302 if ((buf->buf = calloc(1, 1024)) == NULL) { in _alloc_buf() 337 if ((buf->buf = calloc(1, (size_t)n)) == NULL) { in _alloc_buf()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | puterror.c | 53 tmp = calloc(MS+n+1, sizeof (char)); in puterror() 61 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror() 69 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror() 77 tmp = calloc(MS+n+1, sizeof (char)); in puterror() 83 tmp = calloc(MS+n+1, sizeof (char)); in puterror()
|
/illumos-gate/usr/src/cmd/fwflash/common/ |
H A D | fwflash.c | 282 if ((fwplugdirpath = calloc(1, MAXPATHLEN + 1)) == NULL) { in flash_load_plugins() 307 if ((fw_pluginlist = calloc(1, sizeof (struct fw_plugin))) in flash_load_plugins() 327 if ((plugname = calloc(1, MAXPATHLEN + 1)) == NULL) { in flash_load_plugins() 339 if ((tmpelem = calloc(1, sizeof (struct pluginlist))) in flash_load_plugins() 348 if ((tmpplug = calloc(1, sizeof (struct fw_plugin))) in flash_load_plugins() 364 if ((tmpplug->filename = calloc(1, strlen(plugname) + 1)) in flash_load_plugins() 381 tmpplug->drvname = calloc(1, MAXMODCONFNAME); in flash_load_plugins() 386 char *tempnm = calloc(1, MAXMODCONFNAME); in flash_load_plugins() 455 if ((tmpelem->drvname = calloc(1, MAXMODCONFNAME)) in flash_load_plugins() 467 if ((tmpelem->filename = calloc(1, in flash_load_plugins() [all …]
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | fncs.c | 56 *list = (void **)calloc(__list_increment, in list_append() 68 new_list = (void **)calloc(new_size, sizeof (void *)); in list_append() 100 if ((tmp = (void **)calloc(new_size, sizeof (void *))) == NULL) in list_remove() 131 EXEC *result = calloc(1, sizeof (*result)); in new_exec() 172 ALERT *result = calloc(1, sizeof (*result)); in new_alert() 251 PSTATUS *result = calloc(1, sizeof (*result)); in new_pstatus() 286 CLSTATUS *result = calloc(1, sizeof (*result)); in new_cstatus() 292 result->class = calloc(1, sizeof (CLASS)); in new_cstatus() 327 FSTATUS *result = calloc(1, sizeof (*result)); in new_fstatus() 335 result->form = calloc(1, sizeof (_FORM)); in new_fstatus() [all …]
|
/illumos-gate/usr/src/lib/libnls/common/ |
H A D | nlsenv.c | 74 extern char *calloc(); in nlsenv() 90 if (!(buf->buf = calloc(1, length))) in nlsenv() 130 extern char *calloc(); in nlsgetcall() 132 if (!(call = (struct t_call *) calloc(1, sizeof(struct t_call)))) in nlsgetcall()
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | depchk.c | 197 eir = (depckErrorRecord_t *)calloc(1, in depchkRecordError() 201 eir->ier_zones = (char **)calloc(1, sizeof (char **)); in depchkRecordError() 203 eir->ier_values = (char **)calloc(1, sizeof (char *)); in depchkRecordError() 282 erc->ier_zones = (char **)calloc(1, sizeof (char *)); in depchkRecordError() 284 erc->ier_values = (char **)calloc(1, sizeof (char *)); in depchkRecordError() 340 p = calloc(1, len); in collectError()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/ |
H A D | fc_led_parse.c | 299 dtls->presence = calloc(dtls->n_disks, sizeof (int)); in act_n_disks() 302 dtls->faults = calloc(dtls->n_disks, sizeof (int)); in act_n_disks() 305 dtls->disk_detected = calloc(dtls->n_disks, sizeof (int)); in act_n_disks() 308 dtls->disk_ready = calloc(dtls->n_disks, sizeof (int)); in act_n_disks() 311 dtls->disk_prev = calloc(dtls->n_disks, sizeof (int)); in act_n_disks() 314 dtls->led_test_end = calloc(dtls->n_disks, sizeof (int)); in act_n_disks() 317 dtls->picl_retry = calloc(dtls->n_disks, sizeof (boolean_t)); in act_n_disks() 320 dtls->disk_port = calloc(dtls->n_disks, sizeof (char *)); in act_n_disks() 325 dtls->led_addr[i] = calloc(dtls->n_disks, sizeof (int)); in act_n_disks() 328 dtls->led_state[i] = calloc(dtls->n_disks, in act_n_disks() [all …]
|
/illumos-gate/usr/src/lib/print/libpapi-common/common/ |
H A D | list.c | 52 *list = (void **)calloc(__list_increment, in list_append() 62 new_list = (void **)calloc(new_size, sizeof (void *)); in list_append() 109 if ((*result = (void **)calloc((new_size), sizeof (void *))) != NULL) { in list_concatenate() 166 void **tmp = (void **)calloc(LIST_SIZE(i), sizeof (void *)); in list_remove()
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_parse_hdrs.c | 113 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_allow_header() 120 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_allow_header() 245 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_date_header() 251 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_date_header() 482 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_retryaft_header() 488 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_retryaft_header() 590 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_timestamp_header() 596 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_timestamp_header() 694 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_warn_header() 701 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_warn_header() [all …]
|
H A D | sip_parse_generic.c | 249 new_param = calloc(1, sizeof (sip_param_t)); in sip_parse_params() 374 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_hdr_empty() 512 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_hdr_parser1() 519 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_hdr_parser1() 680 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_hdr_parser2() 686 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_hdr_parser2() 734 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_hdr_parser3() 742 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_hdr_parser3() 939 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_hdr_parser4() 945 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_hdr_parser4() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | printer.c | 93 if ((p = calloc(1, sizeof (*p))) == NULL) in papiPrintersList() 122 if ((p = calloc(1, sizeof (*p))) == NULL) in papiPrintersList() 162 if ((*printer = p = calloc(1, sizeof (*p))) == NULL) in papiPrinterQuery() 245 if ((*result = p = calloc(1, sizeof (*p))) != NULL) in papiPrinterAdd() 254 if ((*result = p = calloc(1, sizeof (*p))) != NULL) in papiPrinterAdd() 285 if ((*result = p = calloc(1, sizeof (*p))) != NULL) in papiPrinterModify() 293 if ((*result = p = calloc(1, sizeof (*p))) != NULL) in papiPrinterModify() 482 if ((job = calloc(1, sizeof (*job))) == NULL) in papiPrinterListJobs()
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | hunt1.c | 32 char *calloc(); 159 strcpy(*fgnamp++ = calloc(strlen(oldname)+2, 1), in main() 178 master = (unsigned *)calloc(lmaster, iflong ? in main() 180 hpt = (long *)calloc(nhash, sizeof (*hpt)); in main() 187 hfreq = (int *)calloc(nhash, sizeof (*hfreq)); in main()
|
/illumos-gate/usr/src/cmd/format/ |
H A D | ctlr_ata.c | 281 new_defect = calloc(ap->ap_tblp->alts_ent_used, in ata_convert_list() 308 new_defect = calloc(1, in ata_convert_list() 369 blc_p = (struct badsec_lst *)calloc(1, BADSLSZ); in ata_repair() 381 blc_p->bl_nxt = (struct badsec_lst *)calloc(1, BADSLSZ); in ata_repair() 456 blc_p = (struct badsec_lst *)calloc(1, BADSLSZ); in ata_wr_cur() 469 blc_p->bl_nxt = (struct badsec_lst *)calloc(1, BADSLSZ); in ata_wr_cur()
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | tavor.c | 203 if ((raw_pfi = calloc(1, pchunks * manuf->sector_sz)) == NULL) { in fw_readfw() 268 if ((raw_sfi = calloc(1, pchunks * manuf->sector_sz)) == NULL) { in fw_readfw() 630 if ((newdev = calloc(1, sizeof (struct devicelist))) in fw_identify() 643 if ((newdev->access_devname = calloc(1, devlength)) == NULL) { in fw_identify() 655 if ((newdev->ident = calloc(1, sizeof (struct vpr))) == NULL) { in fw_identify() 674 if ((newdev->drvname = calloc(1, strlen(drivername) + 1)) in fw_identify() 689 if ((newdev->classname = calloc(1, 3)) == NULL) { in fw_identify() 846 if ((manuf = calloc(1, sizeof (ib_encap_ident_t))) == NULL) { in tavor_identify() 945 if (((thisdev->ident->vid = calloc(1, MLX_VPR_VIDLEN + 1)) == NULL) || in tavor_identify() 946 ((thisdev->ident->revid = calloc(1, MLX_VPR_REVLEN + 1)) == NULL)) { in tavor_identify() [all …]
|
H A D | sd.c | 550 if ((newdev = calloc(1, sizeof (struct devicelist))) == in fw_identify() 561 if ((newdev->drvname = calloc(1, strlen(driver) + 1)) == in fw_identify() 572 if ((newdev->classname = calloc(1, strlen(driver) + 1)) == in fw_identify() 584 if ((newdev->access_devname = calloc(1, MAXPATHLEN)) == NULL) { in fw_identify() 623 if ((newdev->ident = calloc(1, sizeof (struct vpr))) == NULL) { in fw_identify() 643 calloc(1, strlen(sp_temp) + 1)) == NULL || in fw_identify() 682 if ((newdev->ident->vid = calloc(1, in fw_identify() 699 calloc(1, strlen(sp_temp) - in fw_identify() 717 calloc(1, strlen(sp_temp) + 1)) == NULL || in fw_identify() 733 if ((newdev->ident->revid = calloc(1, strlen(sp_temp) + 1)) == in fw_identify() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | bhyvegc.c | 53 gc = calloc(1, sizeof (struct bhyvegc)); in bhyvegc_init() 55 gc_image = calloc(1, sizeof(struct bhyvegc_image)); in bhyvegc_init() 62 gc_image->data = calloc(width * height, sizeof (uint32_t)); in bhyvegc_init()
|
H A D | qemu_loader.c | 94 element = calloc(1, sizeof(struct qemu_loader_element)); in qemu_loader_alloc() 125 element = calloc(1, sizeof(struct qemu_loader_element)); in qemu_loader_add_checksum() 153 element = calloc(1, sizeof(struct qemu_loader_element)); in qemu_loader_add_pointer() 182 loader = calloc(1, sizeof(struct qemu_loader)); in qemu_loader_create() 281 data = calloc(1, len); in qemu_loader_finish()
|
H A D | qemu_fwcfg.c | 218 struct qemu_fwcfg_directory *const fwcfg_directory = calloc(1, size); in qemu_fwcfg_add_item_file_dir() 221 void *ptr = calloc(1, size); in qemu_fwcfg_add_item_file_dir() 239 struct qemu_fwcfg_id *const fwcfg_id = calloc(1, in qemu_fwcfg_add_item_id() 259 uint16_t *fwcfg_max_cpus = calloc(1, sizeof(uint16_t)); in qemu_fwcfg_add_item_max_cpus() 277 uint16_t *fwcfg_max_cpus = calloc(1, sizeof(uint16_t)); in qemu_fwcfg_add_item_nb_cpus() 291 struct qemu_fwcfg_signature *const fwcfg_signature = calloc(1, in qemu_fwcfg_add_item_signature() 364 struct qemu_fwcfg_directory *const new_directory = calloc(1, in qemu_fwcfg_add_file()
|
/illumos-gate/usr/src/cmd/stmsboot/ |
H A D | stmsboot_util.c | 177 ondiskbuf = calloc(1, cachestat.st_size); in main() 235 if ((ondiskbuf = calloc(1, newsz)) == NULL) { in main() 406 if ((drvlimit = calloc(1, MAXMODCONFNAME)) == NULL) { in parse_args() 455 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args() 472 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args() 482 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args() 492 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args() 683 if ((prefixt = calloc(1, strlen(argdev) + 1)) == NULL) { in report_map() 699 if ((stripdev = calloc(1, strlen(prefixt) + 1)) == NULL) { in report_map() 1065 if ((curpath = calloc(1, MAXPATHLEN)) == NULL) { in popcheck_devnvl() [all …]
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_parse.c | 74 defp = calloc(1, sizeof (definition)); in get_definition() 261 decls = calloc(1, sizeof (decl_list)); in def_struct() 305 vlist = calloc(1, sizeof (version_list)); in def_program() 311 plist = calloc(1, sizeof (proc_list)); in def_program() 331 decls = calloc(1, sizeof (decl_list)); in def_program() 340 decls = calloc(1, sizeof (decl_list)); in def_program() 402 elist = calloc(1, sizeof (enumval_list)); in def_enum() 452 cases = calloc(1, sizeof (case_list)); in def_union() 464 cases = calloc(1, sizeof (case_list)); in def_union() 471 cases = calloc(1, sizeof (case_list)); in def_union() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_cvt.c | 49 *dyncomp = calloc(1, WWN_SIZE*2 + 1); in cvt_lawwn_to_dyncomp() 400 if ((pathp = calloc(1, devlen)) in is_apid_configured() 486 if ((pathp = calloc(1, devlen)) in insert_lun_to_lunlist() 509 newlun = calloc(1, sizeof (struct luninfo_list)); in update_lunlist() 590 *dyncompp = calloc(1, WWN_SIZE*2 + 1); in make_dyncomp_from_dinode() 653 *dyncompp = calloc(1, WWN_SIZE*2+1); in make_portwwn_luncomp_from_dinode() 695 *dyncompp = calloc(1, WWN_SIZE*2+1); in make_portwwn_luncomp_from_pinode() 755 if ((port_wwn = calloc(1, WWN_SIZE*2 + 1)) in construct_nodepath_from_dinode() 771 if ((*node_pathp = calloc(1, devlen)) == NULL) { in construct_nodepath_from_dinode()
|
/illumos-gate/usr/src/cmd/sgs/common/ |
H A D | string_table.c | 161 if ((stp = calloc(1, sizeof (*stp))) == NULL) in st_new() 176 if ((stp->st_lentree = calloc(1, sizeof (*stp->st_lentree))) == NULL) in st_new() 228 if ((lnp = calloc(1, sizeof (*lnp))) == NULL) in st_insert() 231 if ((lnp->ln_strtree = calloc(1, sizeof (*lnp->ln_strtree))) == in st_insert() 251 if ((snp = calloc(1, sizeof (*snp))) == NULL) in st_insert() 545 if ((mstr = calloc(1, sizeof (*mstr))) == NULL) in st_hash_insert() 560 if ((sthash = calloc(1, sizeof (*sthash))) == NULL) in st_hash_insert() 601 if ((stp->st_hashbcks = calloc(stp->st_hbckcnt, in st_getstrtab_sz()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | malloc.c | 30 #define calloc ______calloc macro 55 #undef calloc 56 #define calloc _ast_calloc macro 149 #undef calloc 164 #undef calloc 171 #define calloc _ast_calloc macro 487 extern Void_t* calloc(reg size_t n_obj, reg size_t s_obj) in calloc() function 489 extern Void_t* calloc(n_obj, s_obj) in calloc() 843 extern Void_t* F2(_calloc, size_t,n, size_t,m) { return calloc(n, m); } in F2() 860 extern Void_t* F2(__calloc, size_t,n, size_t,m) { return calloc(n, m); } in F2() [all …]
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/ |
H A D | mDNSUNP.c | 139 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info_linuxv6() 157 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 166 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6() 353 ifi = calloc(1, sizeof(struct ifi_info)); in select_src_ifi_info_solaris() 480 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_solaris() 632 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info() 662 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 686 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 708 ifi->ifi_brdaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() 727 ifi->ifi_dstaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info() [all …]
|