Home
last modified time | relevance | path

Searched refs:memset (Results 1 – 25 of 4581) sorted by relevance

12345678910>>...184

/netbsd/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_read_format_rar.c1580 memset(buff, 0, sizeof(buff)); in test_read_format_rar_multivolume_uncompressed_files_helper()
1588 memset(buff, 0, sizeof(buff)); in test_read_format_rar_multivolume_uncompressed_files_helper()
1596 memset(buff, 0, sizeof(buff)); in test_read_format_rar_multivolume_uncompressed_files_helper()
1605 memset(buff, 0, sizeof(buff)); in test_read_format_rar_multivolume_uncompressed_files_helper()
1611 memset(buff, 0, sizeof(buff)); in test_read_format_rar_multivolume_uncompressed_files_helper()
1618 memset(buff, 0, sizeof(buff)); in test_read_format_rar_multivolume_uncompressed_files_helper()
1680 memset(buff, 0, sizeof(buff)); in DEFINE_TEST()
1689 memset(buff, 0, sizeof(buff)); in DEFINE_TEST()
1698 memset(buff, 0, sizeof(buff)); in DEFINE_TEST()
1706 memset(buff, 0, sizeof(buff)); in DEFINE_TEST()
[all …]
/netbsd/external/bsd/ntp/dist/lib/isc/
H A Dhmacsha.c220 memset(ipad, IPAD, sizeof(ipad)); in isc_hmacsha1_init()
229 memset(ctx, 0, sizeof(*ctx)); in isc_hmacsha1_invalidate()
255 memset(opad, OPAD, sizeof(opad)); in isc_hmacsha1_sign()
288 memset(ipad, IPAD, sizeof(ipad)); in isc_hmacsha224_init()
296 memset(ctx, 0, sizeof(*ctx)); in isc_hmacsha224_invalidate()
322 memset(opad, OPAD, sizeof(opad)); in isc_hmacsha224_sign()
354 memset(ipad, IPAD, sizeof(ipad)); in isc_hmacsha256_init()
362 memset(ctx, 0, sizeof(*ctx)); in isc_hmacsha256_invalidate()
388 memset(opad, OPAD, sizeof(opad)); in isc_hmacsha256_sign()
428 memset(ctx, 0, sizeof(*ctx)); in isc_hmacsha384_invalidate()
[all …]
/netbsd/external/bsd/unbound/dist/testcode/
H A Dunitregional.c83 memset(a, 0x42, 1); in corner_cases()
89 memset(a, 0x42, 2); in corner_cases()
95 memset(a, 0x42, 128); in corner_cases()
103 memset(a, 0x42, 10240); in corner_cases()
112 memset(a, 0x42, 1024); in corner_cases()
128 memset(a, 0x42, 864); in corner_cases()
140 memset(a, 0x42, 8192); in corner_cases()
146 memset(a, 0x42, 32); in corner_cases()
154 memset(a, 0x42, 1320); in corner_cases()
168 memset(a, 0x42, 1480); in corner_cases()
[all …]
/netbsd/external/mpl/bind/dist/lib/isc/tests/
H A Dtime_test.c171 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601_test()
182 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601_test()
187 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601_test()
207 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601ms_test()
219 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601ms_test()
224 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601ms_test()
244 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601us_test()
256 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601us_test()
261 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601us_test()
281 memset(buf, 'X', sizeof(buf)); in isc_time_formatISO8601L_test()
[all …]
/netbsd/external/bsd/am-utils/dist/amq/
H A Damq_clnt.c57 memset((char *) &res, 0, sizeof(res)); in amqproc_null_1()
73 memset((char *) &res, 0, sizeof(res)); in amqproc_mnttree_1()
89 memset((char *) &res, 0, sizeof(res)); in amqproc_umnt_1()
106 memset((char *) &res, 0, sizeof(res)); in amqproc_sync_umnt_1()
122 memset((char *) &res, 0, sizeof(res)); in amqproc_stats_1()
139 memset((char *) &res, 0, sizeof(res)); in amqproc_export_1()
155 memset((char *) &res, 0, sizeof(res)); in amqproc_setopt_1()
170 memset((char *) &res, 0, sizeof(res)); in amqproc_getmntfs_1()
184 memset((char *) &res, 0, sizeof(res)); in amqproc_getmapinfo_1()
199 memset((char *) &res, 0, sizeof(res)); in amqproc_mount_1()
[all …]
/netbsd/sys/external/isc/libsodium/dist/test/default/
H A Dsodium_utils.c88 memset(buf_add, 0, bin_len); in main()
111 memset(nonce, 0xfe, 24U); in main()
112 memset(nonce, 0xff, 6U); in main()
116 memset(nonce, 0xfe, 24U); in main()
117 memset(nonce, 0xff, 10U); in main()
121 memset(nonce, 0xff, 22U); in main()
127 memset(nonce, 0xfe, 24U); in main()
128 memset(nonce, 0xff, 6U); in main()
133 memset(nonce, 0xfe, 24U); in main()
134 memset(nonce, 0xff, 10U); in main()
[all …]
/netbsd/usr.sbin/rpc.lockd/
H A Dtest.c28 (void)memset(&res, 0, sizeof(res)); in nlm_test_1()
43 (void)memset(&res, 0, sizeof(res)); in nlm_lock_1()
61 (void)memset(&res, 0, sizeof(res)); in nlm_cancel_1()
77 (void)memset(&res, 0, sizeof(res)); in nlm_unlock_1()
93 (void)memset(&res, 0, sizeof(res)); in nlm_granted_1()
109 (void)memset(&res, 0, sizeof(res)); in nlm_test_msg_1()
125 (void)memset(&res, 0, sizeof(res)); in nlm_lock_msg_1()
142 (void)memset(&res, 0, sizeof(res)); in nlm_cancel_msg_1()
158 (void)memset(&res, 0, sizeof(res)); in nlm_unlock_msg_1()
174 (void)memset(&res, 0, sizeof(res)); in nlm_granted_msg_1()
[all …]
/netbsd/external/mpl/dhcp/dist/server/tests/
H A Dload_bal_unittest.c63 memset(&packet, 0, sizeof(struct packet)); in ATF_TC_BODY()
64 memset(&raw, 0, sizeof(struct dhcp_packet)); in ATF_TC_BODY()
69 memset(hba, 0xFF, 256); in ATF_TC_BODY()
72 memset(&pstate, 0, sizeof(dhcp_failover_state_t)); in ATF_TC_BODY()
78 memset(&sstate, 0, sizeof(dhcp_failover_state_t)); in ATF_TC_BODY()
146 memset(&packet, 0, sizeof(struct packet)); in ATF_TC_BODY()
147 memset(&raw, 0, sizeof(struct dhcp_packet)); in ATF_TC_BODY()
152 memset(hba, 0xFF, 256); in ATF_TC_BODY()
155 memset(&pstate, 0, sizeof(dhcp_failover_state_t)); in ATF_TC_BODY()
161 memset(&sstate, 0, sizeof(dhcp_failover_state_t)); in ATF_TC_BODY()
/netbsd/sys/compat/netbsd32/
H A Dnetbsd32_conv.h61 memset(tv32, 0, sizeof(*tv32)); in netbsd32_from_timeval50()
71 memset(tv32, 0, sizeof(*tv32)); in netbsd32_from_timeval()
81 memset(tv, 0, sizeof(*tv)); in netbsd32_to_timeval50()
91 memset(tv, 0, sizeof(*tv)); in netbsd32_to_timeval()
125 memset(itv, 0, sizeof(*itv)); in netbsd32_to_itimerval50()
135 memset(itv, 0, sizeof(*itv)); in netbsd32_to_itimerval()
145 memset(p, 0, sizeof(*p)); in netbsd32_to_timespec50()
155 memset(p, 0, sizeof(*p)); in netbsd32_to_timespec()
211 memset(rup, 0, sizeof(*rup)); in netbsd32_to_rusage()
594 memset(mp, 0, sizeof(*mp)); in netbsd32_to_msg()
[all …]
/netbsd/tests/lib/libc/sys/
H A Dt_stat.c64 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY()
65 (void)memset(&sb, 0, sizeof(struct stat)); in ATF_TC_BODY()
124 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY()
166 (void)memset(buf, 'x', sizeof(buf)); in ATF_TC_BODY()
210 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY()
211 (void)memset(&sb, 0, sizeof(struct stat)); in ATF_TC_BODY()
251 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY()
252 (void)memset(&sb, 0, sizeof(struct stat)); in ATF_TC_BODY()
335 (void)memset(&st, 0, sizeof(struct stat)); in ATF_TC_BODY()
377 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY()
[all …]
/netbsd/tests/crypto/opencrypto/
H A Dh_ioctl.c105 memset(cs, 0, sizeof(*cs)); in test_ngsession()
110 memset(&sg, 0, sizeof(sg)); in test_ngsession()
133 memset(&sf, 0, sizeof(sf)); in test_nfsession()
159 memset(cs, 0, sizeof(*cs)); in test_ncryptm()
165 memset(&mop, 0, sizeof(mop)); in test_ncryptm()
192 memset(&cs, 0, sizeof(cs)); in test_ncryptretm()
214 memset(&mop, 0, sizeof(mop)); in test_ncryptretm()
226 memset(cr, 0, sizeof(*cr)); in test_ncryptretm()
267 memset(&cr, 0, sizeof(cr)); in test_ncryptret_noent()
293 memset(&cs, 0, sizeof(cs)); in test_ncryptret_ent()
[all …]
/netbsd/usr.sbin/eeprom/
H A Dprephandlers.c103 memset(&nvio_buf[0], 0, sizeof(nvio_buf)); in prep_handler()
104 memset(&nvio, 0, sizeof(nvio)); in prep_handler()
192 memset(&nvio1, 0, sizeof(nvio1)); in prep_dump()
201 memset(&nvio1, 0, sizeof(nvio1)); in prep_dump()
202 memset(buf1, 0, sizeof(buf1)); in prep_dump()
203 memset(buf2, 0, sizeof(buf2)); in prep_dump()
204 memset(buf3, 0, sizeof(buf3)); in prep_dump()
205 memset(buf4, 0, sizeof(buf4)); in prep_dump()
227 memset(nvio2.pnv_buf, 0, sizeof(buf4)); in prep_dump()
237 memset(nvio1.pnv_name, 0, sizeof(buf1)); in prep_dump()
[all …]
/netbsd/tests/lib/libc/string/
H A Dt_memset.c57 (void)memset(buf, 0, sizeof(buf)); in ATF_TC_BODY()
62 (void)memset(buf, 'x', sizeof(buf)); in ATF_TC_BODY()
78 ATF_REQUIRE_EQ(memset(b, 0, 0), b); in ATF_TC_BODY()
79 ATF_REQUIRE_EQ(memset(c, 2, sizeof(c)), c); in ATF_TC_BODY()
99 memset(buf, 0, page); in ATF_TC_BODY()
104 memset(buf, 'x', page); in ATF_TC_BODY()
129 (void)memset(buf, i, page); in ATF_TC_BODY()
149 (void)memset(buf, 'x', sizeof(buf)); in ATF_TC_BODY()
154 (void)memset(buf+sizeof(buf)/2, 0, zero); in ATF_TC_BODY()
171 (void)memset(buf, 'x', sizeof(buf)); in ATF_TC_BODY()
[all …]
/netbsd/tests/net/can/
H A Dt_canfilter.c97 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
115 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
126 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
144 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
155 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
175 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
228 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
248 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
298 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
316 memset(&cf_send, 0, sizeof(cf_send)); in ATF_TC_BODY()
[all …]
/netbsd/sys/compat/sys/
H A Dtime_types.h78 memset(ts, 0, sizeof(*ts)); in timeval50_to_timeval()
86 memset(ts50, 0, sizeof(*ts50)); in timeval_to_timeval50()
94 memset(ts, 0, sizeof(*ts)); in timespec50_to_timespec()
102 memset(ts50, 0, sizeof(*ts50)); in timespec_to_timespec50()
110 memset(ts, 0, sizeof(*ts)); in itimerval50_to_itimerval()
118 memset(ts50, 0, sizeof(*ts50)); in itimerval_to_itimerval50()
127 memset(ts, 0, sizeof(*ts)); in itimerspec50_to_itimerspec()
136 memset(ts50, 0, sizeof(*ts50)); in itimerspec_to_itimerspec50()
/netbsd/distrib/cdrom/macppc_mkboothfs/
H A Dmkboothfs.c77 memset(&dm, 0, sizeof dm); in main()
86 memset(buf, 0, BSIZE); in main()
93 memset(&pme, 0, sizeof(pme)); in main()
107 memset(buf, 0, BSIZE); in main()
117 memset(buf, 0, BSIZE); in main()
124 memset(buf, 0, BSIZE); in main()
130 memset(buf, 0, MACPPC_BOOT_BLOCK_MAX_SIZE); in main()
136 memset(buf, 0, BSIZE * 2); in main()
/netbsd/sys/external/isc/libsodium/dist/src/libsodium/crypto_generichash/blake2b/ref/
H A Dblake2b-ref.c139 memset(P->reserved, 0, sizeof(P->reserved)); in blake2b_init()
140 memset(P->salt, 0, sizeof(P->salt)); in blake2b_init()
141 memset(P->personal, 0, sizeof(P->personal)); in blake2b_init()
162 memset(P->reserved, 0, sizeof(P->reserved)); in blake2b_init_salt_personal()
166 memset(P->salt, 0, sizeof(P->salt)); in blake2b_init_salt_personal()
196 memset(P->reserved, 0, sizeof(P->reserved)); in blake2b_init_key()
197 memset(P->salt, 0, sizeof(P->salt)); in blake2b_init_key()
205 memset(block, 0, BLAKE2B_BLOCKBYTES); in blake2b_init_key()
238 memset(P->salt, 0, sizeof(P->salt)); in blake2b_init_key_salt_personal()
251 memset(block, 0, BLAKE2B_BLOCKBYTES); in blake2b_init_key_salt_personal()
[all …]
/netbsd/sys/external/bsd/drm2/dist/drm/amd/display/modules/hdcp/
H A Damdgpu_hdcp.c209 memset(&hdcp->state, 0, sizeof(struct mod_hdcp_state)); in reset_authentication()
230 memset(&hdcp->state, 0, sizeof(struct mod_hdcp_state)); in reset_authentication()
257 memset(output, 0, sizeof(struct mod_hdcp_output)); in reset_connection()
267 memset(&hdcp->connection, 0, sizeof(hdcp->connection)); in reset_connection()
286 memset(hdcp, 0, sizeof(struct mod_hdcp)); in mod_hdcp_setup()
287 memset(&output, 0, sizeof(output)); in mod_hdcp_setup()
302 memset(&output, 0, sizeof(output)); in mod_hdcp_teardown()
305 memset(hdcp, 0, sizeof(struct mod_hdcp)); in mod_hdcp_teardown()
319 memset(output, 0, sizeof(struct mod_hdcp_output)); in mod_hdcp_add_display()
373 memset(output, 0, sizeof(struct mod_hdcp_output)); in mod_hdcp_remove_display()
[all …]
/netbsd/sys/arch/hp300/stand/inst/
H A Dinst.c128 memset(line, 0, sizeof(line)); in main()
184 memset(block, 0, sizeof(block)); in dsklabel()
196 memset(line, 0, sizeof(line)); in dsklabel()
206 memset(zap, 0, sizeof(zap)); in dsklabel()
256 memset(line, 0, sizeof(line)); \
510 memset(diskname, 0, len); in opendisk()
567 memset(line, 0, sizeof(line)); in miniroot()
577 memset(line, 0, sizeof(line)); in miniroot()
608 memset(line, 0, sizeof(line)); in miniroot()
618 memset(line, 0, sizeof(line)); in miniroot()
[all …]
/netbsd/crypto/external/bsd/heimdal/dist/lib/ntlm/
H A Dtest_ntlm.c62 memset(&type1, 0, sizeof(type1)); in test_parse()
74 memset(&type1, 0, sizeof(type1)); in test_parse()
96 memset(&type2, 0, sizeof(type2)); in test_parse()
110 memset(&type2, 0, sizeof(type2)); in test_parse()
126 memset(&type3, 0, sizeof(type3)); in test_parse()
149 memset(&type3, 0, sizeof(type3)); in test_parse()
175 memset(&type2, 0, sizeof(type2)); in test_parse()
189 memset(&type2, 0, sizeof(type2)); in test_parse()
364 memset(&ti, 0, sizeof(ti)); in test_ntlmv2()
404 memset(&ti, 0, sizeof(ti)); in test_targetinfo()
[all …]
/netbsd/sys/rump/librump/rumpkern/
H A Drump_syscalls.c75 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_read()
105 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_write()
135 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_open()
165 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_close()
193 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_link()
222 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_unlink()
250 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_chdir()
278 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_fchdir()
307 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_mknod()
338 memset(&callarg, 0, sizeof(callarg)); in rump___sysimpl_chmod()
[all …]
/netbsd/external/bsd/nvi/dist/ipc/
H A Dipc_method.c61 memset(ipvi, 0, sizeof(IPVI)); in vi_create()
83 memset(ipviwin, 0, sizeof(IPVIWIN)); in vi_new_window()
98 memset(&mh, 0, sizeof(mh)); in vi_new_window()
174 memset(ipvi, 6, sizeof(IPVI)); in vi_close()
181 memset(ipviwin, 6, sizeof(IPVIWIN)); in vi_win_close()
192 memset(&ipb, 0, sizeof(ipb)); in vi_send_()
202 memset(&ipb, 0, sizeof(ipb)); in vi_send_1()
213 memset(&ipb, 0, sizeof(ipb)); in vi_send_12()
225 memset(&ipb, 0, sizeof(ipb)); in vi_send_a()
239 memset(&ipb, 0, sizeof(ipb));
[all …]
/netbsd/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Dhmac.c44 memset(ctx, 0, sizeof(*ctx)); in HMAC_CTX_init()
51 memset(ctx->buf, 0, ctx->key_length); in HMAC_CTX_cleanup()
56 memset(ctx->opad, 0, EVP_MD_block_size(ctx->md)); in HMAC_CTX_cleanup()
61 memset(ctx->ipad, 0, EVP_MD_block_size(ctx->md)); in HMAC_CTX_cleanup()
90 memset(ctx->buf, 0, ctx->key_length); in HMAC_Init_ex()
107 memset(ctx->opad, 0, ctx->key_length); in HMAC_Init_ex()
111 memset(ctx->ipad, 0, ctx->key_length); in HMAC_Init_ex()
117 memset(ctx->ipad, 0x36, EVP_MD_block_size(ctx->md)); in HMAC_Init_ex()
118 memset(ctx->opad, 0x5c, EVP_MD_block_size(ctx->md)); in HMAC_Init_ex()
/netbsd/external/bsd/pam-u2f/dist/tests/
H A Dget_devices.c27 memset(&cfg, 0, sizeof(cfg_t)); in main()
35 memset(dev, 0, sizeof(dev)); in main()
63 memset(dev, 0, sizeof(dev)); in main()
87 memset(dev, 0, sizeof(dev)); in main()
111 memset(dev, 0, sizeof(dev)); in main()
136 memset(dev, 0, sizeof(dev)); in main()
160 memset(dev, 0, sizeof(dev)); in main()
184 memset(dev, 0, sizeof(dev)); in main()
207 memset(dev, 0, sizeof(dev)); in main()
231 memset(dev, 0, sizeof(dev)); in main()
[all …]
/netbsd/regress/sys/compat/
H A Duipc_syscalls_43.c58 memset(&sa, '\0', sizeof(sa)); in main()
70 memset(&sa, '\0', sizeof(sa)); in main()
85 memset(buf, '\0', sizeof(buf)); in main()
107 memset(&sa, '\0', sizeof(sa)); in main()
125 memset(buf, '\0', sizeof(buf)); in main()
126 memset(&sa, '\0', sizeof(sa)); in main()
154 memset(&msg, '\0', sizeof(msg)); in main()
166 memset(&sa, '\0', sizeof(sa)); in main()
197 memset(&msg, '\0', sizeof(msg)); in main()
212 memset(&sun, '\0', sizeof(sa)); in main()

12345678910>>...184