Symbol: calloc
bin/chio/chio.c
1008
calloc((size_t)1, sizeof(struct changer_element_status));
bin/chio/chio.c
1059
calloc(total_elem, sizeof(struct changer_element_status));
bin/chio/chio.c
666
calloc((size_t)count, sizeof(struct changer_element_status));
bin/pax/sel_subs.c
112
((usrtb = (USRT **)calloc(USR_TB_SZ, sizeof(USRT *))) == NULL)) {
bin/pax/sel_subs.c
209
((grptb = (GRPT **)calloc(GRP_TB_SZ, sizeof(GRPT *))) == NULL)) {
bin/pax/tables.c
104
if ((ltab = (HRDLNK **)calloc(L_TAB_SZ, sizeof(HRDLNK *))) == NULL) {
bin/pax/tables.c
330
if ((ftab = (FTM **)calloc(F_TAB_SZ, sizeof(FTM *))) == NULL) {
bin/pax/tables.c
486
if ((ntab = (NAMT **)calloc(N_TAB_SZ, sizeof(NAMT *))) == NULL) {
bin/pax/tables.c
659
if ((dtab = (DEVT **)calloc(D_TAB_SZ, sizeof(DEVT *))) == NULL) {
bin/pax/tables.c
902
if ((atab = (ATDIR **)calloc(A_TAB_SZ, sizeof(ATDIR *))) == NULL) {
bin/ps/ps.c
409
if ((KInfo = calloc(nentries, sizeof(KINFO))) == NULL)
bin/ps/ps.c
662
khash = calloc(KHSIZE, sizeof(KINFO *));
bin/ps/ps.c
663
kfinal = calloc(nentries, sizeof(KINFO *));
crypto/libressl/apps/openssl/certhash.c
76
if ((hi = calloc(1, sizeof(*hi))) == NULL)
crypto/libressl/apps/openssl/cms.c
278
if ((nparam = calloc(1, sizeof(struct cms_key_param))) == NULL)
crypto/libressl/crypto/asn1/a_object.c
82
if ((a = calloc(1, sizeof(ASN1_OBJECT))) == NULL) {
crypto/libressl/crypto/asn1/a_string.c
179
if ((astr->data = calloc(1, len + 1)) == NULL) {
crypto/libressl/crypto/asn1/a_string.c
79
if ((astr = calloc(1, sizeof(ASN1_STRING))) == NULL) {
crypto/libressl/crypto/asn1/a_strnid.c
280
if ((rv = calloc(1, sizeof(*rv))) == NULL) {
crypto/libressl/crypto/asn1/ameth_lib.c
317
if ((ameth = calloc(1, sizeof(EVP_PKEY_ASN1_METHOD))) == NULL)
crypto/libressl/crypto/asn1/bio_asn1.c
153
if ((ctx = calloc(1, sizeof(*ctx))) == NULL)
crypto/libressl/crypto/asn1/tasn_new.c
137
*pval = calloc(1, it->size);
crypto/libressl/crypto/asn1/tasn_new.c
155
*pval = calloc(1, it->size);
crypto/libressl/crypto/asn1/tasn_prn.c
89
if ((p = calloc(1, sizeof(ASN1_PCTX))) == NULL) {
crypto/libressl/crypto/asn1/x_crl.c
661
if ((m = calloc(1, sizeof(X509_CRL_METHOD))) == NULL)
crypto/libressl/crypto/asn1/x_info.c
70
if ((ret = calloc(1, sizeof(X509_INFO))) == NULL) {
crypto/libressl/crypto/bio/bio_meth.c
29
if ((biom = calloc(1, sizeof(*biom))) == NULL)
crypto/libressl/crypto/bio/bss_acpt.c
143
if ((ret = calloc(1, sizeof(BIO_ACCEPT))) == NULL)
crypto/libressl/crypto/bio/bss_dgram.c
142
data = calloc(1, sizeof(bio_dgram_data));
crypto/libressl/crypto/bio/bss_mem.c
157
if ((bm = calloc(1, sizeof(*bm))) == NULL)
crypto/libressl/crypto/bn/bn_asm.c
1057
tp = calloc(NULL, num + 2, sizeof(BN_ULONG));
crypto/libressl/crypto/bn/bn_blind.c
146
if ((ret = calloc(1, sizeof(BN_BLINDING))) == NULL) {
crypto/libressl/crypto/bn/bn_exp.c
710
if ((powerbufFree = calloc(powerbufLen +
crypto/libressl/crypto/bn/bn_lib.c
1144
if ((cb = calloc(1, sizeof(*cb))) == NULL)
crypto/libressl/crypto/buffer/buffer.c
78
if ((ret = calloc(1, sizeof(BUF_MEM))) == NULL) {
crypto/libressl/crypto/bytestring/bs_cbb.c
30
if ((base = calloc(1, sizeof(struct cbb_buffer_st))) == NULL)
crypto/libressl/crypto/bytestring/bs_cbb.c
54
if ((buf = calloc(1, initial_capacity)) == NULL)
crypto/libressl/crypto/ct/ct_log.c
112
CTLOG_STORE_LOAD_CTX *ctx = calloc(1, sizeof(*ctx));
crypto/libressl/crypto/ct/ct_log.c
149
CTLOG_STORE *ret = calloc(1, sizeof(*ret));
crypto/libressl/crypto/ct/ct_log.c
295
CTLOG *ret = calloc(1, sizeof(*ret));
crypto/libressl/crypto/ct/ct_policy.c
76
CT_POLICY_EVAL_CTX *ctx = calloc(1, sizeof(CT_POLICY_EVAL_CTX));
crypto/libressl/crypto/ct/ct_sct.c
77
SCT *sct = calloc(1, sizeof(*sct));
crypto/libressl/crypto/ct/ct_sct_ctx.c
76
SCT_CTX *sctx = calloc(1, sizeof(*sctx));
crypto/libressl/crypto/dsa/dsa_meth.c
31
if ((meth = calloc(1, sizeof(*meth))) == NULL)
crypto/libressl/crypto/dsa/dsa_meth.c
57
if ((copy = calloc(1, sizeof(*copy))) == NULL)
crypto/libressl/crypto/dsa/dsa_sign.c
81
return calloc(1, sizeof(DSA_SIG));
crypto/libressl/crypto/dso/dso_lib.c
112
ret = calloc(1, sizeof(DSO));
crypto/libressl/crypto/ec/ec_kmeth.c
141
if ((ret = calloc(1, sizeof(EC_KEY))) == NULL) {
crypto/libressl/crypto/ec/ec_kmeth.c
190
if ((ret = calloc(1, sizeof(*meth))) == NULL)
crypto/libressl/crypto/ec/ec_pmeth.c
101
if ((dctx = calloc(1, sizeof(EC_PKEY_CTX))) == NULL) {
crypto/libressl/crypto/ec/ec_pmeth.c
138
if ((dctx->kdf_ukm = calloc(1, sctx->kdf_ukmlen)) == NULL)
crypto/libressl/crypto/ec/ec_pmeth.c
268
if ((ktmp = calloc(1, ktmplen)) == NULL) {
crypto/libressl/crypto/evp/digest.c
191
ctx->md_data = calloc(1, type->ctx_size);
crypto/libressl/crypto/evp/digest.c
297
out->md_data = calloc(1, out->digest->ctx_size);
crypto/libressl/crypto/evp/digest.c
342
return calloc(1, sizeof(EVP_MD_CTX));
crypto/libressl/crypto/evp/e_aes.c
1416
if ((gctx_out->iv = calloc(1, gctx->ivlen)) == NULL)
crypto/libressl/crypto/evp/e_aes.c
2259
if ((gcm_ctx = calloc(1, sizeof(struct aead_aes_gcm_ctx))) == NULL)
crypto/libressl/crypto/evp/encode.c
129
return calloc(1, sizeof(EVP_ENCODE_CTX));
crypto/libressl/crypto/evp/evp_aead.c
74
return calloc(1, sizeof(EVP_AEAD_CTX));
crypto/libressl/crypto/evp/evp_enc.c
146
ctx->cipher_data = calloc(1, ctx->cipher->ctx_size);
crypto/libressl/crypto/evp/evp_enc.c
574
return calloc(1, sizeof(EVP_CIPHER_CTX));
crypto/libressl/crypto/evp/evp_enc.c
699
out->cipher_data = calloc(1, in->cipher->ctx_size);
crypto/libressl/crypto/evp/evp_lib.c
379
if ((md = calloc(1, sizeof(*md))) == NULL)
crypto/libressl/crypto/evp/pmeth_lib.c
231
if ((pmeth = calloc(1, sizeof(EVP_PKEY_METHOD))) == NULL)
crypto/libressl/crypto/gost/gost89imit_pmeth.c
76
data = calloc(1, sizeof(struct gost_mac_pmeth_data));
crypto/libressl/crypto/gost/gostr341001_pmeth.c
144
data = calloc(1, sizeof(struct gost_pmeth_data));
crypto/libressl/crypto/hmac/hm_pmeth.c
83
if ((hctx = calloc(1, sizeof(HMAC_PKEY_CTX))) == NULL)
crypto/libressl/crypto/hmac/hmac.c
182
if ((ctx = calloc(1, sizeof(*ctx))) == NULL)
crypto/libressl/crypto/kdf/hkdf_evp.c
79
if ((kctx = calloc(1, sizeof(*kctx))) == NULL) {
crypto/libressl/crypto/lhash/lhash.c
120
if ((ret = calloc(1, sizeof(_LHASH))) == NULL)
crypto/libressl/crypto/lhash/lhash.c
122
if ((ret->b = calloc(MIN_NODES, sizeof(LHASH_NODE *))) == NULL) {
crypto/libressl/crypto/rsa/rsa_lib.c
135
if ((ret = calloc(1, sizeof(RSA))) == NULL) {
crypto/libressl/crypto/rsa/rsa_meth.c
31
if ((meth = calloc(1, sizeof(*meth))) == NULL)
crypto/libressl/crypto/rsa/rsa_meth.c
57
if ((copy = calloc(1, sizeof(*copy))) == NULL)
crypto/libressl/crypto/rsa/rsa_pmeth.c
110
if ((rctx = calloc(1, sizeof(RSA_PKEY_CTX))) == NULL)
crypto/libressl/crypto/rsa/rsa_pmeth.c
152
if ((dctx->oaep_label = calloc(1, sctx->oaep_labellen)) == NULL)
crypto/libressl/crypto/rsa/rsa_pmeth.c
166
if ((ctx->tbuf = calloc(1, EVP_PKEY_size(pk->pkey))) == NULL) {
crypto/libressl/crypto/ts/ts_rsp_sign.c
160
if (!(ctx = calloc(1, sizeof(TS_RESP_CTX)))) {
crypto/libressl/crypto/ts/ts_verify_ctx.c
70
TS_VERIFY_CTX *ctx = calloc(1, sizeof(TS_VERIFY_CTX));
crypto/libressl/crypto/ui/ui_lib.c
151
if ((uis = calloc(1, sizeof(UI_STRING))) == NULL) {
crypto/libressl/crypto/ui/ui_lib.c
542
UI_METHOD *ui_method = calloc(1, sizeof(UI_METHOD));
crypto/libressl/crypto/ui/ui_lib.c
82
if ((ret = calloc(1, sizeof(UI))) == NULL) {
crypto/libressl/crypto/x509/pcy_tree.c
220
tree->levels = calloc(n, sizeof(X509_POLICY_LEVEL));
crypto/libressl/crypto/x509/x509_asid.c
693
if ((r = calloc(1, sizeof(*r))) == NULL) {
crypto/libressl/crypto/x509/x509_constraints.c
41
return (calloc(1, sizeof(struct x509_constraints_name)));
crypto/libressl/crypto/x509/x509_constraints.c
93
if ((new = calloc(1, sizeof(struct x509_constraints_names))) == NULL)
crypto/libressl/crypto/x509/x509_issuer_cache.c
164
if ((new = calloc(1, sizeof(struct x509_issuer))) == NULL)
crypto/libressl/crypto/x509/x509_issuer_cache.c
166
if ((new->parent_md = calloc(1, EVP_MAX_MD_SIZE)) == NULL)
crypto/libressl/crypto/x509/x509_issuer_cache.c
169
if ((new->child_md = calloc(1, EVP_MAX_MD_SIZE)) == NULL)
crypto/libressl/crypto/x509/x509_lu.c
187
if ((store = calloc(1, sizeof(*store))) == NULL)
crypto/libressl/crypto/x509/x509_lu.c
217
if ((obj = calloc(1, sizeof(*obj))) == NULL) {
crypto/libressl/crypto/x509/x509_lu.c
73
if ((lu = calloc(1, sizeof(*lu))) == NULL) {
crypto/libressl/crypto/x509/x509_utl.c
90
if ((vtmp = calloc(1, sizeof(CONF_VALUE))) == NULL)
crypto/libressl/crypto/x509/x509_verify.c
1004
if ((ctx = calloc(1, sizeof(struct x509_verify_ctx))) == NULL)
crypto/libressl/crypto/x509/x509_verify.c
101
if ((chain = calloc(1, sizeof(*chain))) == NULL)
crypto/libressl/crypto/x509/x509_verify.c
1019
if ((ctx->chains = calloc(X509_VERIFY_MAX_CHAINS,
crypto/libressl/crypto/x509/x509_verify.c
105
if ((chain->cert_errors = calloc(X509_VERIFY_MAX_CHAIN_CERTS,
crypto/libressl/crypto/x509/x509_verify.c
143
if ((new_chain = calloc(1, sizeof(*chain))) == NULL)
crypto/libressl/crypto/x509/x509_verify.c
147
if ((new_chain->cert_errors = calloc(X509_VERIFY_MAX_CHAIN_CERTS,
crypto/libressl/crypto/x509/x509_vfy.c
2326
ctx = calloc(1, sizeof(X509_STORE_CTX));
crypto/libressl/crypto/x509/x509_vpm.c
209
param = calloc(1, sizeof(X509_VERIFY_PARAM));
crypto/libressl/crypto/x509/x509_vpm.c
212
paramid = calloc(1, sizeof(X509_VERIFY_PARAM_ID));
crypto/libressl/ssl/bio_ssl.c
112
bs = calloc(1, sizeof(BIO_SSL));
crypto/libressl/ssl/bs_cbb.c
30
if ((base = calloc(1, sizeof(struct cbb_buffer_st))) == NULL)
crypto/libressl/ssl/bs_cbb.c
54
if ((buf = calloc(1, initial_capacity)) == NULL)
crypto/libressl/ssl/d1_both.c
176
if ((frag = calloc(1, sizeof(*frag))) == NULL)
crypto/libressl/ssl/d1_both.c
180
if ((frag->fragment = calloc(1, frag_len)) == NULL)
crypto/libressl/ssl/d1_both.c
186
if ((frag->reassembly = calloc(1,
crypto/libressl/ssl/d1_lib.c
84
if ((s->d1 = calloc(1, sizeof(*s->d1))) == NULL)
crypto/libressl/ssl/pqueue.c
95
return calloc(1, sizeof(pqueue_s));
crypto/libressl/ssl/s3_lib.c
1545
if ((s->s3 = calloc(1, sizeof(*s->s3))) == NULL)
crypto/libressl/ssl/ssl_both.c
650
if ((p = calloc(1, len)) == NULL)
crypto/libressl/ssl/ssl_both.c
684
if ((p = calloc(1, len)) == NULL)
crypto/libressl/ssl/ssl_cert.c
166
ret = calloc(1, sizeof(SSL_CERT));
crypto/libressl/ssl/ssl_cert.c
185
ret = calloc(1, sizeof(SSL_CERT));
crypto/libressl/ssl/ssl_ciph.c
916
number_uses = calloc((max_strength_bits + 1), sizeof(int));
crypto/libressl/ssl/ssl_clnt.c
2120
if ((signature = calloc(1, signature_len)) == NULL) {
crypto/libressl/ssl/ssl_clnt.c
2159
if ((signature = calloc(1, EVP_PKEY_size(pkey))) == NULL)
crypto/libressl/ssl/ssl_clnt.c
2194
if ((signature = calloc(1, EVP_PKEY_size(pkey))) == NULL)
crypto/libressl/ssl/ssl_clnt.c
2262
if ((signature = calloc(1, signature_len)) == NULL) {
crypto/libressl/ssl/ssl_kex.c
250
if ((key = calloc(1, key_len)) == NULL)
crypto/libressl/ssl/ssl_kex.c
407
if ((key = calloc(1, key_len)) == NULL)
crypto/libressl/ssl/ssl_lib.c
1960
if ((ret = calloc(1, sizeof(*ret))) == NULL) {
crypto/libressl/ssl/ssl_lib.c
1964
if ((ret->internal = calloc(1, sizeof(*ret->internal))) == NULL) {
crypto/libressl/ssl/ssl_lib.c
254
if ((s = calloc(1, sizeof(*s))) == NULL)
crypto/libressl/ssl/ssl_lib.c
256
if ((s->internal = calloc(1, sizeof(*s->internal))) == NULL)
crypto/libressl/ssl/ssl_lib.c
308
calloc(ctx->internal->tlsext_ecpointformatlist_length,
crypto/libressl/ssl/ssl_lib.c
321
calloc(ctx->internal->tlsext_supportedgroups_length,
crypto/libressl/ssl/ssl_sess.c
220
if ((ss = calloc(1, sizeof(*ss))) == NULL) {
crypto/libressl/ssl/ssl_srvr.c
1514
if ((signature = calloc(1, signature_len)) == NULL) {
crypto/libressl/ssl/ssl_srvr.c
2370
if ((enc_session = calloc(1, enc_session_max_len)) == NULL)
crypto/libressl/ssl/t1_lib.c
1091
if ((sdec = calloc(1, sdec_len)) == NULL)
crypto/libressl/ssl/t1_lib.c
545
if ((group_ids = calloc(ngroups, sizeof(uint16_t))) == NULL)
crypto/libressl/ssl/tls12_key_schedule.c
140
if ((key_block = calloc(1, key_block_len)) == NULL)
crypto/libressl/ssl/tls12_key_schedule.c
40
return calloc(1, sizeof(struct tls12_key_block));
crypto/libressl/ssl/tls12_record_layer.c
1022
if ((mac = calloc(1, mac_len)) == NULL)
crypto/libressl/ssl/tls12_record_layer.c
189
if ((rl = calloc(1, sizeof(struct tls12_record_layer))) == NULL)
crypto/libressl/ssl/tls12_record_layer.c
405
if ((rp->mac_key = calloc(1, mac_key_len)) == NULL)
crypto/libressl/ssl/tls12_record_layer.c
437
rp->aead_nonce = calloc(1, EVP_AEAD_nonce_length(rl->aead));
crypto/libressl/ssl/tls12_record_layer.c
58
return calloc(1, sizeof(struct tls12_record_protection));
crypto/libressl/ssl/tls13_client.c
748
if ((verify_data = calloc(1, verify_data_len)) == NULL)
crypto/libressl/ssl/tls13_client.c
963
if ((sig = calloc(1, sig_len)) == NULL)
crypto/libressl/ssl/tls13_handshake_msg.c
41
if ((msg = calloc(1, sizeof(struct tls13_handshake_msg))) == NULL)
crypto/libressl/ssl/tls13_key_schedule.c
32
if ((secret->data = calloc(1, len)) == NULL)
crypto/libressl/ssl/tls13_key_schedule.c
61
if ((secrets = calloc(1, sizeof(struct tls13_secrets))) == NULL)
crypto/libressl/ssl/tls13_lib.c
399
if ((ctx = calloc(sizeof(struct tls13_ctx), 1)) == NULL)
crypto/libressl/ssl/tls13_lib.c
529
(ctx->hs->tls13.clienthello_hash = calloc(1, EVP_MAX_MD_SIZE)) ==
crypto/libressl/ssl/tls13_record.c
37
if ((rec = calloc(1, sizeof(struct tls13_record))) == NULL)
crypto/libressl/ssl/tls13_record_layer.c
137
if ((rl = calloc(1, sizeof(struct tls13_record_layer))) == NULL)
crypto/libressl/ssl/tls13_record_layer.c
37
return calloc(1, sizeof(struct tls13_record_protection));
crypto/libressl/ssl/tls13_record_layer.c
564
if ((content = calloc(1, CBS_len(&enc_record))) == NULL)
crypto/libressl/ssl/tls13_server.c
1064
if ((verify_data = calloc(1, verify_data_len)) == NULL)
crypto/libressl/ssl/tls13_server.c
761
if ((sig = calloc(1, sig_len)) == NULL)
crypto/libressl/ssl/tls_buffer.c
41
if ((buf = calloc(1, sizeof(struct tls_buffer))) == NULL)
crypto/libressl/ssl/tls_content.c
36
return calloc(1, sizeof(struct tls_content));
crypto/libressl/ssl/tls_content.c
87
if ((dup = calloc(1, data_len)) == NULL)
crypto/libressl/ssl/tls_key_share.c
212
if ((public = calloc(1, X25519_KEY_LENGTH)) == NULL)
crypto/libressl/ssl/tls_key_share.c
214
if ((private = calloc(1, X25519_KEY_LENGTH)) == NULL)
crypto/libressl/ssl/tls_key_share.c
437
if ((sk = calloc(1, X25519_KEY_LENGTH)) == NULL)
crypto/libressl/ssl/tls_key_share.c
50
if ((ks = calloc(1, sizeof(struct tls_key_share))) == NULL)
crypto/libressl/tls/tls.c
220
return (calloc(1, sizeof(struct tls_sni_ctx)));
crypto/libressl/tls/tls.c
240
if ((ctx = calloc(1, sizeof(*ctx))) == NULL)
crypto/libressl/tls/tls_config.c
94
if ((config = calloc(1, sizeof(*config))) == NULL)
crypto/libressl/tls/tls_conninfo.c
234
if ((ctx->conninfo = calloc(1, sizeof(struct tls_conninfo))) == NULL) {
crypto/libressl/tls/tls_keypair.c
29
return calloc(1, sizeof(struct tls_keypair));
crypto/libressl/tls/tls_ocsp.c
41
return (calloc(1, sizeof(struct tls_ocsp)));
crypto/libressl/tls/tls_ocsp.c
83
if ((info = calloc(1, sizeof (struct tls_ocsp_result))) == NULL) {
crypto/libressl/tls/tls_signer.c
128
if ((skey = calloc(1, sizeof(*skey))) == NULL) {
crypto/libressl/tls/tls_signer.c
213
if ((signature = calloc(1, rsa_size)) == NULL) {
crypto/libressl/tls/tls_signer.c
257
if ((signature = calloc(1, signature_len)) == NULL) {
crypto/libressl/tls/tls_signer.c
436
ecdsa_method = calloc(1, sizeof(*ecdsa_method));
crypto/libressl/tls/tls_signer.c
46
if ((signer = calloc(1, sizeof(*signer))) == NULL)
crypto/libressl/tls/tls_verify.c
225
common_name = calloc(common_name_len + 1, 1);
crypto/openssh/auth-options.c
199
if ((ret = calloc(1, sizeof(*ret))) == NULL)
crypto/openssh/auth-options.c
58
(dst = calloc(nsrc, sizeof(*src))) == NULL)
crypto/openssh/auth-options.c
749
if (n > 0 && (a = calloc(n, sizeof(*a))) == NULL) {
crypto/openssh/auth-options.c
857
if ((opts = calloc(1, sizeof(*opts))) == NULL)
crypto/openssh/auth-pam.c
1141
if ((reply = calloc(n, sizeof(*reply))) == NULL)
crypto/openssh/auth-pam.c
1302
if ((reply = calloc(n, sizeof(*reply))) == NULL)
crypto/openssh/auth-pam.c
411
if ((reply = calloc(n, sizeof(*reply))) == NULL)
crypto/openssh/auth-pam.c
634
if ((reply = calloc(n, sizeof(*reply))) == NULL)
crypto/openssh/authfd.c
306
if ((idl = calloc(1, sizeof(*idl))) == NULL ||
crypto/openssh/authfd.c
307
(idl->keys = calloc(num, sizeof(*idl->keys))) == NULL ||
crypto/openssh/authfd.c
308
(idl->comments = calloc(num, sizeof(*idl->comments))) == NULL) {
crypto/openssh/bitmap.c
42
if ((ret = calloc(1, sizeof(*ret))) == NULL)
crypto/openssh/bitmap.c
44
if ((ret->d = calloc(1, BITMAP_BYTES)) == NULL) {
crypto/openssh/channels.c
235
if ((sc = calloc(1, sizeof(*sc))) == NULL)
crypto/openssh/channels.c
2535
if ((pre = calloc(SSH_CHANNEL_MAX_TYPE, sizeof(*pre))) == NULL ||
crypto/openssh/channels.c
2536
(post = calloc(SSH_CHANNEL_MAX_TYPE, sizeof(*post))) == NULL)
crypto/openssh/cipher-chachapoly-libcrypto.c
48
if ((ctx = calloc(1, sizeof(*ctx))) == NULL)
crypto/openssh/cipher-chachapoly.c
46
if ((ctx = calloc(1, sizeof(*ctx))) == NULL)
crypto/openssh/cipher.c
258
if ((cc = calloc(sizeof(*cc), 1)) == NULL)
crypto/openssh/clientloop.c
2505
if ((ctx->keys_match = calloc(ctx->nkeys,
crypto/openssh/clientloop.c
2507
(ctx->keys_verified = calloc(ctx->nkeys,
crypto/openssh/digest-libc.c
179
if (digest == NULL || (ret = calloc(1, sizeof(*ret))) == NULL)
crypto/openssh/digest-libc.c
181
if ((ret->mdctx = calloc(1, digest->ctx_len)) == NULL) {
crypto/openssh/digest-openssl.c
119
if (digest == NULL || ((ret = calloc(1, sizeof(*ret))) == NULL))
crypto/openssh/hmac.c
49
if ((ret = calloc(1, sizeof(*ret))) == NULL)
crypto/openssh/hmac.c
57
if ((ret->buf = calloc(1, ret->buf_len)) == NULL)
crypto/openssh/hostfile.c
614
if ((ctx.match_keys = calloc(nkeys, sizeof(*ctx.match_keys))) == NULL)
crypto/openssh/kex-names.c
210
(ret = calloc(1, len)) == NULL) {
crypto/openssh/kex.c
1074
if ((digest = calloc(1, ROUNDUP(need, mdsz))) == NULL) {
crypto/openssh/kex.c
1373
if ((remote_version = calloc(1, sshbuf_len(peer_version))) == NULL) {
crypto/openssh/kex.c
186
if ((proposal = calloc(PROPOSAL_MAX, sizeof(char *))) == NULL)
crypto/openssh/kex.c
674
if ((kex = calloc(1, sizeof(*kex))) == NULL ||
crypto/openssh/kex.c
997
if ((newkeys = calloc(1, sizeof(*newkeys))) == NULL) {
crypto/openssh/krl.c
137
if ((krl = calloc(1, sizeof(*krl))) == NULL)
crypto/openssh/krl.c
233
if ((rc = calloc(1, sizeof(*rc))) == NULL)
crypto/openssh/krl.c
352
if ((rki = calloc(1, sizeof(*rki))) == NULL ||
crypto/openssh/krl.c
391
if ((rb = calloc(1, sizeof(*rb))) == NULL)
crypto/openssh/moduli.c
314
while ((LargeSieve = calloc(largewords, sizeof(u_int32_t))) == NULL)
crypto/openssh/packet.c
1365
p = calloc(1, sizeof(*p));
crypto/openssh/packet.c
235
if ((ssh = calloc(1, sizeof(*ssh))) == NULL ||
crypto/openssh/packet.c
236
(state = calloc(1, sizeof(*state))) == NULL ||
crypto/openssh/packet.c
2443
if ((newkey = calloc(1, sizeof(*newkey))) == NULL) {
crypto/openssh/readpass.c
289
if ((ret = calloc(1, sizeof(*ret))) == NULL) {
crypto/openssh/ssh-ecdsa-sk.c
266
if ((details = calloc(1, sizeof(*details))) == NULL) {
crypto/openssh/ssh-ed25519-sk.c
197
if ((details = calloc(1, sizeof(*details))) == NULL) {
crypto/openssh/ssh-sk-client.c
440
if ((srk = calloc(1, sizeof(*srk))) == NULL) {
crypto/openssh/ssh_api.c
389
(remote_version = calloc(1, sshbuf_len(banner))) == NULL) {
crypto/openssh/ssh_api.c
544
if ((replace = calloc(1, maxlen)) == NULL) {
crypto/openssh/sshbuf.c
103
if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) {
crypto/openssh/sshbuf.c
116
(ret = calloc(sizeof(*ret), 1)) == NULL)
crypto/openssh/sshbuf.c
96
if ((ret = calloc(sizeof(*ret), 1)) == NULL)
crypto/openssh/sshkey-xmss.c
103
state = calloc(sizeof(struct ssh_xmss_state), 1);
crypto/openssh/sshkey-xmss.c
170
if ((state->stack = calloc(num_stack(state), 1)) == NULL ||
crypto/openssh/sshkey-xmss.c
171
(state->stacklevels = calloc(num_stacklevels(state), 1))== NULL ||
crypto/openssh/sshkey-xmss.c
172
(state->auth = calloc(num_auth(state), 1)) == NULL ||
crypto/openssh/sshkey-xmss.c
173
(state->keep = calloc(num_keep(state), 1)) == NULL ||
crypto/openssh/sshkey-xmss.c
174
(state->th_nodes = calloc(num_th_nodes(state), 1)) == NULL ||
crypto/openssh/sshkey-xmss.c
175
(state->retain = calloc(num_retain(state), 1)) == NULL ||
crypto/openssh/sshkey-xmss.c
176
(state->treehash = calloc(num_treehash(state),
crypto/openssh/sshkey-xmss.c
283
if ((state->enc_keyiv = calloc(state->enc_keyiv_len, 1)) == NULL) {
crypto/openssh/sshkey-xmss.c
412
if ((data = calloc(len, 1)) == NULL) {
crypto/openssh/sshkey-xmss.c
785
if ((state->treehash = calloc(num_treehash(state),
crypto/openssh/sshkey.c
1029
if ((retval = calloc((FLDSIZE_X + 3), (FLDSIZE_Y + 2))) == NULL)
crypto/openssh/sshkey.c
1467
if ((to->principals = calloc(from->nprincipals,
crypto/openssh/sshkey.c
2784
if ((key = calloc(1, keylen + ivlen)) == NULL) {
crypto/openssh/sshkey.c
3021
if ((key = calloc(1, keylen + ivlen)) == NULL) {
crypto/openssh/sshkey.c
3517
(prv->ed25519_sk = calloc(1, ED25519_SK_SZ)) == NULL ||
crypto/openssh/sshkey.c
3518
(prv->ed25519_pk = calloc(1, ED25519_PK_SZ)) == NULL) {
crypto/openssh/sshkey.c
593
if ((cert = calloc(1, sizeof(*cert))) == NULL)
crypto/openssh/sshkey.c
619
if ((k = calloc(1, sizeof(*k))) == NULL)
crypto/openssh/sshkey.c
870
if ((ret = calloc(1, SSH_DIGEST_MAX_LENGTH)) == NULL) {
crypto/openssh/sshkey.c
899
if (dgst_raw_len > 65536 || (ret = calloc(1, rlen)) == NULL)
crypto/openssh/sshkey.c
920
if (dgst_raw_len > 65536 || (retval = calloc(1, rlen)) == NULL)
crypto/openssh/sshkey.c
942
if ((retval = calloc(rounds, 6)) == NULL)
crypto/openssh/sshsig.c
643
if ((ret = calloc(1, sizeof(*ret))) == NULL)
crypto/openssh/xmalloc.c
55
ptr = calloc(nmemb, size);
crypto/openssh/xmss_wots.c
124
int *basew = calloc(params->len, sizeof(int));
crypto/openssh/xmss_wots.c
162
int *basew = calloc(params->len, sizeof(int));
games/adventure/io.c
366
t = travel[locc] = calloc(1, sizeof(*t));
games/adventure/io.c
391
t->next = calloc(1, sizeof(*t));
games/atc/list.c
52
return ((PLANE *) calloc(1, sizeof (PLANE)));
games/backgammon/backgammon/move.c
356
new = (struct BOARD *) calloc(1, sizeof(struct BOARD));
games/backgammon/common_source/fancy.c
740
linect = (int *) calloc(LI + 1, sizeof(int));
games/boggle/boggle/bog.c
681
letter_map = calloc(26, sizeof(int *));
games/boggle/boggle/bog.c
685
letter_map[i] = calloc(ncubes, sizeof(int));
games/boggle/boggle/bog.c
689
pword = calloc(maxpwords, sizeof(char *));
games/boggle/boggle/bog.c
695
mword = calloc(maxmwords, sizeof(char *));
games/boggle/boggle/bog.c
720
adjacency = calloc(ncubes, sizeof(int *));
games/boggle/boggle/bog.c
729
adj = adjacency[cube] = calloc(ncubes, sizeof(int));
games/factor/factor.c
77
#define BN_new() ((BIGNUM *)calloc(sizeof(BIGNUM), 1))
games/fortune/fortune/fortune.c
1398
ppch = Fortune_path_arr = (char **)calloc(nstr, sizeof(char *));
games/hunt/hunt/list.c
111
drivers = calloc(maxdrivers, sizeof *driver);
games/hunt/huntd/expl.c
157
rem_index = removed = calloc(conf_maxremove, sizeof(REGEN));
games/monop/cards.c
205
dp->cards = calloc((size_t)dp->num_cards, sizeof(dp->cards[0]));
games/monop/execute.c
532
play = calloc((size_t)num_play, sizeof(play[0]));
games/monop/monop.c
266
cur_p = play = calloc((size_t)num_play, sizeof (PLAY));
games/monop/prop.c
62
op = calloc(1, sizeof (OWN));
games/sail/dr_main.c
82
(sp->file = calloc(1, sizeof (struct File))) == NULL) {
games/sail/pl_main.c
72
(sp->file = calloc(1, sizeof (struct File))) == NULL) {
include/rpc/types.h
63
#define mem_alloc(bsize) calloc(1, bsize)
include/stdlib.h
99
void *calloc(size_t, size_t) __alloc_size2(1, 2) __malloclike __heedresult;
lib/i18n_module/HZ/citrus_hz.c
535
graphic = calloc(1, sizeof(*graphic));
lib/i18n_module/HZ/citrus_hz.c
600
escape = calloc(1, sizeof(*escape));
lib/libc/citrus/citrus_db_factory.c
273
depp = calloc(df->df_num_entries, sizeof(*depp));
lib/libc/citrus/citrus_iconv.c
357
if ((buf = calloc((size_t)PATH_MAX, sizeof(*buf))) == NULL)
lib/libc/citrus/citrus_stdenc_template.h
74
ei = calloc(1, sizeof(_ENCODING_INFO));
lib/libc/db/btree/bt_open.c
158
if ((t = (BTREE *)calloc(1, sizeof(BTREE))) == NULL)
lib/libc/db/btree/bt_open.c
167
if ((t->bt_dbp = dbp = (DB *)calloc(1, sizeof(DB))) == NULL)
lib/libc/db/btree/bt_split.c
373
if ((l = (PAGE *)calloc(1, t->bt_psize)) == NULL) {
lib/libc/db/hash/hash.c
108
if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB))))
lib/libc/db/hash/hash.c
810
(SEGMENT)calloc(hashp->SGSIZE, sizeof(SEGMENT))) == NULL)
lib/libc/db/hash/hash.c
879
(SEGMENT *)calloc(hashp->DSIZE, sizeof(SEGMENT *))) == NULL) {
lib/libc/db/hash/hash.c
889
if ((store = (SEGMENT)calloc(nsegs << hashp->SSHIFT,
lib/libc/db/hash/hash_buf.c
190
if ((bp = (BUFHEAD *)calloc(1, sizeof(BUFHEAD))) == NULL)
lib/libc/db/hash/hash_buf.c
192
if ((bp->page = (char *)calloc(1, hashp->BSIZE)) == NULL) {
lib/libc/db/mpool/mpool.c
375
new: if ((bp = (BKT *)calloc(1, sizeof(BKT) + mp->pagesize)) == NULL)
lib/libc/db/mpool/mpool.c
80
if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL)
lib/libc/gen/fts.c
119
if ((priv = calloc(1, sizeof(*priv))) == NULL)
lib/libc/gen/posix_spawn.c
368
sa = calloc(1, sizeof(struct __posix_spawnattr));
lib/libc/gen/pwcache.c
178
if ((uidtb = (UIDC **)calloc(UID_SZ, sizeof(UIDC *))) == NULL) {
lib/libc/gen/pwcache.c
199
if ((gidtb = (GIDC **)calloc(GID_SZ, sizeof(GIDC *))) == NULL) {
lib/libc/gen/pwcache.c
220
if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) {
lib/libc/gen/pwcache.c
241
if ((grptb = (GIDC **)calloc(GNM_SZ, sizeof(GIDC *))) == NULL) {
lib/libc/gen/vis.c
369
if ((dst = calloc(len + MAXEXTRAS, sizeof(*dst))) == NULL)
lib/libc/gen/vis.c
445
if ((psrc = calloc(mbslength + 1, sizeof(*psrc))) == NULL)
lib/libc/gen/vis.c
447
if ((pdst = calloc((16 * mbslength) + 1, sizeof(*pdst))) == NULL)
lib/libc/gen/vis.c
450
if ((mdst = calloc((16 * mbslength) + 1, sizeof(*mdst))) == NULL)
lib/libc/include/nss_tls.h
67
*p = calloc(1, sizeof(**p)); \
lib/libc/locale/collate.c
84
struct xlocale_collate *table = calloc(sizeof(struct xlocale_collate), 1);
lib/libc/locale/lmessages.c
96
struct xlocale_messages *new = calloc(sizeof(struct xlocale_messages), 1);
lib/libc/locale/lmonetary.c
158
struct xlocale_monetary *new = calloc(sizeof(struct xlocale_monetary), 1);
lib/libc/locale/lnumeric.c
97
struct xlocale_numeric *new = calloc(sizeof(struct xlocale_numeric), 1);
lib/libc/locale/setrunelocale.c
195
struct xlocale_ctype *l = calloc(sizeof(struct xlocale_ctype), 1);
lib/libc/locale/xlocale.c
193
locale_t new = calloc(sizeof(struct _xlocale), 1);
lib/libc/net/netdb_private.h
60
if ((he = calloc(1, sizeof(*he))) == NULL) \
lib/libc/resolv/res_findzonecut.c
163
u = calloc(naddrs, sizeof(*u));
lib/libc/resolv/res_mkupdate.c
932
ns_updrec *rrecp = (ns_updrec *)calloc(1, sizeof(ns_updrec));
lib/libc/resolv/res_state.c
77
statp = calloc(1, sizeof(*statp));
lib/libc/rpc/auth_none.c
81
ap = (struct authnone_private *)calloc(1, sizeof (*ap));
lib/libc/rpc/clnt_raw.c
102
(char *)calloc(UDPMSGSIZE, sizeof (char));
lib/libc/rpc/clnt_raw.c
95
clp = (struct clntraw_private *)calloc(1, sizeof (*clp));
lib/libc/rpc/rpcb_clnt.c
1303
taddr = (struct netbuf *)calloc(1, sizeof (struct netbuf));
lib/libc/rpc/svc_raw.c
88
srp = (struct svc_raw_private *)calloc(1, sizeof (*srp));
lib/libc/rpc/svc_raw.c
94
__rpc_rawcombuf = calloc(UDPMSGSIZE, sizeof (char));
lib/libc/stdio/open_memstream.c
180
*bufp = calloc(1, 1);
lib/libc/stdio/open_wmemstream.c
241
*bufp = calloc(1, sizeof(wchar_t));
lib/libc/stdlib/cxa_thread_atexit_impl.c
78
fnp = calloc(1, sizeof(*fnp));
lib/libc/stdlib/dmalloc.c
1731
__weak_reference(__calloc, calloc);
lib/libc/stdlib/getenv.c
343
envVars = calloc(1, sizeof (*envVars) * envVarsSize);
lib/libc/stdlib/nmalloc.c
2163
__weak_reference(__calloc, calloc);
lib/libc/stdlib/recallocarray.c
37
return calloc(newnmemb, size);
lib/libc/stdlib/strfmon.c
576
rslt = calloc(1, bufsize);
lib/libc/stdtime/timelocal.c
145
struct xlocale_time *new = calloc(sizeof(struct xlocale_time), 1);
lib/libdmsg/crypto.c
91
crypto_locks = calloc(crypto_count, sizeof(crypto_locks[0]));
lib/libefivar/uefi-dplib.h
503
#define AllocateZeroPool(x) calloc(1,x)
lib/libevtr/evtr.c
613
if (!(tab = calloc(sizeof(struct hashtab), 1)))
lib/libevtr/evtr.c
651
if (!(strtab = calloc(sizeof(struct hashtab_str), 1)))
lib/libevtr/evtr.c
703
if (!(symtab = calloc(sizeof(struct symtab), 1)))
lib/libevtr/ktrfmt.tab.c
120
var = calloc(1, sizeof(*var));
lib/libevtr/ktrfmt.y
47
var = calloc(1, sizeof(*var));
lib/libexecinfo/backtrace.c
189
if ((ptr = calloc(len, slen)) == NULL)
lib/libexecinfo/private_libelf.h
1141
if ((d = calloc((size_t) 1, sizeof(*d))) == NULL) {
lib/libexecinfo/private_libelf.h
1168
if ((s = calloc((size_t) 1, sizeof(Elf_Scn))) == NULL) {
lib/libexecinfo/private_libelf.h
2509
if ((ehdr = calloc((size_t) 1, msz)) == NULL) {
lib/libexecinfo/symtab.c
102
st = calloc(1, sizeof(*st));
lib/libexecinfo/symtab.c
122
s = calloc(ns, sizeof(*s));
lib/libfetch/common.c
284
if ((conn = calloc(1, sizeof(*conn))) == NULL)
lib/libfetch/fetch.c
274
if ((u = calloc(1, sizeof(*u))) == NULL) {
lib/libfetch/fetch.c
359
if ((u = calloc(1, sizeof(*u))) == NULL) {
lib/libfetch/http.c
338
if ((io = calloc(1, sizeof(*io))) == NULL) {
lib/libhammer/misc.c
160
m = calloc(len, sizeof(char));
lib/libkvm/kvm.c
129
if ((p = calloc(n, sizeof(char))) == NULL)
lib/libldns/ldns/util.h
53
#define LDNS_CALLOC(type, count) ((type *) calloc((count), sizeof(type)))
lib/libnvmm/libnvmm.c
227
areas = calloc(1, sizeof(*areas));
lib/libnvmm/libnvmm.c
231
pages = calloc(__capability.max_vcpus, sizeof(*pages));
lib/libsdp/session.c
154
if ((ss = calloc(1, sizeof(*ss))) == NULL)
lib/libsdp/session.c
84
if ((ss = calloc(1, sizeof(*ss))) == NULL)
lib/libssh/openbsd-compat/bcrypt_pbkdf.c
132
if ((countsalt = calloc(1, saltlen + 4)) == NULL)
lib/libssh/openbsd-compat/getrrsetbyname-ldns.c
121
rrset = calloc(1, sizeof(struct rrsetinfo));
lib/libssh/openbsd-compat/getrrsetbyname-ldns.c
177
rrset->rri_rdatas = calloc(rrset->rri_nrdatas,
lib/libssh/openbsd-compat/getrrsetbyname-ldns.c
187
rrset->rri_sigs = calloc(rrset->rri_nsigs,
lib/libssh/openbsd-compat/glob.c
577
if ((path_stat = calloc(n, sizeof(*path_stat))) == NULL)
lib/libusb/libusb10_io.c
437
ret = calloc(i + 1, sizeof(struct libusb_pollfd *));
lib/libutil/efun.c
113
void *p = calloc(n, s);
lib/libypclnt/ypclnt_new.c
47
if ((ypclnt = calloc(1, sizeof *ypclnt)) == NULL)
libexec/dma/aliases_parse.y
105
it = calloc(1, sizeof(*it));
libexec/dma/aliases_parse.y
74
al = calloc(1, sizeof(*al));
libexec/dma/aliases_parse.y
93
it = calloc(1, sizeof(*it));
libexec/dma/conf.c
122
au = calloc(1, sizeof(*au));
libexec/dma/crypto.c
304
temp = calloc(BUF_SIZE, 1);
libexec/dma/dma.c
186
it = calloc(1, sizeof(*it));
libexec/ftpd/ftpcmd.y
816
$$ = (char *)calloc(1, sizeof(char));
libexec/ftpd/ftpd.c
1191
reply = calloc(num_msg, sizeof *reply);
libexec/getty/subr.c
471
match = calloc(regex.re_nsub + 1, sizeof(*match));
libexec/rtld-elf/x86_64/reloc.c
151
cache = calloc(obj->dynsymcount, sizeof(SymCache));
libexec/rtld-elf/xmalloc.c
40
p = calloc(number, size);
sbin/devfsctl/devfsctl.c
286
id = calloc(1, sizeof(*id));
sbin/devfsctl/devfsctl.c
306
id->list = calloc(4, sizeof(struct groupdevid *));
sbin/devfsctl/devfsctl.c
355
rule = calloc(1, sizeof(*rule));
sbin/devfsctl/devfsctl.c
735
rt = calloc(1, sizeof(struct rule_tab));
sbin/dhclient/dhclient.c
1552
calloc(client->scriptEnvsize, sizeof(char *));
sbin/dhclient/dhclient.c
1634
o.data = calloc(1, o.len);
sbin/dhclient/dhclient.c
1653
o.data = calloc(1, o.len);
sbin/dhclient/dhclient.c
2277
if ((ifgr.ifgr_groups = calloc(1, len)) == NULL)
sbin/dhclient/dhclient.c
394
ifi = calloc(1, sizeof(*ifi));
sbin/dhclient/dhclient.c
397
client = calloc(1, sizeof(*client));
sbin/dhclient/dhclient.c
400
config = calloc(1, sizeof(*config));
sbin/dhclient/options.c
109
if (!(t = calloc(1, len + 1)))
sbin/dhclient/options.c
126
t = calloc(1, len + options[code].len + 1);
sbin/dhclient/privsep.c
116
if ((reason = calloc(1, reason_len + 1)) == NULL)
sbin/dhclient/privsep.c
137
if ((filename = calloc(1, filename_len + 1)) == NULL)
sbin/dhclient/privsep.c
149
calloc(1, servername_len + 1)) == NULL)
sbin/dhclient/privsep.c
160
if ((prefix = calloc(1, prefix_len + 1)) == NULL)
sbin/dhclient/privsep.c
178
calloc(1, optlen + 1);
sbin/dhclient/privsep.c
27
if ((buf = calloc(1, sizeof(struct buf))) == NULL)
sbin/dump/cache.c
89
base = calloc(sizeof(Block), NBlocks);
sbin/dump/cache.c
90
BlockHash = calloc(sizeof(Block *), HSize);
sbin/dump/itime.c
105
dtwalk = (struct dumptime *)calloc(1, sizeof (struct dumptime));
sbin/dump/itime.c
117
calloc((unsigned) (nddates + 1), sizeof (struct dumpdates *));
sbin/dump/itime.c
191
(struct dumpdates *)calloc(1, sizeof (struct dumpdates));
sbin/dump/main.c
361
usedinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
sbin/dump/main.c
362
dumpdirmap = (char *)calloc((unsigned) mapsize, sizeof(char));
sbin/dump/main.c
363
dumpinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
sbin/dumpfs/dumpfs.c
207
afs.fs_csp = calloc(1, afs.fs_cssize);
sbin/ffsinfo/ffsinfo.c
300
fscs = (struct csum *)calloc((size_t)1,
sbin/fsck/pass1.c
131
info = calloc((unsigned)inosused, sizeof(struct inostat));
sbin/fsck/pass1.c
164
info = calloc((unsigned)inosused, sizeof(struct inostat));
sbin/fsck/setup.c
266
sblock.fs_csp = calloc(1, sblock.fs_cssize);
sbin/fsck/setup.c
285
blockmap = calloc((unsigned)bmapsize, sizeof (char));
sbin/fsck/setup.c
291
inostathead = calloc((unsigned)(sblock.fs_ncg),
sbin/fsck/setup.c
316
inpsort = calloc((unsigned)listmax, sizeof(struct inoinfo *));
sbin/fsck/setup.c
317
inphead = calloc((unsigned)dirhash, sizeof(struct inoinfo *));
sbin/fsck_hammer2/fsck_hammer2.c
64
PFSNames = calloc(siz, sizeof(char *));
sbin/fsck_hammer2/test.c
1089
newp = calloc(1, sizeof(*newp));
sbin/fsck_hammer2/test.c
1091
newp->msg = calloc(1, sizeof(*ipdata));
sbin/fsck_hammer2/test.c
459
m = calloc(1, sizeof(*m));
sbin/fsck_hammer2/test.c
462
p = calloc(1, siz);
sbin/fsck_hammer2/test.c
480
e = calloc(1, sizeof(*e));
sbin/fsck_hammer2/test.c
615
char *buf = calloc(1, siz);
sbin/fsck_msdosfs/fat.c
121
lbp->map = calloc(1, bitmap_size);
sbin/fsck_msdosfs/fat.c
677
entry = calloc(fat32_cache_entries, sizeof(*entry));
sbin/fsck_msdosfs/fat.c
729
fat = calloc(1, sizeof(struct fat_descriptor));
sbin/gpt/create.c
150
gpt = map_add(1LL, 1LL, MAP_TYPE_GPT_PRI_HDR, calloc(1, secsz));
sbin/gpt/create.c
152
calloc(blocks, secsz));
sbin/gpt/create.c
192
calloc(1, secsz));
sbin/gpt/expand.c
202
calloc(1, secsz));
sbin/gpt/migrate.c
307
gpt = map_add(1LL, 1LL, MAP_TYPE_GPT_PRI_HDR, calloc(1, secsz));
sbin/gpt/migrate.c
309
calloc(blocks, secsz));
sbin/gpt/migrate.c
317
tpg = map_add(last, 1LL, MAP_TYPE_GPT_SEC_HDR, calloc(1, secsz));
sbin/gpt/recover.c
104
calloc(1, secsz));
sbin/gpt/recover.c
122
calloc(1, secsz));
sbin/growfs/growfs.c
175
fscs = (struct csum *)calloc((size_t)1, (size_t)sblock.fs_cssize);
sbin/hammer/cmd_blockmap.c
486
collect = calloc(1, sizeof(*collect));
sbin/hammer/cmd_blockmap.c
487
collect->track2 = calloc(1, HAMMER_BIGBLOCK_SIZE); /* 1<<23 bytes */
sbin/hammer/cmd_blockmap.c
488
collect->layer2 = calloc(1, HAMMER_BIGBLOCK_SIZE); /* 1<<23 bytes */
sbin/hammer/cmd_blockmap.c
489
collect->offsets = calloc(HAMMER_BLOCKMAP_RADIX2, sizeof(hammer_off_t));
sbin/hammer/cmd_dedup.c
444
sim_de = calloc(1, sizeof(*sim_de));
sbin/hammer/cmd_dedup.c
559
de = calloc(1, sizeof(*de));
sbin/hammer/cmd_dedup.c
610
sha_de = calloc(1, sizeof(*sha_de));
sbin/hammer/cmd_dedup.c
730
sha_de = calloc(1, sizeof(*sha_de));
sbin/hammer/cmd_dedup.c
771
sha_de = calloc(1, sizeof(*sha_de));
sbin/hammer/cmd_dedup.c
795
pass2_de = calloc(1, sizeof(*pass2_de));
sbin/hammer/cmd_history.c
204
ca->path = calloc(1, length);
sbin/hammer/cmd_recover.c
904
b = calloc(1, sizeof(*b));
sbin/hammer/misc.c
220
return(calloc(HAMMER_MAX_ZONES, sizeof(struct zone_stat)));
sbin/hammer/misc.c
228
l1_max = calloc(HAMMER_MAX_VOLUMES, sizeof(int));
sbin/hammer/misc.c
234
l1_bits = calloc(HAMMER_MAX_VOLUMES, sizeof(uint64_t*));
sbin/hammer/ondisk.c
105
volume->ondisk = calloc(1, HAMMER_BUFSIZE);
sbin/hammer/ondisk.c
346
buffer = calloc(1, sizeof(*buffer));
sbin/hammer/ondisk.c
350
buffer->ondisk = calloc(1, HAMMER_BUFSIZE);
sbin/hammer/ondisk.c
94
volume = calloc(1, sizeof(*volume));
sbin/hammer2/cmd_debug.c
745
buf = calloc(1, sizeof(voldata->volu_loff));
sbin/hammer2/cmd_info.c
197
e = calloc(1, sizeof(*e));
sbin/hammer2/cmd_pfs.c
86
e = calloc(1, sizeof(*e));
sbin/hammer2/cmd_recover.c
204
InodeHash = calloc(HTABLE_SIZE, sizeof(inode_entry_t *));
sbin/hammer2/cmd_recover.c
205
InodeHash2 = calloc(HTABLE_SIZE, sizeof(inode_entry_t *));
sbin/hammer2/cmd_recover.c
206
TopologyHash = calloc(HTABLE_SIZE, sizeof(topology_entry_t *));
sbin/hammer2/cmd_recover.c
207
NegativeHash = calloc(HTABLE_SIZE, sizeof(neg_entry_t *));
sbin/hammer2/cmd_recover.c
208
TopoBRefHash = calloc(HTABLE_SIZE, sizeof(topo_bref_entry_t *));
sbin/hammer2/cmd_recover.c
209
TopoInodeHash = calloc(HTABLE_SIZE, sizeof(topo_inode_entry_t *));
sbin/hammer2/cmd_rsa.c
121
RSA **keys = calloc(nkeys, sizeof(RSA *));
sbin/hammer2/cmd_rsa.c
122
int *ispub = calloc(nkeys, sizeof(int));
sbin/hammer2/cmd_rsa.c
256
RSA **keys = calloc(nkeys, sizeof(RSA *));
sbin/hammer2/cmd_rsa.c
257
int *ispub = calloc(nkeys, sizeof(int));
sbin/hammer2/cmd_volume.c
50
vollist.volumes = calloc(HAMMER2_MAX_VOLUMES, sizeof(*vollist.volumes));
sbin/hammer2/ondisk.c
297
st = calloc(nvolumes, sizeof(*st));
sbin/hammer2/ondisk.c
727
voldata = calloc(1, sizeof(*voldata));
sbin/hammer2/subs.c
429
av = calloc(n, sizeof(char *));
sbin/hammer2/subs.c
430
fs = calloc(n, sizeof(struct statfs));
sbin/ifconfig/ifconfig.c
168
cur = calloc(1, sizeof(*cur));
sbin/ifconfig/ifconfig.c
646
ifgr.ifgr_groups = calloc(1, len);
sbin/ifconfig/ifgroup.c
144
if ((ifgr.ifgr_groups = calloc(1, len)) == NULL)
sbin/ifconfig/ifgroup.c
99
ifgr.ifgr_groups = calloc(1, len);
sbin/ifconfig/ifwg.c
405
wg_interface = calloc(1, wg_data.wgd_size);
sbin/ifconfig/ifwg.c
66
wg_data.wgd_interface = wg_interface = calloc(1, wg_data.wgd_size);
sbin/ifconfig/regdomain.c
148
mt->netband = calloc(1, sizeof(struct netband));
sbin/ifconfig/regdomain.c
164
mt->country = calloc(1, sizeof(struct country));
sbin/ifconfig/regdomain.c
173
mt->freqband = calloc(1, sizeof(struct freqband));
sbin/ifconfig/regdomain.c
429
mt = calloc(1, sizeof(struct mystate));
sbin/ifconfig/regdomain.c
447
rdp->ident = calloc(mt->nident + 1, sizeof(struct ident));
sbin/ifconfig/regdomain.c
627
rdp = calloc(1, sizeof(struct regdata));
sbin/ifconfig/regdomain.c
97
mt->rd = calloc(1, sizeof(struct regdomain));
sbin/init/init.c
1043
sp = (session_t *) calloc(1, sizeof (session_t));
sbin/iscontrol/fsm.c
664
if((sess = calloc(1, sizeof(isess_t))) == NULL) {
sbin/mount_hammer/mount_hammer.c
207
ary = calloc(arymax, sizeof(char *));
sbin/newfs/mkfs.c
642
fscs = (struct csum *)calloc(1, sblock.fs_cssize);
sbin/quotacheck/quotacheck.c
484
if ((fup = calloc(1, sizeof(*fup) + len)) == NULL)
sbin/rconfig/client.c
218
ntag = calloc(1, sizeof(struct tag));
sbin/rconfig/rconfig.c
111
tag_t tag = calloc(1, sizeof(struct tag));
sbin/restore/dirs.c
696
itp = calloc(1, sizeof(struct inotab));
sbin/restore/symtab.c
223
np = (struct entry *)calloc(1, sizeof(struct entry));
sbin/restore/symtab.c
533
calloc((unsigned)entrytblsize, sizeof(struct entry *));
sbin/restore/symtab.c
549
base = calloc((unsigned)tblsize, sizeof(char));
sbin/restore/tape.c
254
map = calloc((unsigned)1, (unsigned)howmany(maxino, NBBY));
sbin/restore/tape.c
264
map = calloc((unsigned)1, (unsigned)howmany(maxino, NBBY));
sbin/svc/remote.c
217
conn = calloc(1, sizeof(*conn));
sbin/svc/remote.c
236
conn = calloc(1, sizeof(*conn));
sbin/svc/remote.c
247
conn = calloc(1, sizeof(*conn));
sbin/svc/remote.c
344
av = calloc(acmax, sizeof(char *));
sbin/svc/remote.c
72
connect_t *conn = calloc(1, sizeof(*conn));
sbin/svc/subs.c
89
nary = calloc(i + 1, sizeof(char *));
sbin/umount/umount.c
553
if ((mntcheck = calloc(mntsize + 1, sizeof(int))) == NULL ||
sbin/umount/umount.c
554
(mntcount = calloc(mntsize + 1, sizeof(int))) == NULL)
share/examples/ses/srcs/getencstat.c
119
objp = calloc(nobj, sizeof (ses_object));
share/examples/ses/srcs/getobjmap.c
69
objp = calloc(nobj, sizeof (ses_object));
stand/boot/common/do_dloader.c
169
argvbuf = (char**) calloc((u_int)argc, sizeof(char*));
stand/boot/common/do_dloader.c
197
argvbuf = (char**) calloc((u_int)argc, sizeof(char*));
stand/boot/efi/libefi/efinet.c
291
efinetif.netif_ifs = calloc(nifs, sizeof(struct netif_dif));
stand/boot/efi/libefi/efinet.c
293
stats = calloc(nifs, sizeof(struct netif_stats));
stand/boot/efi/loader/arch/x86_64/framebuffer.c
132
data1 = calloc(maxcount, 2);
stand/lib/stand.h
243
extern void *calloc(size_t, size_t);
sys/dev/misc/evdev/freebsd-bitstring.h
182
return ((bitstr_t *)calloc(bitstr_size(_nbits), 1));
sys/kern/subr_sbuf.c
57
#define SBMALLOC(size) calloc(1, size)
sys/libkern/linux_idr.c
62
#define kmalloc(bytes, zone, flags) calloc(bytes, 1)
sys/libprop/prop_object_impl.h
360
#define _PROP_CALLOC(s, t) calloc(1, (s))
sys/net/netmap/netmap_user.h
184
d = (struct nm_desc_t *)calloc(1, sizeof(*d));
sys/net/zlib.c
5321
extern voidp calloc OF((uInt items, uInt size));
sys/net/zlib.c
5329
return (voidpf)calloc(items, size);
sys/sys/bitstring.h
56
(bitstr_t *)calloc((size_t)bitstr_size(nbits), sizeof(bitstr_t))
test/debug/vmobjinfo.c
131
swapfds = calloc(sizeof(int), nswdev);
test/illumos/oclo/oclo.c
1267
argv = calloc(oclo_rtdata_next + 2, sizeof (char *));
test/illumos/oclo/oclo.c
603
msg.msg_control = calloc(1, msg.msg_controllen);
test/interbench/interbench.c
1132
if (!(buf = calloc(1, bsize)))
test/interbench/interbench.c
650
if (!(buf = calloc(1, statbuf.st_blksize)))
test/stress/stress2/lib/main.c
199
r = (pid_t *)calloc(1, op->incarnations * sizeof(pid_t));
test/stress/stress2/testcases/openat/doat.c
101
tests = calloc(NUM_OF_TESTS, sizeof(struct test));
test/stress/stress2/testcases/udp/udp.c
95
if ((buf = calloc(1, bufsize)) == NULL)
test/stress/stress2/tools/fstool.c
181
if ((buffer = calloc(1, fs)) == NULL)
test/stress/t_mlock.c
26
TestBuf = calloc(1, TESTSIZE);
test/stress/t_mlock.c
27
FlagBuf = calloc(1, TESTSIZE / 4096);
tools/tools/ath/athrd/athrd.c
1641
return calloc(1, size);
tools/tools/ath/athregs/dumpregs.c
315
keyregs = (struct dumpreg *) calloc(nslots, 8*sizeof(struct dumpreg));
tools/tools/ath/athregs/dumpregs.c
342
bbregs = (struct dumpreg *) calloc(nregs, sizeof(struct dumpreg));
tools/tools/ath/athstats/athstats.c
990
wf = calloc(1, sizeof(struct athstatfoo_p));
tools/tools/net80211/wlanstats/wlanstats.c
989
wf = calloc(1, sizeof(struct wlanstatfoo_p));
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
57
in = calloc(in_max, sizeof(struct sockaddr_in));
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
70
in = calloc(in_max, sizeof(struct sockaddr_in));
tools/tools/netrate/kq_sendrecv/kq_recvserv/kq_recvserv.c
134
ctx_arr = calloc(nthr, sizeof(struct recv_thrctx));
tools/tools/netrate/kq_sendrecv/kq_recvserv/kq_recvserv.c
139
info = calloc(1, info_sz);
tools/tools/netrate/kq_sendrecv/kq_sendcli/kq_sendcli.c
265
ctx_arr = calloc(nthr, sizeof(struct send_thrctx));
tools/tools/netrate/netperf/tcp_cc/tcp_cc.c
75
instance = calloc(ninst, sizeof(struct netperf_child));
tools/tools/netrate/netperf/tcp_stream/tcp_stream.c
176
instance = calloc(ninstance, sizeof(struct netperf_child));
tools/tools/netrate/pktgenctl/pktgenctl.c
120
conf.pc_dst = calloc(ndst_alloc, sizeof(struct sockaddr_in));
tools/tools/netrate/pktgenctl/pktgenctl.c
133
conf.pc_dst = calloc(ndst_alloc,
usr.bin/calendar/utils.c
109
void *ptr = calloc(number, size);
usr.bin/column/column.c
225
if ((t = tbl = calloc(entries, sizeof(TBL))) == NULL)
usr.bin/column/column.c
227
if ((cols = calloc((maxcols = DEFCOLS), sizeof(*cols))) == NULL)
usr.bin/column/column.c
229
if ((lens = calloc(maxcols, sizeof(int))) == NULL)
usr.bin/column/column.c
245
if ((t->list = calloc(coloff, sizeof(*t->list))) == NULL)
usr.bin/column/column.c
247
if ((t->len = calloc(coloff, sizeof(int))) == NULL)
usr.bin/column/column.c
275
if ((list = calloc((maxentry = DEFNUM), sizeof(*list))) ==
usr.bin/compress/zopen.c
689
if ((zs = calloc(1, sizeof(struct s_zstate))) == NULL)
usr.bin/ctags/ctags.c
164
if ((regx = calloc(argc, sizeof(regex_t))) == NULL)
usr.bin/dc/bcode.c
238
bmachine.reg = calloc(bmachine.reg_array_size,
usr.bin/dc/bcode.c
254
bmachine.readstack = calloc(sizeof(struct source),
usr.bin/dfregress/userland.c
212
argv_copy = (char **)calloc(argc + 3, sizeof(char *));
usr.bin/diff/xmalloc.c
43
ptr = calloc(nmemb, size);
usr.bin/dsynth/build.c
829
idep_ary = calloc(count, sizeof(pkg_t *));
usr.bin/dsynth/build.c
830
depi_ary = calloc(count, sizeof(pkg_t *));
usr.bin/dsynth/bulk.c
162
bulk = calloc(1, sizeof(*bulk));
usr.bin/dsynth/dsynth.c
582
av = calloc(ac + nadd + 1, sizeof(char *));
usr.bin/dsynth/html.c
97
HtmlSlots = calloc(MaxWorkers, sizeof(char *));
usr.bin/dsynth/pkglist.c
71
pkg = calloc(1, sizeof(*pkg));
usr.bin/dsynth/pkglist.c
757
link = calloc(1, sizeof(*link));
usr.bin/dsynth/pkglist.c
765
link = calloc(1, sizeof(*link));
usr.bin/dsynth/pkglist.c
868
link = calloc(1, sizeof(*link));
usr.bin/dsynth/pkglist.c
876
link = calloc(1, sizeof(*link));
usr.bin/dsynth/repo.c
352
ary = calloc(count, sizeof(pinfo_t *));
usr.bin/dsynth/repo.c
566
item = calloc(1, sizeof(*item));
usr.bin/dsynth/subs.c
260
env = calloc(1, sizeof(*env));
usr.bin/dsynth/subs.c
494
cenv = calloc(env_basei + MAXCAC, sizeof(char *));
usr.bin/dsynth/subs.c
595
einfo = calloc(1, sizeof(*einfo));
usr.bin/du/du.c
471
ign = calloc(1, sizeof(*ign));
usr.bin/evtranalyze/evtranalyze.c
1095
if (!(ctx = calloc(1, sizeof(*ctx))))
usr.bin/evtranalyze/evtranalyze.c
1212
if (!(ctx = calloc(1, sizeof(*ctx))))
usr.bin/evtranalyze/evtranalyze.c
210
if (!(tab = calloc(1, sizeof(struct hashtab))))
usr.bin/evtranalyze/evtranalyze.c
951
if (!(td_ctx.top_threads = calloc(td_ctx.nr_top_threads,
usr.bin/evtranalyze/plotter.c
119
if (!(plot = calloc(1, sizeof(*plot))))
usr.bin/evtranalyze/plotter.c
213
if (!(pl_argv = calloc(nr_params +
usr.bin/evtranalyze/plotter.c
40
if (!(ctx = calloc(1, sizeof(*ctx))))
usr.bin/finger/finger.c
262
(used = calloc(argc, sizeof(int))) == NULL)
usr.bin/flame_graph/collect.c
58
savewindex = calloc(ncpus, sizeof(*savewindex));
usr.bin/gcore/elfcore.c
525
if ((ent = (vm_map_entry_t)calloc(1, sizeof *ent)) == NULL)
usr.bin/gzip/unpack.c
186
calloc(unpackd->treelevels, sizeof(*(unpackd->inodesin)));
usr.bin/gzip/unpack.c
188
calloc(unpackd->treelevels, sizeof(*(unpackd->symbolsin)));
usr.bin/gzip/unpack.c
190
calloc(unpackd->treelevels, (sizeof (*(unpackd->tree))));
usr.bin/gzip/unpack.c
211
unpackd->symbol_eob = unpackd->symbol = calloc(1, unpackd->symbol_size);
usr.bin/gzip/zuncompress.c
176
if ((zs = calloc(1, sizeof(struct s_zstate))) == NULL)
usr.bin/hexdump/display.c
234
if ((curp = calloc(1, blocksize)) == NULL)
usr.bin/hexdump/display.c
236
if ((savp = calloc(1, blocksize)) == NULL)
usr.bin/hexdump/parse.c
214
if ((pr = calloc(1, sizeof(PR))) == NULL)
usr.bin/hexdump/parse.c
385
if ((pr->fmt = calloc(1, strlen(fmtp) + 2)) == NULL)
usr.bin/hexdump/parse.c
79
if ((tfs = calloc(1, sizeof(FS))) == NULL)
usr.bin/hexdump/parse.c
96
if ((tfu = calloc(1, sizeof(FU))) == NULL)
usr.bin/ktrdump/ktrdump.c
308
ktr_kbuf = calloc(ncpus, sizeof(*ktr_kbuf));
usr.bin/ktrdump/ktrdump.c
309
ktr_idx = calloc(ncpus, sizeof(*ktr_idx));
usr.bin/ktrdump/ktrdump.c
336
u_int64_t *last_timestamp = calloc(ncpus, sizeof(u_int64_t));
usr.bin/localedef/charmap.c
231
if ((n = calloc(1, sizeof (*n))) == NULL) {
usr.bin/localedef/charmap.c
246
if ((n == NULL) && ((n = calloc(1, sizeof (*n))) == NULL)) {
usr.bin/localedef/collate.c
1041
if ((w = calloc(1, sizeof (*w))) == NULL) {
usr.bin/localedef/collate.c
1210
if ((st = calloc(n, sizeof (collate_subst_t))) == NULL) {
usr.bin/localedef/collate.c
1239
chain = calloc(collinfo.chain_count, sizeof (collate_chain_t));
usr.bin/localedef/collate.c
1259
large = calloc(n, sizeof (collate_large_t));
usr.bin/localedef/collate.c
499
if ((sym = calloc(1, sizeof (*sym))) == NULL) {
usr.bin/localedef/collate.c
544
if (((ud = calloc(1, sizeof (*ud))) == NULL) ||
usr.bin/localedef/collate.c
568
if ((cc = calloc(1, sizeof (*cc))) == NULL) {
usr.bin/localedef/collate.c
800
if ((e = calloc(1, sizeof (*e))) == NULL) {
usr.bin/localedef/collate.c
933
if ((s = calloc(1, sizeof (*s))) == NULL) {
usr.bin/localedef/ctype.c
176
if ((ctn = calloc(1, sizeof (*ctn))) == NULL) {
usr.bin/mail/cmd2.c
446
igp = calloc(1, sizeof(struct ignore));
usr.bin/mail/cmd2.c
447
igp->i_field = calloc((unsigned)strlen(field) + 1,
usr.bin/mail/cmd3.c
461
gh = calloc(sizeof(*gh), 1);
usr.bin/mail/cmd3.c
475
gp = calloc(sizeof(*gp), 1);
usr.bin/mail/cmd3.c
697
altnames = calloc((unsigned)c, sizeof(char *));
usr.bin/mail/cmd3.c
699
cp = calloc((unsigned)strlen(*ap) + 1, sizeof(char));
usr.bin/mail/lex.c
471
msgvec = calloc((unsigned)(sz + 1), sizeof(*msgvec));
usr.bin/mail/vars.c
55
vp = calloc(sizeof(*vp), 1);
usr.bin/ministat/ministat.c
150
ds = calloc(1, sizeof *ds);
usr.bin/ministat/ministat.c
152
ds->points = calloc(ds->lpoints, sizeof *ds->points);
usr.bin/ministat/ministat.c
164
ds->points = calloc(ds->lpoints, sizeof *ds->points);
usr.bin/ministat/ministat.c
348
pl->bar = calloc(pl->num_datasets, sizeof(char *));
usr.bin/mkstr/mkstr.c
293
hp = (struct hash *) calloc(1, sizeof *hp);
usr.bin/monitor/monitor.c
104
Elms = calloc(MaxFiles, sizeof(monitor_elm_t));
usr.bin/netstat/mbuf.c
100
mbstat = calloc(ncpus, sizeof(*mbstat));
usr.bin/netstat/mbuf.c
103
mbtypes = calloc(ncpus, mbtypeslen);
usr.bin/netstat/mbuf.c
92
if ((seen = calloc(nmbtypes, sizeof(*seen))) == NULL) {
usr.bin/newgrp/newgrp.c
272
if ((cleanenv = calloc(20, sizeof(char *))) == NULL)
usr.bin/sdiff/sdiff.c
231
if ((diffargv = calloc(argc, sizeof(char *) * 2)) == NULL)
usr.bin/sed/compile.c
322
if ((cmd->u.s = calloc(1, sizeof(struct s_subst))) == NULL)
usr.bin/sockstat/sockstat.c
115
if ((ports = calloc(65536 / INT_BIT, sizeof(int))) == NULL)
usr.bin/sockstat/sockstat.c
267
if ((sock = calloc(1, sizeof *sock)) == NULL)
usr.bin/sockstat/sockstat.c
339
if ((sock = calloc(1, sizeof *sock)) == NULL)
usr.bin/systat/altqs.c
137
p = (if_stat_t *)calloc(1, sizeof(if_stat_t));
usr.bin/systat/altqs.c
437
q = calloc(1, sizeof(*q));
usr.bin/systat/altqs.c
457
qc = calloc(1, sizeof(*qc));
usr.bin/systat/ifstat.c
161
p = (struct if_stat *)calloc(1, sizeof(struct if_stat));
usr.bin/systat/mbufs.c
161
if ((m_mbtypes = calloc(1, mbtypeslen)) == NULL) {
usr.bin/systat/mbufs.c
174
mb = (struct mbstat *)calloc(1, sizeof *mb);
usr.bin/systat/vmmeter.c
290
vmm_cur = calloc(vmm_ncpus, sizeof(*vmm_cur));
usr.bin/systat/vmmeter.c
294
vmm_prev = calloc(vmm_ncpus, sizeof(*vmm_prev));
usr.bin/systat/vmmeter.c
298
vmm_cptime_cur = calloc(vmm_ncpus, sizeof(*vmm_cptime_cur));
usr.bin/systat/vmmeter.c
302
vmm_cptime_prev = calloc(vmm_ncpus, sizeof(*vmm_cptime_prev));
usr.bin/systat/vmstat.c
974
ls->intrcnt = (long *) calloc(nintr, sizeof(long));
usr.bin/tail/read.c
140
if ((lines = calloc(off, sizeof(*lines))) == NULL)
usr.bin/top/display.c
704
screenbuf = (char *)calloc(bufsize, sizeof(char));
usr.bin/top/display.c
705
colorbuf = (char *)calloc(bufsize, sizeof(char));
usr.bin/top/display.c
811
lprocstates = (int *)calloc(num_procstates, sizeof(int));
usr.bin/top/display.c
815
lcpustates = (int *)calloc(num_cpustates, sizeof(int));
usr.bin/top/display.c
816
cpustate_columns = (int *)calloc(num_cpustates, sizeof(int));
usr.bin/top/top.c
753
gstate = (globalstate *)calloc(1, sizeof(globalstate));
usr.bin/truss/main.c
139
trussinfo = (struct trussinfo *)calloc(1, sizeof(struct trussinfo));
usr.bin/truss/x86_64-fbsd.c
196
fsc.s_args = calloc(1+fsc.nargs, sizeof(char*));
usr.bin/vmstat/vmstat.c
921
intrcnt = calloc(nintr, sizeof(*intrcnt));
usr.bin/w/w.c
222
if ((ep = calloc(1, sizeof(struct entry))) == NULL)
usr.bin/who/utmpentry.c
147
if ((ep = calloc(1, sizeof(struct utmpentry))) == NULL) {
usr.bin/window/wwopen.c
51
w = (struct ww *)calloc(1, sizeof (struct ww));
usr.bin/xargs/strnsubst.c
54
s2 = calloc(1, maxsize);
usr.bin/xstr/xstr.c
353
if ((hp = (struct hash *) calloc(1, sizeof (*hp))) == NULL)
usr.sbin/autofs/automountd.c
88
newoptions = calloc(1, strlen(*optionsp) + 1);
usr.sbin/autofs/autounmountd.c
78
af = calloc(1, sizeof(*af));
usr.sbin/autofs/common.c
151
n = calloc(1, sizeof(*n));
usr.sbin/autofs/common.c
169
n = calloc(1, sizeof(*n));
usr.sbin/autofs/common.c
200
n = calloc(1, sizeof(*n));
usr.sbin/autofs/defined.c
212
d = calloc(1, sizeof(*d));
usr.sbin/cron/lib/entry.c
120
e = (entry *) calloc(sizeof(entry), sizeof(char));
usr.sbin/fstyp/hammer2.c
482
p = calloc(1, siz);
usr.sbin/ftp-proxy/ftp-proxy.c
566
s = calloc(1, sizeof(struct session));
usr.sbin/lpr/pac/pac.c
251
base = (struct hent **) calloc(sizeof hp, hcount);
usr.sbin/lpr/pac/pac.c
329
hp = (struct hent *) calloc(sizeof *hp, (size_t)1);
usr.sbin/lpr/pac/pac.c
330
hp->h_name = (char *) calloc(sizeof(char), strlen(name)+1);
usr.sbin/lpr/pac/pac.c
432
sumfile = (char *) calloc(sizeof(char), strlen(acctfile)+5);
usr.sbin/mfiutil/mfi_config.c
313
info->drives = calloc(count, sizeof(struct mfi_pd_info));
usr.sbin/mfiutil/mfi_config.c
661
arrays = calloc(narrays, sizeof(*arrays));
usr.sbin/mfiutil/mfi_config.c
702
state.arrays = calloc(config->array_count, sizeof(int));
usr.sbin/mfiutil/mfi_config.c
719
state.volumes = calloc(config->log_drv_count, sizeof(int));
usr.sbin/mfiutil/mfi_config.c
760
config = calloc(1, config_size);
usr.sbin/mpsutil/mps_cmd.c
488
*firmware = calloc(size, sizeof(unsigned char));
usr.sbin/mptutil/mpt_cam.c
152
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
157
ccb.cdm.patterns = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
360
inq_buf = calloc(1, sizeof(*inq_buf));
usr.sbin/mptutil/mpt_cam.c
420
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
425
ccb.cdm.patterns = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
487
disks = calloc(ccb.cdm.num_matches, sizeof(*disks));
usr.sbin/mptutil/mpt_cam.c
78
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
83
ccb.cdm.patterns = calloc(1, bufsize);
usr.sbin/mptutil/mpt_config.c
162
config_page = calloc(1, sizeof(CONFIG_PAGE_RAID_PHYS_DISK_0));
usr.sbin/mptutil/mpt_config.c
369
info->drives = calloc(count, sizeof(struct drive_info));
usr.sbin/mptutil/mpt_config.c
492
vol = calloc(1, page_size);
usr.sbin/mptutil/mpt_config.c
679
info = calloc(1, sizeof(*info));
usr.sbin/mtree/spec.c
195
if ((centry = calloc(1, sizeof(NODE) + strlen(p))) == NULL)
usr.sbin/newsyslog/newsyslog.c
2036
args = calloc(ARGS_NUM, sizeof(*args));
usr.sbin/nscd/agent.c
61
retval = (struct agent_table *)calloc(1, sizeof(struct agent_table));
usr.sbin/nscd/agents/group.c
141
name = (char *)calloc(1, size);
usr.sbin/nscd/agents/group.c
225
retval = (struct common_agent *)calloc(1, sizeof(struct common_agent));
usr.sbin/nscd/agents/group.c
244
retval = (struct multipart_agent *)calloc(1,
usr.sbin/nscd/agents/passwd.c
149
login = (char *)calloc(1, size);
usr.sbin/nscd/agents/passwd.c
232
retval = (struct common_agent *)calloc(1, sizeof(struct common_agent));
usr.sbin/nscd/agents/passwd.c
251
retval = (struct multipart_agent *)calloc(1,
usr.sbin/nscd/agents/services.c
146
name = (char *)calloc(1, size + 1);
usr.sbin/nscd/agents/services.c
169
proto = (char *)calloc(1, size + 1);
usr.sbin/nscd/agents/services.c
246
retval = (struct common_agent *)calloc(1, sizeof(struct common_agent));
usr.sbin/nscd/agents/services.c
265
retval = (struct multipart_agent *)calloc(1,
usr.sbin/nscd/cachelib.c
1051
retval = (struct cache_mp_read_session_ *)calloc(1,
usr.sbin/nscd/cachelib.c
480
retval = (struct cache_ *)calloc(1, sizeof(struct cache_));
usr.sbin/nscd/cachelib.c
486
retval->entries = (struct cache_entry_ **)calloc(1,
usr.sbin/nscd/cachelib.c
539
new_entries = (struct cache_entry_ **)calloc(1,
usr.sbin/nscd/cachelib.c
555
new_common_entry = (struct cache_common_entry_ *)calloc(1,
usr.sbin/nscd/cachelib.c
564
new_common_entry->common_params.entry_name = (char *)calloc(1,
usr.sbin/nscd/cachelib.c
581
new_common_entry->policies = (struct cache_policy_ **)calloc(1,
usr.sbin/nscd/cachelib.c
609
new_mp_entry = (struct cache_mp_entry_ *)calloc(1,
usr.sbin/nscd/cachelib.c
618
new_mp_entry->mp_params.entry_name = (char *)calloc(1,
usr.sbin/nscd/cachelib.c
913
retval = (struct cache_mp_write_session_ *)calloc(1,
usr.sbin/nscd/cachelib.c
948
new_item = (struct cache_mp_data_item_ *)calloc(1,
usr.sbin/nscd/cacheplcs.c
189
retval = (struct cache_queue_policy_ *)calloc(1,
usr.sbin/nscd/cacheplcs.c
329
retval = (struct cache_lfu_policy_item_ *)calloc(1,
usr.sbin/nscd/cacheplcs.c
533
retval = (struct cache_lfu_policy_ *)calloc(1,
usr.sbin/nscd/cacheplcs.c
83
retval = (struct cache_queue_policy_item_ *)calloc(1,
usr.sbin/nscd/config.c
120
retval = (struct configuration_entry *)calloc(1,
usr.sbin/nscd/config.c
162
retval->name = (char *)calloc(1, size + 1);
usr.sbin/nscd/config.c
267
new_entries = (struct configuration_entry **)calloc(1,
usr.sbin/nscd/config.c
511
retval = (struct configuration *)calloc(1, sizeof(struct configuration));
usr.sbin/nscd/config.c
515
retval->entries = (struct configuration_entry **)calloc(1,
usr.sbin/nscd/config.c
538
config->socket_path = (char *)calloc(1, len + 1);
usr.sbin/nscd/config.c
543
config->pidfile_path = (char *)calloc(1, len + 1);
usr.sbin/nscd/hashtable.h
78
(table)->entries = (void *)calloc(1, \
usr.sbin/nscd/mp_rs_query.c
116
c_mp_rs_request->entry = (char *)calloc(1,
usr.sbin/nscd/mp_ws_query.c
122
c_mp_ws_request->entry = (char *)calloc(1,
usr.sbin/nscd/mp_ws_query.c
375
write_request->data = (char *)calloc(1, write_request->data_size);
usr.sbin/nscd/nscd.c
164
retval = (struct runtime_env *)calloc(1, sizeof(struct runtime_env));
usr.sbin/nscd/nscd.c
408
qstate->io_buffer = (char *)calloc(1,
usr.sbin/nscd/nscd.c
828
threads = (pthread_t *)calloc(1, sizeof(pthread_t) *
usr.sbin/nscd/nscdcli.c
203
retval = calloc(1, sizeof(struct nscd_connection_));
usr.sbin/nscd/query.c
1219
retval = (struct query_state *)calloc(1, sizeof(struct query_state));
usr.sbin/nscd/query.c
334
write_request->entry = (char *)calloc(1,
usr.sbin/nscd/query.c
338
write_request->cache_key = (char *)calloc(1,
usr.sbin/nscd/query.c
346
write_request->data = (char *)calloc(1,
usr.sbin/nscd/query.c
607
read_request->entry = (char *)calloc(1,
usr.sbin/nscd/query.c
611
read_request->cache_key = (char *)calloc(1,
usr.sbin/nscd/query.c
929
transform_request->entry = (char *)calloc(1,
usr.sbin/pfctl/parse.y
1007
loadanchor = calloc(1, sizeof(struct loadanchors));
usr.sbin/pfctl/parse.y
1214
j = calloc(1, sizeof(struct node_if));
usr.sbin/pfctl/parse.y
1225
h = calloc(1, sizeof(*h));
usr.sbin/pfctl/parse.y
1428
if (!(ti = calloc(1, sizeof(*ti))))
usr.sbin/pfctl/parse.y
1438
if (!(ti = calloc(1, sizeof(*ti))))
usr.sbin/pfctl/parse.y
1880
$$ = calloc(1, sizeof(struct node_queue));
usr.sbin/pfctl/parse.y
2634
$$ = calloc(1, sizeof(struct node_if));
usr.sbin/pfctl/parse.y
2681
$$ = calloc(1, sizeof(struct node_proto));
usr.sbin/pfctl/parse.y
2730
$$ = calloc(1, sizeof(struct node_os));
usr.sbin/pfctl/parse.y
2816
$$ = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/parse.y
2825
$$ = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/parse.y
2924
$$ = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/parse.y
2937
$$ = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/parse.y
3005
$$ = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/parse.y
3039
$$ = calloc(1, sizeof(struct node_port));
usr.sbin/pfctl/parse.y
3057
$$ = calloc(1, sizeof(struct node_port));
usr.sbin/pfctl/parse.y
3072
$$ = calloc(1, sizeof(struct node_port));
usr.sbin/pfctl/parse.y
3114
$$ = calloc(1, sizeof(struct node_uid));
usr.sbin/pfctl/parse.y
3129
$$ = calloc(1, sizeof(struct node_uid));
usr.sbin/pfctl/parse.y
3144
$$ = calloc(1, sizeof(struct node_uid));
usr.sbin/pfctl/parse.y
3192
$$ = calloc(1, sizeof(struct node_gid));
usr.sbin/pfctl/parse.y
3207
$$ = calloc(1, sizeof(struct node_gid));
usr.sbin/pfctl/parse.y
3222
$$ = calloc(1, sizeof(struct node_gid));
usr.sbin/pfctl/parse.y
3298
$$ = calloc(1, sizeof(struct node_icmp));
usr.sbin/pfctl/parse.y
3317
$$ = calloc(1, sizeof(struct node_icmp));
usr.sbin/pfctl/parse.y
3331
$$ = calloc(1, sizeof(struct node_icmp));
usr.sbin/pfctl/parse.y
3343
$$ = calloc(1, sizeof(struct node_icmp));
usr.sbin/pfctl/parse.y
3362
$$ = calloc(1, sizeof(struct node_icmp));
usr.sbin/pfctl/parse.y
3376
$$ = calloc(1, sizeof(struct node_icmp));
usr.sbin/pfctl/parse.y
3510
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3519
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3531
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3544
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3558
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3573
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3590
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3599
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3608
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3617
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3626
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3635
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3644
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3672
$$ = calloc(1, sizeof(struct node_state_opt));
usr.sbin/pfctl/parse.y
3729
$$ = calloc(1, sizeof(struct redirection));
usr.sbin/pfctl/parse.y
3736
$$ = calloc(1, sizeof(struct redirection));
usr.sbin/pfctl/parse.y
3746
$$ = calloc(1, sizeof(struct pf_poolhashkey));
usr.sbin/pfctl/parse.y
3763
$$ = calloc(1, sizeof(struct pf_poolhashkey));
usr.sbin/pfctl/parse.y
3778
$$ = calloc(1, sizeof(struct pf_poolhashkey));
usr.sbin/pfctl/parse.y
3855
$$ = calloc(1, sizeof(struct redirection));
usr.sbin/pfctl/parse.y
3862
$$ = calloc(1, sizeof(struct redirection));
usr.sbin/pfctl/parse.y
4215
pa = calloc(1, sizeof(struct pf_pooladdr));
usr.sbin/pfctl/parse.y
4245
$$ = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/parse.y
4621
r = calloc(1, sizeof(T)); \
usr.sbin/pfctl/parse.y
4641
if ((tmp = calloc(1, len)) == NULL)
usr.sbin/pfctl/parse.y
4875
n = calloc(1, sizeof(struct node_queue));
usr.sbin/pfctl/parse.y
4990
n = calloc(1,
usr.sbin/pfctl/parse.y
5193
pa = calloc(1, sizeof(struct pf_pooladdr));
usr.sbin/pfctl/parse.y
5719
if ((nfile = calloc(1, sizeof(struct file))) == NULL ||
usr.sbin/pfctl/parse.y
5806
struct node_state_opt *opt1 = calloc(1, sizeof(*opt1));
usr.sbin/pfctl/parse.y
5807
struct node_state_opt *opt2 = calloc(1, sizeof(*opt2));
usr.sbin/pfctl/parse.y
5866
if ((sym = calloc(1, sizeof(*sym))) == NULL)
usr.sbin/pfctl/pfctl.c
1189
if ((r->anchor = calloc(1, sizeof(*r->anchor))) == NULL)
usr.sbin/pfctl/pfctl.c
1208
if ((rule = calloc(1, sizeof(*rule))) == NULL)
usr.sbin/pfctl/pfctl.c
1413
if ((path = calloc(1, MAXPATHLEN)) == NULL)
usr.sbin/pfctl/pfctl.c
1424
if ((pf.anchor = calloc(1, sizeof(*pf.anchor))) == NULL)
usr.sbin/pfctl/pfctl.c
2149
if ((path = calloc(1, MAXPATHLEN)) == NULL)
usr.sbin/pfctl/pfctl.c
728
pa = calloc(1, sizeof(struct pf_pooladdr));
usr.sbin/pfctl/pfctl_altq.c
1144
if ((new = calloc(1, sizeof(struct segment))) == NULL)
usr.sbin/pfctl/pfctl_optimize.c
1226
if ((*tbl = calloc(1, sizeof(**tbl))) == NULL ||
usr.sbin/pfctl/pfctl_optimize.c
1227
((*tbl)->pt_buf = calloc(1, sizeof(*(*tbl)->pt_buf))) ==
usr.sbin/pfctl/pfctl_optimize.c
1256
if ((ti = calloc(1, sizeof(*ti))) == NULL)
usr.sbin/pfctl/pfctl_optimize.c
1341
if ((block = calloc(1, sizeof(*block))) == NULL) {
usr.sbin/pfctl/pfctl_optimize.c
287
if ((por = calloc(1, sizeof(*por))) == NULL)
usr.sbin/pfctl/pfctl_optimize.c
322
if ((r = calloc(1, sizeof(*r))) == NULL)
usr.sbin/pfctl/pfctl_optimize.c
657
if ((skiplist = calloc(1, sizeof(*skiplist))) ==
usr.sbin/pfctl/pfctl_optimize.c
758
if ((newblock = calloc(1, sizeof(*newblock)))
usr.sbin/pfctl/pfctl_optimize.c
899
if ((por = calloc(1, sizeof(*por))) == NULL) {
usr.sbin/pfctl/pfctl_osfp.c
712
nm_entry = calloc(1, sizeof(*nm_entry));
usr.sbin/pfctl/pfctl_parser.c
1154
n = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/pfctl_parser.c
1241
if ((n = calloc(1, sizeof(*n))) == NULL)
usr.sbin/pfctl/pfctl_parser.c
1277
if ((ifgr.ifgr_groups = calloc(1, len)) == NULL)
usr.sbin/pfctl/pfctl_parser.c
1343
n = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/pfctl_parser.c
1517
h = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/pfctl_parser.c
1541
h = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/pfctl_parser.c
1599
n = calloc(1, sizeof(struct node_host));
usr.sbin/pfctl/pfctl_qstats.c
182
node = calloc(1, sizeof(struct pf_altq_node));
usr.sbin/pfctl/pfctl_radix.c
472
b->pfrb_caddr = calloc(bs, minsize);
usr.sbin/powerd/powerd.c
457
dom = calloc(1, sizeof(*dom));
usr.sbin/ppp/mppe.c
651
if ((mp = calloc(1, sizeof *mp)) != NULL) {
usr.sbin/ppp/throughput.c
53
calloc(period, sizeof *t->in.SampleOctets);
usr.sbin/ppp/throughput.c
56
calloc(period, sizeof *t->out.SampleOctets);
usr.sbin/quot/quot.c
204
(struct user *)calloc(nusers,sizeof(struct user))))
usr.sbin/quot/quot.c
223
if (!(users = (struct user *)calloc(nusers,sizeof(struct user))))
usr.sbin/repquota/repquota.c
333
if ((fup = (struct fileusage *)calloc(1, sizeof(*fup) + len)) == NULL)
usr.sbin/rpcbind/rpcb_svc_com.c
1073
if ((np = calloc(1, sizeof(struct netbuf))) == NULL)
usr.sbin/sdpd/provider.c
59
provider_p sd = calloc(1, sizeof(*sd));
usr.sbin/sdpd/provider.c
60
provider_p bgd = calloc(1, sizeof(*bgd));
usr.sbin/sdpd/provider.c
95
provider_p provider = calloc(1, sizeof(*provider));
usr.sbin/sdpd/server.c
203
srv->req = (uint8_t *) calloc(srv->imtu, sizeof(srv->req[0]));
usr.sbin/sdpd/server.c
212
srv->fdidx = (fd_idx_p) calloc(FD_SETSIZE, sizeof(srv->fdidx[0]));
usr.sbin/sdpd/server.c
396
rsp = (uint8_t *) calloc(L2CAP_MTU_MAXIMUM, sizeof(rsp[0]));
usr.sbin/sensorsd/sensorsd.c
200
if ((sdlim = calloc(1, sizeof(struct sdlim_t))) == NULL)
usr.sbin/sensorsd/sensorsd.c
220
if ((limit = calloc(1, sizeof(struct limits_t))) ==
usr.sbin/syslogd/syslogd.c
1590
*nextp = (struct filed *)calloc(1, sizeof(*f));
usr.sbin/syslogd/syslogd.c
1596
(*nextp)->f_next = (struct filed *)calloc(1, sizeof(*f));
usr.sbin/syslogd/syslogd.c
1674
f = (struct filed *)calloc(1, sizeof(*f));
usr.sbin/syslogd/syslogd.c
592
fdsr = (fd_set *)calloc(howmany(fdsrmax+1, NFDBITS),
usr.sbin/tzsetup/tzsetup.c
140
listitems = calloc(item_no + 1, sizeof(DIALOG_LISTITEM));
usr.sbin/uefisign/child.c
235
x = calloc(1, sizeof(*x));
usr.sbin/uefisign/pe.c
527
pc = calloc(1, pc_len);
usr.sbin/uefisign/uefisign.c
108
buf = calloc(1, len);
usr.sbin/uefisign/uefisign.c
208
tmp = buf = calloc(1, len);
usr.sbin/vnconfig/vnconfig.c
225
vndisks = calloc(1, sizeof(struct vndisk));
usr.sbin/ypbind/yp_ping.c
226
reqs = calloc(1, sizeof(struct ping_req *) * cnt);
usr.sbin/ypbind/yp_ping.c
238
reqs[i] = calloc(1, sizeof(struct ping_req));