Home
last modified time | relevance | path

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

12345678910>>...49

/titanic_50/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;
/titanic_50/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()
/titanic_50/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()
/titanic_50/usr/src/cmd/fwflash/common/
H A Dfwflash.c281 if ((fwplugdirpath = calloc(1, MAXPATHLEN + 1)) == NULL) { in flash_load_plugins()
306 if ((plugdir = calloc(1, sizeof (struct dirent) + MAXPATHLEN + 1)) in flash_load_plugins()
316 if ((fw_pluginlist = calloc(1, sizeof (struct fw_plugin))) in flash_load_plugins()
336 if ((plugname = calloc(1, MAXPATHLEN + 1)) == NULL) { in flash_load_plugins()
348 if ((tmpelem = calloc(1, sizeof (struct pluginlist))) in flash_load_plugins()
357 if ((tmpplug = calloc(1, sizeof (struct fw_plugin))) in flash_load_plugins()
373 if ((tmpplug->filename = calloc(1, strlen(plugname) + 1)) in flash_load_plugins()
390 tmpplug->drvname = calloc(1, MAXMODCONFNAME); in flash_load_plugins()
395 char *tempnm = calloc(1, MAXMODCONFNAME); in flash_load_plugins()
465 if ((tmpelem->drvname = calloc(1, MAXMODCONFNAME)) in flash_load_plugins()
[all …]
/titanic_50/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()
/titanic_50/usr/src/cmd/lp/cmd/lpsched/
H A Dfncs.c56 *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 …]
/titanic_50/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()
/titanic_50/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()
/titanic_50/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 …]
/titanic_50/usr/src/cmd/sgs/tools/common/
H A Dstring_table.c161 if ((stp = calloc(sizeof (*stp), 1)) == NULL) in st_new()
176 if ((stp->st_lentree = calloc(sizeof (*stp->st_lentree), 1)) == NULL) in st_new()
228 if ((lnp = calloc(sizeof (*lnp), 1)) == NULL) in st_insert()
233 if ((lnp->ln_strtree = calloc(sizeof (*lnp->ln_strtree), 1)) == in st_insert()
248 if ((snp = calloc(sizeof (*snp), 1)) == NULL) in st_insert()
515 if ((mstr = calloc(sizeof (*mstr), 1)) == 0) in st_hash_insert()
530 if ((sthash = calloc(sizeof (*sthash), 1)) == 0) in st_hash_insert()
571 if ((stp->st_hashbcks = calloc(sizeof (*stp->st_hashbcks), in st_getstrtab_sz()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSUNP.c125 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info_linuxv6()
147 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
156 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
160 sin6=calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
161 addrptr=calloc(1, sizeof(struct in6_addr)); in get_ifi_info_linuxv6()
342 ifi = calloc(1, sizeof(struct ifi_info)); in select_src_ifi_info_solaris()
469 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_solaris()
621 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info()
651 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
675 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
[all …]
/titanic_50/usr/src/cmd/sgs/rtld/common/
H A Dcache_a.out.c189 buf = calloc(bs, 1); in find_so()
196 dbp = calloc(sizeof (struct db), 1); in find_so()
197 dbp->db_name = RELPTR(dbp, calloc((strlen(ds) + 1), 1)); in find_so()
283 calloc(sizeof (struct dbe), 1)); in find_so()
329 calloc(sizeof (struct link_object), 1));
341 tlop->lo_next = (long)RELPTR(dbp, calloc(MAXNAMLEN, 1));
346 tlop->lo_name = (long)RELPTR(dbp, calloc((cplen + 1), 1));
398 calloc((dirlen + strlen(tp) + 2), 1));
/titanic_50/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()
/titanic_50/usr/src/lib/libast/common/vmalloc/
H A Dmalloc.c30 #define calloc ______calloc macro
55 #undef calloc
56 #define calloc _ast_calloc macro
147 #undef calloc
248 extern Void_t* calloc(reg size_t n_obj, reg size_t s_obj) in calloc() function
250 extern Void_t* calloc(n_obj, s_obj) in calloc()
517 extern Void_t* F2(_calloc, size_t,n, size_t,m) { return calloc(n, m); } in F2()
534 extern Void_t* F2(__calloc, size_t,n, size_t,m) { return calloc(n, m); } in F2()
551 extern Void_t* F2(__libc_calloc, size_t,n, size_t,m) { return calloc(n, m); } in F2()
573 #undef calloc
[all …]
/titanic_50/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()
/titanic_50/usr/src/lib/libsip/common/
H A Dsip_parse_hdrs.c115 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_allow_header()
122 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_allow_header()
248 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_date_header()
254 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_date_header()
485 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_retryaft_header()
491 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_retryaft_header()
593 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_timestamp_header()
599 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_timestamp_header()
697 parsed_header = calloc(1, sizeof (sip_parsed_header_t)); in sip_parse_warn_header()
704 value = calloc(1, sizeof (sip_hdr_value_t)); in sip_parse_warn_header()
[all …]
/titanic_50/usr/src/lib/libbc/libc/stdio/common/
H A Dfindiop.c79 *iov = (FILE *)calloc(1, sizeof **iov); in _findiop()
94 iobglue = (FILE **)calloc(nfiles, sizeof *iobglue); in _f_morefiles()
123 *iov = (FILE *)calloc(1, sizeof **iov); in f_prealloc()
/titanic_50/usr/src/cmd/format/
H A Dctlr_ata.c294 new_defect = calloc(ap->ap_tblp->alts_ent_used, in ata_convert_list()
321 new_defect = calloc(1, in ata_convert_list()
382 blc_p = (struct badsec_lst *)calloc(1, BADSLSZ); in ata_repair()
394 blc_p->bl_nxt = (struct badsec_lst *)calloc(1, BADSLSZ); in ata_repair()
469 blc_p = (struct badsec_lst *)calloc(1, BADSLSZ); in ata_wr_cur()
482 blc_p->bl_nxt = (struct badsec_lst *)calloc(1, BADSLSZ); in ata_wr_cur()
/titanic_50/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()
/titanic_50/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 …]
/titanic_50/usr/src/cmd/fwflash/plugins/transport/common/
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()
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 …]
H A Dtavor.c203 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 …]
/titanic_50/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()
406 if ((drvlimit = calloc(1, MAXMODCONFNAME)) == NULL) { in parse_args()
449 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args()
466 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args()
476 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args()
486 if ((devicep = calloc(1, MAXPATHLEN)) == NULL) { in parse_args()
677 if ((prefixt = calloc(1, strlen(argdev) + 1)) == NULL) { in report_map()
693 if ((stripdev = calloc(1, strlen(prefixt) + 1)) == NULL) { in report_map()
1059 if ((curpath = calloc(1, MAXPATHLEN)) == NULL) { in popcheck_devnvl()
[all …]
/titanic_50/usr/src/lib/libbc/libc/gen/common/
H A Decvt.c40 efcvtbuffer = (char *)calloc(1,1024);
50 efcvtbuffer = (char *)calloc(1,1024);
/titanic_50/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>>...49