/illumos-gate/usr/src/cmd/stat/common/ |
H A D | acquire.c | 75 ss->s_cpus = calloc(ss->s_nr_cpus, sizeof (struct cpu_snapshot)); in acquire_cpus() 135 if ((pids = calloc(pids_nr, sizeof (psetid_t))) == NULL) in acquire_psets() 141 ss->s_psets = calloc(pids_nr + 1, sizeof (struct pset_snapshot)); in acquire_psets() 149 ps->ps_cpus = calloc(ss->s_nr_cpus, sizeof (struct cpu_snapshot *)); in acquire_psets() 159 calloc(ss->s_nr_cpus, sizeof (struct cpu_snapshot *)); in acquire_psets() 199 ss->s_intrs = calloc(ss->s_nr_intrs, sizeof (struct intr_snapshot)); in acquire_intrs()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | ckitem.c | 78 msg = calloc((size_t)n, sizeof (char)); in setmsg() 86 msg = calloc(n+sizeof (MESG1), sizeof (char)); in setmsg() 103 if (pt = calloc(1, sizeof (CKMENU))) { in allocmenu() 241 choice = calloc((size_t)max, sizeof (char *)); 344 if ((chp = calloc(1, sizeof (struct _choice_))) == NULL) 390 menup->invis = calloc(2, sizeof (char *));
|
/illumos-gate/usr/src/lib/print/libpapi-dynamic/common/ |
H A D | printer.c | 101 if ((p = calloc(1, sizeof (*p))) == NULL) in printers_from_service() 184 if ((p = calloc(1, sizeof (*p))) == NULL) in printers_from_name_service() 245 if ((*printer = p = calloc(1, sizeof (*p))) == NULL) in papiPrinterQuery() 353 if ((*printer = p = calloc(1, sizeof (*p))) == NULL) in _papi_printer_add_or_modify() 434 if ((j = calloc(1, sizeof (*j))) == NULL) in papiPrinterPurgeJobs() 481 if ((j = calloc(1, sizeof (*j))) == NULL) in papiPrinterListJobs()
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | hash.c | 41 tbl->t_entry = calloc(size, (unsigned)(sizeof (Hash_ent *))); in make_hash() 89 if ((ent = calloc(1, sizeof (Hash_ent))) == NULL) in get_hash()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswcfgst.c | 57 nscd_switch_cfg = calloc(NSCD_NUM_DB, sizeof (nscd_cfg_switch_t)); in _nscd_alloc_switch_cfg() 68 nscd_switch_stats = calloc(NSCD_NUM_DB, in _nscd_alloc_switch_stats() 228 ck = calloc(1, sizeof (nsw_cfg_cookie_t)); in _nscd_cfg_switch_verify()
|
H A D | nscd_nswconfig.c | 331 nsw_cfg = calloc(1, sizeof (nscd_nsw_config_t)); in _nscd_create_sw_struct() 347 src_idx_a = calloc(1, maxsrc * sizeof (int)); in _nscd_create_sw_struct() 577 nsw_cfg = calloc(1, sizeof (nscd_nsw_config_t)); in create_nsw_config() 694 nscd_nsw_config = calloc(NSCD_NUM_DB, sizeof (nscd_nsw_config_t **)); in _nscd_alloc_nsw_config() 708 nscd_src_backend_db = calloc(NSCD_NUM_SRC, sizeof (nscd_db_t **)); in _nscd_alloc_nsw_be_info_db() 711 nscd_src_backend_db_loaded = calloc(NSCD_NUM_SRC, sizeof (int)); in _nscd_alloc_nsw_be_info_db() 718 _nscd_cfg_nsw_src_all = (nscd_cfg_id_t *)calloc( in _nscd_alloc_nsw_be_info_db()
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | msgq.c | 45 q = (msg_queue_t *)calloc(1, sizeof (msg_queue_t)); in queue_calloc() 67 msg = (msg_text_t *)calloc(1, sizeof (msg_text_t)); in queue_msg_set()
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | tokens.c | 48 if ((desc = calloc(1, sizeof (Isa_desc))) == 0) in conv_isalist() 112 if ((desc = calloc(1, sizeof (Uts_desc))) == 0) in conv_uts()
|
/illumos-gate/usr/src/lib/print/libpapi-ipp/common/ |
H A D | printer.c | 121 if ((p = calloc(1, sizeof (*p))) == NULL) in papiPrintersList() 152 if ((*printer = p = calloc(1, sizeof (*p))) == NULL) in papiPrinterQuery() 282 if ((*printer = p = calloc(1, sizeof (*p))) == NULL) in papiPrinterModify() 350 if ((j = calloc(1, sizeof (*j))) == NULL) in papiPrinterPurgeJobs() 406 if ((j = calloc(1, sizeof (*j))) == NULL) in papiPrinterListJobs()
|
/illumos-gate/usr/src/lib/libfstyp/common/ |
H A D | libfstyp.c | 114 if ((h = calloc(1, sizeof (struct fstyp_handle))) == NULL) { in fstyp_init() 373 if ((pathname = calloc(1, h->name_max)) == NULL) { in fstyp_init_module() 384 if ((mp = calloc(1, sizeof (fstyp_module_t))) == NULL) { in fstyp_init_module() 432 if ((mdir = calloc(1, h->name_max)) == NULL) { in fstyp_init_all_modules() 435 dp = dp_mem = calloc(1, sizeof (struct dirent) + h->name_max + 1); in fstyp_init_all_modules()
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | mdesc_lib.c | 84 msp = calloc(1, sizeof (md_string_t)); in md_new_string() 131 dbp = calloc(1, sizeof (md_data_block_t)); in md_new_data_block() 156 nodep = calloc(1, sizeof (md_node_t)); in md_new_node() 174 propp = calloc(1, sizeof (md_prop_t)); in md_new_property() 375 return ((mmd_t *)calloc(1, sizeof (mmd_t))); in md_new_md() 488 bufferp = calloc(total_size, sizeof (uint8_t)); in md_gen_bin()
|
/illumos-gate/usr/src/man/man3malloc/ |
H A D | Makefile | 31 MANLINKS= calloc.3malloc \ 46 calloc.3malloc := LINKSRC = malloc.3malloc
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | initgroups.c | 65 if ((groups = (gid_t *)calloc(ngroups_max, sizeof (gid_t))) == 0) { in initgroups() 153 grouplist = calloc(ngroups_max, sizeof (gid_t)); in getgrouplist()
|
/illumos-gate/usr/src/cmd/acpi/acpidump/ |
H A D | osunixdir.c | 202 ExternalInfo = calloc (1, sizeof (EXTERNAL_FIND_INFO)); in AcpiOsOpenDirectory() 265 temp_str = calloc (str_len, 1); in AcpiOsGetNextFilename()
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | inv6.c | 36 hpt = (long *)calloc(nhash+1, sizeof (*hpt)); in whash() 38 hfreq = (int *)calloc(nhash, sizeof (*hfreq)); in whash()
|
/illumos-gate/usr/src/test/os-tests/tests/ |
H A D | getcontext_extd.c | 73 ctx.uc_stack.ss_sp = calloc(SIGSTKSZ, sizeof (uint8_t)); in getcontext_stack() 118 ctx->uc_stack.ss_sp = calloc(SIGSTKSZ, sizeof (uint8_t)); in main()
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | newterm.c | 254 if ((sp = (SCREEN *) calloc(1, sizeof *sp)) == (SCREEN *) 0) 269 sp->_unget._stack = calloc( 275 if ((wio = (t_wide_io *) calloc(1, sizeof *wio)) == (t_wide_io *) 0) 315 sp->_hash = (unsigned long *) calloc(lines, sizeof *sp->_hash);
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | start_col.c | 108 if ((marks = (char **)calloc((unsigned)LINES, in start_color() 113 if ((*marks = (char *)calloc((unsigned)nc * LINES, in start_color()
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | tb.c | 68 spvecs[spcount++]= pp = calloc(MAXCHS+MAXSTR,1); in chspace() 89 tpvecs[tpcount] = calloc(MAXCHS,1); in alocv()
|
/illumos-gate/usr/src/cmd/sasinfo/ |
H A D | sasinfo-list.c | 1213 rpnode = calloc(1, sizeof (rp_tree_t)); in handleExpander() 1627 if ((map = calloc(1, sizeof (*map))) == NULL) { in handleLogicalUnit() 1644 map = calloc(1, sizeof (HBA_UINT32) + in handleLogicalUnit() 1737 map = calloc(1, sizeof (HBA_UINT32) + in searchTargetPortMappingData() 1789 TPMapData = calloc(1, in searchTargetPortMappingData() 1828 TPMapData = calloc(1, in searchTargetPortMappingData() 2045 newConfig = (targetPortConfig_t *)calloc(1, in searchTargetPort() 2093 newTP = (targetPortList_t *)calloc(1, in searchTargetPort() 2106 newConfig = (targetPortConfig_t *)calloc(1, in searchTargetPort() 2291 newTgtWWN = (tgtPortWWNList *)calloc(1, in searchDevice() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | snmplib.c | 184 smd = (struct picl_snmphdl *)calloc(1, sizeof (struct picl_snmphdl)); in snmp_init() 270 oidg = (oidgroup_t *)calloc(1, sizeof (struct oidgroup)); in snmp_register_group() 466 if ((*bitstrp = (uchar_t *)calloc(*nbytes, 1)) == NULL) in snmp_get_bitstr() 485 if ((*bitstrp = (uchar_t *)calloc(*nbytes, 1)) == NULL) in snmp_get_bitstr() 852 if ((*valp = (uchar_t *)calloc(vp->val_len, 1)) == NULL) { in fetch_single_bitstr() 1048 if ((pkt = (uchar_t *)calloc(1, SNMP_MAX_RECV_PKTSZ)) == NULL) in snmp_recv_reply() 1072 if ((pkt = (uchar_t *)calloc(1, pktsz)) == NULL) in snmp_recv_reply() 1107 p = (nvlist_t **)calloc(count, sizeof (nvlist_t *)); in mibcache_realloc() 1249 oidstr = calloc(1, oidstr_sz); in oid_to_oidstr() 1288 p = (refreshq_job_t *)calloc(count, sizeof (refreshq_job_t)); in refreshq_realloc()
|
H A D | pdu.c | 67 pdu = (snmp_pdu_t *)calloc(1, sizeof (snmp_pdu_t)); in snmp_create_pdu() 117 if ((buf = (uchar_t *)calloc(1, SNMP_DEF_PKTBUF_SZ)) == NULL) in snmp_make_packet() 190 reply_pdu = (snmp_pdu_t *)calloc(1, sizeof (snmp_pdu_t)); in snmp_parse_reply() 257 if ((vp = calloc(1, sizeof (pdu_varlist_t))) == NULL) { in snmp_add_null_vars() 330 objid = (oid *) calloc(count, sizeof (oid)); in snmp_oidstr_to_oid() 589 if ((newvp = calloc(1, sizeof (pdu_varlist_t))) == NULL) in snmp_parse_pdu()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | setup.c | 808 sblock.fs_u.fs_csp = calloc(1, sblock.fs_cssize); in getsummaryinfo() 862 blockmap = calloc((size_t)bmapsize, sizeof (char)); in create_and_init_maps() 869 statemap = calloc((size_t)(maxino + 1), sizeof (*statemap)); in create_and_init_maps() 876 lncntp = (short *)calloc((size_t)(maxino + 1), sizeof (short)); in create_and_init_maps() 894 inpsort = (struct inoinfo **)calloc((unsigned)listmax, in create_and_init_maps() 896 inphead = (struct inoinfo **)calloc((unsigned)numdirs, in create_and_init_maps() 913 aclpsort = (struct inoinfo **)calloc((unsigned)aclmax, in create_and_init_maps() 915 aclphead = (struct inoinfo **)calloc((unsigned)numacls, in create_and_init_maps() 1266 sblk.b_un.b_buf = calloc(1, SBSIZE); in sblock_init() 1268 asblk.b_un.b_buf = calloc(1, SBSIZE); in sblock_init()
|
/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal-device.c | 203 udi = calloc(1, sizeof ("/org/freedesktop/Hal/devices/%s") + strlen(arg)); in dump_devices() 219 device_names = calloc(2, sizeof *device_names); in dump_devices() 317 udi = calloc(1, sizeof ("/org/freedesktop/Hal/devices/%s") + strlen(arg)); in remove_udi() 357 udi = calloc(1, sizeof ("/org/freedesktop/Hal/devices/%s") + strlen(arg)); in add_udi() 479 p = calloc(1, sizeof *p); in process_property() 501 p->v.strlist_value = calloc(1, sizeof *p->v.strlist_value); in process_property()
|
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | utils.c | 206 data->d_buf = calloc(1, data->d_size); in dozap() 284 info->mdata = data = calloc(1, sizeof (Elf_Data)); in doappend() 302 data->d_buf = calloc(1, len + 2); in doappend() 343 data->d_buf = calloc(1, len + 2); in doappend() 393 info->mdata = data = calloc(1, sizeof (Elf_Data)); in docompress()
|