Home
last modified time | relevance | path

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

12345678910>>...12

/mirbsd/src/gnu/usr.bin/perl/t/
Dperl.supp3 calloc
5 fun:calloc
22 calloc
24 fun:calloc
/mirbsd/src/usr.bin/vmstat/
Ddkstats.c183 dk_name = calloc(dk_ndrive, sizeof(char *)); in dkreadstats()
475 cur.dk_time = calloc(cur.dk_ndrive, sizeof(struct timeval)); in dkinit()
476 cur.dk_rxfer = calloc(cur.dk_ndrive, sizeof(u_int64_t)); in dkinit()
477 cur.dk_wxfer = calloc(cur.dk_ndrive, sizeof(u_int64_t)); in dkinit()
478 cur.dk_seek = calloc(cur.dk_ndrive, sizeof(u_int64_t)); in dkinit()
479 cur.dk_rbytes = calloc(cur.dk_ndrive, sizeof(u_int64_t)); in dkinit()
480 cur.dk_wbytes = calloc(cur.dk_ndrive, sizeof(u_int64_t)); in dkinit()
481 last.dk_time = calloc(cur.dk_ndrive, sizeof(struct timeval)); in dkinit()
482 last.dk_rxfer = calloc(cur.dk_ndrive, sizeof(u_int64_t)); in dkinit()
483 last.dk_wxfer = calloc(cur.dk_ndrive, sizeof(u_int64_t)); in dkinit()
[all …]
/mirbsd/src/sbin/dhclient/
Dprivsep.c27 if ((buf = calloc(1, sizeof(struct buf))) == NULL) in buf_open()
114 if ((medium = calloc(1, medium_len + 1)) == NULL) in dispatch_imsg()
125 if ((reason = calloc(1, reason_len + 1)) == NULL) in dispatch_imsg()
147 if ((filename = calloc(1, filename_len + 1)) == NULL) in dispatch_imsg()
159 calloc(1, servername_len + 1)) == NULL) in dispatch_imsg()
170 if ((prefix = calloc(1, prefix_len + 1)) == NULL) in dispatch_imsg()
188 calloc(1, optlen + 1); in dispatch_imsg()
/mirbsd/src/lib/libkeynote/
Dkeynote-verify.c71 if ((buf = (char *) calloc(cl, sizeof(char))) == (char *) NULL) in keynote_verify()
81 if ((retv = (char **) calloc(numretv, sizeof(char *))) == (char **) NULL) in keynote_verify()
129 buf = (char *) calloc(cl, sizeof(char)); in keynote_verify()
190 foov = (char **) calloc(numretv, sizeof(char **)); in keynote_verify()
207 retv[numret] = (char *) calloc((ptr - optarg) + 1, in keynote_verify()
249 buf = (char *) calloc(cl, sizeof(char)); in keynote_verify()
337 buf = (char *) calloc(cl, sizeof(char)); in keynote_verify()
Dsignature.c81 *dest = (char *) calloc(2 * len + 1, sizeof(char)); in kn_encode_hex()
116 *dest = (char *) calloc(decodedlen, sizeof(char)); in kn_decode_hex()
440 decoded = (unsigned char *) calloc(len, sizeof(unsigned char)); in kn_decode_key()
601 dc->dec_key = (void *) calloc(1, sizeof(struct keynote_binary)); in kn_decode_key()
788 decoded = (unsigned char *) calloc(len, sizeof(unsigned char)); in keynote_sigverify_assertion()
949 sbuf = (unsigned char *) calloc(DSA_size(dsa), sizeof(unsigned char)); in keynote_sign_assertion()
971 sbuf = (unsigned char *) calloc(RSA_size(rsa), in keynote_sign_assertion()
1014 sbuf = calloc(RSA_size(rsa), sizeof(char)); in keynote_sign_assertion()
1053 finalbuf = (unsigned char *) calloc(2 * slen, in keynote_sign_assertion()
1078 as->as_signature = (char *) calloc(len, sizeof(char)); in keynote_sign_assertion()
[all …]
Dkeynote-sign.c92 algname = (char *) calloc(len, sizeof(char)); in keynote_sign()
126 buf = (char *) calloc(buflen, sizeof(char)); in keynote_sign()
161 buf2 = (char *) calloc(sb.st_size + 1, sizeof(char)); in keynote_sign()
/mirbsd/src/gnu/usr.bin/cvs/lib/
Dsighandle.c44 char *calloc(unsigned nelem, unsigned size);
47 char *calloc();
113 calloc(i, sizeof(struct sigaction)); in SIG_init()
120 calloc(i, sizeof(struct sigvec)); in SIG_init()
124 calloc( i, sizeof( RETSIGTYPE (**) (int) ) ); in SIG_init()
130 calloc(i, sizeof(struct SIG_hlist *)); in SIG_init()
/mirbsd/src/usr.sbin/ntpd/
Dconfig.c50 if ((h = calloc(1, sizeof(struct ntp_addr))) == NULL) in host()
117 if ((h = calloc(1, sizeof(struct ntp_addr))) == NULL) in host_v4()
139 if ((h = calloc(1, sizeof(struct ntp_addr))) == NULL) in host_v6()
180 if ((h = calloc(1, sizeof(struct ntp_addr))) == NULL) in host_dns()
213 if ((p = calloc(1, sizeof(struct ntp_peer))) == NULL) in new_peer()
/mirbsd/src/sbin/isakmpd/
Dpolicy.c742 remote_id = calloc(len, sizeof(char)); in policy_callback()
769 remote_id = calloc(len, sizeof(char)); in policy_callback()
809 remote_id = calloc(len, sizeof(char)); in policy_callback()
849 remote_id = calloc(len, sizeof(char)); in policy_callback()
864 remote_id = calloc(id_sz - ISAKMP_ID_DATA_OFF + in policy_callback()
881 remote_id = calloc(id_sz - ISAKMP_ID_DATA_OFF + in policy_callback()
915 remote_id = calloc(2 * (id_sz - ISAKMP_ID_DATA_OFF + in policy_callback()
1027 remote_filter = calloc(len, sizeof(char)); in policy_callback()
1055 remote_filter = calloc(len, sizeof(char)); in policy_callback()
1100 remote_filter = calloc(len, sizeof(char)); in policy_callback()
[all …]
Dike_quick_mode.c126 keynote_ids = calloc(policy_asserts_num, sizeof *keynote_ids); in check_policy()
160 principal = calloc(nprinc, sizeof *principal); in check_policy()
167 principal[0] = calloc(len, sizeof(char)); in check_policy()
182 principal[1] = calloc(len, sizeof(char)); in check_policy()
196 principal[2] = calloc(len, sizeof(char)); in check_policy()
214 principal = calloc(nprinc, sizeof *principal); in check_policy()
231 principal = calloc(2, sizeof *principal); in check_policy()
260 principal[1] = calloc(len, sizeof(char)); in check_policy()
274 principal[1] = calloc(259, sizeof(char)); in check_policy()
542 transform[prop_no] = calloc(transform_cnt[prop_no], in initiator_send_HASH_SA_NONCE()
[all …]
Dpf_key_v2.c217 fds = calloc(howmany(pf_key_v2_socket + 1, NFDBITS), in pf_key_v2_read()
560 addr = calloc(1, len); in pf_key_v2_get_spi()
582 addr = calloc(1, len); in pf_key_v2_get_spi()
703 ssa = (struct sadb_sa *)calloc(1, sizeof *ssa); in pf_key_v2_get_kernel_sa()
722 addr = calloc(1, len); in pf_key_v2_get_kernel_sa()
1167 addr = calloc(1, len); in pf_key_v2_set_spi()
1188 addr = calloc(1, len); in pf_key_v2_set_spi()
1212 addr = calloc(1, len); in pf_key_v2_set_spi()
1282 sid = calloc(PF_KEY_V2_ROUND(len + 1) + sizeof *sid, in pf_key_v2_set_spi()
1316 sid = calloc(PF_KEY_V2_ROUND(len + 1) + sizeof *sid, in pf_key_v2_set_spi()
[all …]
/mirbsd/src/bin/systrace/
Dparse.y131 myfilter = calloc(1, sizeof(struct filter));
292 node = calloc(1, sizeof(struct logic));
308 node = calloc(1, sizeof(struct logic));
321 node = calloc(1, sizeof(struct logic));
401 if ((re = calloc(1, sizeof (regex_t))) == NULL) {
480 node = calloc(1, sizeof(struct logic)); in parse_newsymbol()
/mirbsd/src/usr.bin/oldroff/hunt/
Dhunt1.c174 strcpy(*fgnamp++ = calloc(strlen(oldname)+2,1), oldname);
193 master = (unsigned *) calloc (lmaster, iflong? sizeof(long): sizeof(unsigned));
194 hpt = (long *) calloc(nhash, sizeof(*hpt));
200 hfreq = (int *) calloc(nhash, sizeof(*hfreq));
/mirbsd/src/usr.bin/vi/common/
Dmem.h123 if (((p) = (cast)calloc((nmemb), (size))) == NULL) \
127 if (((p) = (cast)calloc((nmemb), (size))) == NULL) \
131 (p) = (cast)calloc((nmemb), (size)); \
134 if (((p) = (cast)calloc((nmemb), (size))) == NULL) { \
/mirbsd/src/sbin/pfctl/
Dparse.y737 loadanchor = calloc(1, sizeof(struct loadanchors));
963 if (!(ti = calloc(1, sizeof(*ti))))
973 if (!(ti = calloc(1, sizeof(*ti))))
1328 $$ = calloc(1, sizeof(struct node_queue));
1828 $$ = calloc(1, sizeof(struct node_if));
1891 $$ = calloc(1, sizeof(struct node_proto));
1920 $$ = calloc(1, sizeof(struct node_os));
1995 $$ = calloc(1, sizeof(struct node_host));
2034 $$ = calloc(1, sizeof(struct node_host));
2074 $$ = calloc(1, sizeof(struct node_port));
[all …]
/mirbsd/src/sbin/ipsecctl/
Dpfkey.c178 sa_srcid = calloc(len, sizeof(u_int8_t)); in pfkey_flow()
192 sa_dstid = calloc(len, sizeof(u_int8_t)); in pfkey_flow()
495 rule->local = calloc(1, sizeof(struct ipsec_addr)); in pfkey_parse()
518 rule->peer = calloc(1, sizeof(struct ipsec_addr)); in pfkey_parse()
540 rule->auth.srcid = calloc(1, len); in pfkey_parse()
552 rule->auth.dstid = calloc(1, len); in pfkey_parse()
606 rule->src = calloc(1, in pfkey_parse()
628 rule->dst = calloc(1, in pfkey_parse()
652 rule->src = calloc(1, in pfkey_parse()
676 rule->dst = calloc(1, in pfkey_parse()
Dparse.y298 if ((hex = calloc(sb.st_size, sizeof(unsigned char)))
607 if ((sym = calloc(1, sizeof(*sym))) == NULL) in symset()
700 key = calloc(1, sizeof(struct ipsec_key)); in parsekey()
705 key->data = calloc(key->len, sizeof(u_int8_t)); in parsekey()
723 ipa = calloc(1, sizeof(struct ipsec_addr)); in host()
761 dst = calloc(1, sizeof(struct ipsec_addr)); in copyhost()
775 r = calloc(1, sizeof(struct ipsec_rule)); in create_sa()
796 r = calloc(1, sizeof(struct ipsec_rule)); in create_flow()
860 reverse = calloc(1, sizeof(struct ipsec_rule)); in reverse_rule()
/mirbsd/src/bin/pax/
Dcache.c83 if ((uidtb = (UIDC **)calloc(UID_SZ, sizeof(UIDC *))) == NULL) { in uidtb_start()
107 if ((gidtb = (GIDC **)calloc(GID_SZ, sizeof(GIDC *))) == NULL) { in gidtb_start()
131 if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) { in usrtb_start()
155 if ((grptb = (GIDC **)calloc(GNM_SZ, sizeof(GIDC *))) == NULL) { in grptb_start()
/mirbsd/src/lib/libc/net/
Dgetrrsetbyname.c174 rrset = calloc(1, sizeof(struct rrsetinfo)); in getrrsetbyname()
202 rrset->rri_rdatas = calloc(rrset->rri_nrdatas, in getrrsetbyname()
210 rrset->rri_sigs = calloc(rrset->rri_nsigs, sizeof(struct rdatainfo)); in getrrsetbyname()
295 resp = calloc(1, sizeof(*resp)); in parse_dns_response()
363 curr = calloc(1, sizeof(struct dns_query)); in parse_dns_qsection()
410 curr = calloc(1, sizeof(struct dns_rr)); in parse_dns_rrsection()
/mirbsd/src/sbin/fsck_ext2fs/
Dsetup.c184 sblock.e2fs_gd = calloc(sblock.e2fs_ngdb, sblock.e2fs_bsize); in setup()
203 blockmap = calloc((unsigned)bmapsize, sizeof (char)); in setup()
209 statemap = calloc((unsigned)(maxino + 2), sizeof(char)); in setup()
215 typemap = calloc((unsigned)(maxino + 1), sizeof(char)); in setup()
221 lncntp = (int16_t *)calloc((unsigned)(maxino + 1), sizeof(int16_t)); in setup()
232 inpsort = (struct inoinfo **)calloc((unsigned)listmax, in setup()
234 inphead = (struct inoinfo **)calloc((unsigned)numdirs, in setup()
/mirbsd/src/gnu/usr.bin/lynx/WWW/Library/Implementation/
DLYLeaks.h139 #ifdef calloc
140 #undef calloc
142 #define calloc(st_number, st_bytes) LYLeakCalloc(st_number, st_bytes, \ macro
/mirbsd/src/usr.bin/awk/
Db.c90 setvec = (int *) calloc(maxsetvec, sizeof(int)); in makedfa()
91 tmpset = (int *) calloc(maxsetvec, sizeof(int)); in makedfa()
138 if ((f = (fa *) calloc(1, sizeof(fa) + poscnt*sizeof(rrow))) == NULL) in mkdfa()
143 if ((f->posns[0] = (int *) calloc(*(f->re[0].lfollow), sizeof(int))) == NULL) in mkdfa()
145 if ((f->posns[1] = (int *) calloc(1, sizeof(int))) == NULL) in mkdfa()
163 if ((f->posns[2] = (int *) calloc(k+1, sizeof(int))) == NULL) in makeinit()
363 if ((p = (int *) calloc(setcnt+1, sizeof(int))) == NULL) in cfoll()
537 if ((f->posns[2] = (int *) calloc(k+1, sizeof(int))) == NULL) in pmatch()
594 if ((f->posns[2] = (int *) calloc(k+1, sizeof(int))) == NULL) in nematch()
930 if ((p = (int *) calloc(setcnt+1, sizeof(int))) == NULL) in cgoto()
/mirbsd/src/usr.bin/oldroff/inv/
Dinv5.c70 hpt_l = (long *) calloc(sizeof(*hpt_l), n+1);
75 hpt_s = (int *) calloc(sizeof(*hpt_s), n+1);
/mirbsd/src/sbin/fsck_ffs/
Dsetup.c377 sblock.fs_csp = calloc(1, sblock.fs_cssize); in setup()
401 blockmap = calloc((unsigned)bmapsize, sizeof(char)); in setup()
407 statemap = calloc((unsigned)(maxino + 1), sizeof(char)); in setup()
413 typemap = calloc((unsigned)(maxino + 1), sizeof(char)); in setup()
419 lncntp = calloc((unsigned)(maxino + 1), sizeof(int16_t)); in setup()
428 inpsort = calloc((unsigned)listmax, sizeof(struct inoinfo *)); in setup()
429 inphead = calloc((unsigned)numdirs, sizeof(struct inoinfo *)); in setup()
/mirbsd/src/usr.sbin/makefs/
Dcd9660.c191 if ((temp = calloc(1, sizeof(cd9660node))) == NULL) in cd9660_allocate_cd9660node()
410 calloc(1, strlen(val) + 1)) == NULL) { in cd9660_parse_opts()
544 calloc(1, sizeof (iso_directory_record_cd9660))) == NULL) { in cd9660_makefs()
796 if ((temp = calloc(1, sizeof (volume_descriptor))) == NULL) { in cd9660_setup_volume_descriptors()
813 if ((t = calloc(1, sizeof (volume_descriptor))) == NULL) { in cd9660_setup_volume_descriptors()
818 if ((t->volumeDescriptorData = calloc(1, 2048)) == NULL) { in cd9660_setup_volume_descriptors()
833 if ((t = calloc(1, sizeof (volume_descriptor))) == NULL) { in cd9660_setup_volume_descriptors()
837 if ((t->volumeDescriptorData = calloc(1, 2048)) == NULL) { in cd9660_setup_volume_descriptors()
863 calloc(1, sizeof (struct iso_extended_attributes))) == NULL) {
927 calloc(1, sizeof (iso_directory_record_cd9660))) == NULL) { in cd9660_translate_node()
[all …]

12345678910>>...12