Home
last modified time | relevance | path

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

12345678910>>...52

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/vars/
H A Dtst.ucaller.ksh42 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 Dt_alloc.c111 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 Dputerror.c53 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 Dfwflash.c327 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()
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()
665 vrfy->vendor = calloc(1, strlen(vendorid) + 1); in fwflash_load_verifier()
667 vrfy->vendor = calloc(1, strlen(vrfysym) + 1); in fwflash_load_verifier()
898 if ((realfile = calloc(1, PATH_MAX + 1)) == NULL) { in fwflash_update()
[all …]
/illumos-gate/usr/src/lib/libnls/common/
H A Dnlsenv.c74 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/lp/cmd/lpsched/
H A Dfncs.c131 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()
428 RSTATUS *result = calloc(1, sizeof (*result)); in new_rstatus()
434 result->secure = calloc(1, sizeof (SECURE)); in new_rstatus()
630 _form = calloc(1, sizeof (*_form)); in Getform()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Ddepchk.c197 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/lib/print/libpapi-common/common/
H A Dlist.c52 *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/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/
H A Dfc_led_parse.c299 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/cmd/lp/lib/papi/
H A Dprinter.c93 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/lib/libsip/common/
H A Dsip_parse_hdrs.c113 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()
701 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_warn_header()
1177 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_via_header()
[all …]
H A Dsip_parse_generic.c249 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()
945 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_hdr_parser4()
994 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_hdr_parser5()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dbhyvegc.c54 gc = calloc(1, sizeof (struct bhyvegc)); in bhyvegc_init()
56 gc_image = calloc(1, sizeof(struct bhyvegc_image)); in bhyvegc_init()
63 gc_image->data = calloc(width * height, sizeof (uint32_t)); in bhyvegc_init()
H A Dqemu_loader.c94 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 Dqemu_fwcfg.c218 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/refer/
H A Dhunt1.c32 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 Dctlr_ata.c281 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 Dtavor.c630 if ((newdev = calloc(1, sizeof (struct devicelist))) in fw_identify()
689 if ((newdev->classname = calloc(1, 3)) == NULL) { in fw_identify()
1093 if ((manuf->info.mlx_pn = calloc(1, in tavor_identify()
1105 if ((manuf->info.mlx_psid = calloc(1, in tavor_identify()
1115 if ((manuf->info.mlx_id = calloc(1, in tavor_identify()
1134 thisdev->ident->pid = calloc(1, i + 2); in tavor_identify()
1138 if ((thisdev->ident->pid = calloc(1, in tavor_identify()
1158 if ((thisdev->addresses[i] = calloc(1, in tavor_identify()
1216 if ((p = calloc(1, sizeof (mlx_guid_sect_t))) == NULL) { in tavor_get_guids()
1222 if ((s = calloc(1, sizeof (mlx_guid_sect_t))) == NULL) { in tavor_get_guids()
[all …]
H A Dsd.c550 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()
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()
916 if ((cbresult = calloc(1, MAXPATHLEN)) == NULL) { in sdfw_find_link()
[all …]
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c177 ondiskbuf = calloc(1, cachestat.st_size); in main()
235 if ((ondiskbuf = calloc(1, newsz)) == NULL) { in main()
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()
1065 if ((curpath = calloc(1, MAXPATHLEN)) == NULL) { in popcheck_devnvl()
1126 aliases = calloc(1, MAXPATHLEN + 1); in print_mpx_capable()
1196 if (((cbresult = calloc(1, MAXPATHLEN)) == NULL) || in find_link()
1456 buf = calloc(1, MAXPATHLEN); in update_vfstab()
[all …]
/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_parse.c74 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 Dcfga_cvt.c49 *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 Dstring_table.c161 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 Dmalloc.c30 #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
489 extern Void_t* calloc(n_obj, s_obj) in calloc()
901 #undef calloc
902 #define calloc ______calloc macro
1001 #undef calloc
[all …]
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Ddirectory_server.c84 calloc(nids, sizeof (directory_entry_rpc)); in directory_get_common_1_svc()
166 dav = calloc(n, sizeof (directory_value_rpc)); in str_list_dav()
211 dav = calloc(n, sizeof (directory_value_rpc)); in uint_list_dav()
256 dav = calloc(n, sizeof (directory_value_rpc)); in bin_list_dav()

12345678910>>...52