Home
last modified time | relevance | path

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

12345678910>>...51

/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.c54 tmp = calloc(MS+n+1, sizeof (char)); in puterror()
62 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror()
70 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror()
78 tmp = calloc(MS+n+1, sizeof (char)); in puterror()
84 tmp = calloc(MS+n+1, sizeof (char)); in puterror()
/illumos-gate/usr/src/cmd/fwflash/common/
H A Dfwflash.c337 if ((plugname = calloc(1, MAXPATHLEN + 1)) == NULL) { in flash_load_plugins()
349 if ((tmpelem = calloc(1, sizeof (struct pluginlist))) in flash_load_plugins()
358 if ((tmpplug = calloc(1, sizeof (struct fw_plugin))) in flash_load_plugins()
391 tmpplug->drvname = calloc(1, MAXMODCONFNAME); in flash_load_plugins()
396 char *tempnm = calloc(1, MAXMODCONFNAME); in flash_load_plugins()
465 if ((tmpelem->drvname = calloc(1, MAXMODCONFNAME)) in flash_load_plugins()
477 if ((tmpelem->filename = calloc(1, in flash_load_plugins()
676 vrfy->vendor = calloc(1, strlen(vendorid) + 1); in fwflash_load_verifier()
678 vrfy->vendor = calloc(1, strlen(vrfysym) + 1); in fwflash_load_verifier()
909 if ((realfile = calloc(1, PATH_MAX + 1)) == NULL) { in fwflash_update()
[all …]
/illumos-gate/usr/src/lib/libnls/common/
H A Dnlsenv.c76 extern char *calloc(); in nlsenv()
92 if (!(buf->buf = calloc(1, length))) in nlsenv()
132 extern char *calloc(); in nlsgetcall()
134 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.c54 *list = (void **)calloc(__list_increment, in list_append()
64 new_list = (void **)calloc(new_size, sizeof (void *)); in list_append()
111 if ((*result = (void **)calloc((new_size), sizeof (void *))) != NULL) { in list_concatenate()
168 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.c301 dtls->presence = calloc(dtls->n_disks, sizeof (int)); in act_n_disks()
304 dtls->faults = calloc(dtls->n_disks, sizeof (int)); in act_n_disks()
307 dtls->disk_detected = calloc(dtls->n_disks, sizeof (int)); in act_n_disks()
310 dtls->disk_ready = calloc(dtls->n_disks, sizeof (int)); in act_n_disks()
313 dtls->disk_prev = calloc(dtls->n_disks, sizeof (int)); in act_n_disks()
316 dtls->led_test_end = calloc(dtls->n_disks, sizeof (int)); in act_n_disks()
319 dtls->picl_retry = calloc(dtls->n_disks, sizeof (boolean_t)); in act_n_disks()
322 dtls->disk_port = calloc(dtls->n_disks, sizeof (char *)); in act_n_disks()
327 dtls->led_addr[i] = calloc(dtls->n_disks, sizeof (int)); in act_n_disks()
330 dtls->led_state[i] = calloc(dtls->n_disks, in act_n_disks()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dcache_a.out.c187 buf = calloc(bs, 1); in find_so()
194 dbp = calloc(sizeof (struct db), 1); in find_so()
195 dbp->db_name = RELPTR(dbp, calloc((strlen(ds) + 1), 1)); in find_so()
281 calloc(sizeof (struct dbe), 1)); in find_so()
328 calloc(sizeof (struct link_object), 1)); in get_lo()
340 tlop->lo_next = (long)RELPTR(dbp, calloc(MAXNAMLEN, 1)); in get_lo()
345 tlop->lo_name = (long)RELPTR(dbp, calloc((cplen + 1), 1)); in get_lo()
395 calloc((dirlen + strlen(tp) + 2), 1)); in fix_lo()
/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.c55 gc = calloc(1, sizeof (struct bhyvegc)); in bhyvegc_init()
57 gc_image = calloc(1, sizeof(struct bhyvegc_image)); in bhyvegc_init()
64 gc_image->data = calloc(width * height, sizeof (uint32_t)); in bhyvegc_init()
/illumos-gate/usr/src/cmd/refer/
H A Dhunt1.c34 char *calloc();
161 strcpy(*fgnamp++ = calloc(strlen(oldname)+2, 1), in main()
180 master = (unsigned *)calloc(lmaster, iflong ? in main()
182 hpt = (long *)calloc(nhash, sizeof (*hpt)); in main()
189 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()
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/
H A DmDNSUNP.c139 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 …]

12345678910>>...51