/freebsd/tools/tools/netrate/tcpp/ |
H A D | tcpp.c | 93 char *dummy; in main() local 117 ll = strtoll(optarg, &dummy, 10); in main() 118 if (*dummy != '\0' || ll <= 0) in main() 140 ll = strtoll(optarg, &dummy, 10); in main() 141 if (*dummy != '\0' || ll <= 0) in main() 147 ll = strtoll(optarg, &dummy, 10); in main() 148 if (*dummy != '\0' || ll <= 0) in main() 154 ll = strtol(optarg, &dummy, 10); in main() 155 if (*dummy != '\0' || ll < 1 || ll > 65535) in main() 165 ll = strtoll(optarg, &dummy, 10); in main() [all …]
|
/freebsd/contrib/libfido2/fuzz/ |
H A D | fuzz_bio.c | 180 struct param dummy; in pack_dummy() local 184 memset(&dummy, 0, sizeof(dummy)); in pack_dummy() 186 strlcpy(dummy.pin, dummy_pin, sizeof(dummy.pin)); in pack_dummy() 187 strlcpy(dummy.name, dummy_name, sizeof(dummy.name)); in pack_dummy() 189 dummy.info_wire_data.len = sizeof(dummy_info_wire_data); in pack_dummy() 190 dummy.enroll_wire_data.len = sizeof(dummy_enroll_wire_data); in pack_dummy() 191 dummy.list_wire_data.len = sizeof(dummy_list_wire_data); in pack_dummy() 192 dummy.set_name_wire_data.len = sizeof(dummy_set_name_wire_data); in pack_dummy() 193 dummy.remove_wire_data.len = sizeof(dummy_remove_wire_data); in pack_dummy() 194 dummy.id.len = sizeof(dummy_id); in pack_dummy() [all …]
|
H A D | fuzz_credman.c | 167 struct param dummy; in pack_dummy() local 171 memset(&dummy, 0, sizeof(dummy)); in pack_dummy() 173 strlcpy(dummy.pin, dummy_pin, sizeof(dummy.pin)); in pack_dummy() 174 strlcpy(dummy.rp_id, dummy_rp_id, sizeof(dummy.rp_id)); in pack_dummy() 176 dummy.meta_wire_data.len = sizeof(dummy_meta_wire_data); in pack_dummy() 177 dummy.rp_wire_data.len = sizeof(dummy_rp_wire_data); in pack_dummy() 178 dummy.rk_wire_data.len = sizeof(dummy_rk_wire_data); in pack_dummy() 179 dummy.del_wire_data.len = sizeof(dummy_del_wire_data); in pack_dummy() 180 dummy.cred_id.len = sizeof(dummy_cred_id); in pack_dummy() 182 memcpy(&dummy.meta_wire_data.body, &dummy_meta_wire_data, in pack_dummy() [all …]
|
H A D | fuzz_pcsc.c | 119 struct param dummy; in pack_dummy() local 123 memset(&dummy, 0, sizeof(dummy)); in pack_dummy() 125 strlcpy(dummy.path, dummy_pcsc_path, sizeof(dummy.path)); in pack_dummy() 127 dummy.pcsc_list.len = sizeof(dummy_pcsc_list); in pack_dummy() 128 memcpy(&dummy.pcsc_list.body, &dummy_pcsc_list, dummy.pcsc_list.len); in pack_dummy() 130 dummy.tx_apdu.len = sizeof(dummy_tx_apdu); in pack_dummy() 131 memcpy(&dummy.tx_apdu.body, &dummy_tx_apdu, dummy.tx_apdu.len); in pack_dummy() 133 dummy.wiredata_init.len = sizeof(dummy_wiredata_init); in pack_dummy() 134 memcpy(&dummy.wiredata_init.body, &dummy_wiredata_init, in pack_dummy() 135 dummy.wiredata_init.len); in pack_dummy() [all …]
|
H A D | fuzz_largeblob.c | 144 struct param dummy; in pack_dummy() local 148 memset(&dummy, 0, sizeof(dummy)); in pack_dummy() 150 strlcpy(dummy.pin, dummy_pin, sizeof(dummy.pin)); in pack_dummy() 152 dummy.get_wiredata.len = sizeof(dummy_get_wiredata); in pack_dummy() 153 dummy.set_wiredata.len = sizeof(dummy_set_wiredata); in pack_dummy() 154 dummy.key.len = sizeof(dummy_key); in pack_dummy() 156 memcpy(&dummy.get_wiredata.body, &dummy_get_wiredata, in pack_dummy() 157 dummy.get_wiredata.len); in pack_dummy() 158 memcpy(&dummy.set_wiredata.body, &dummy_set_wiredata, in pack_dummy() 159 dummy.set_wiredata.len); in pack_dummy() [all …]
|
H A D | fuzz_assert.c | 17 #include "dummy.h" 166 struct param dummy; in pack_dummy() local 170 memset(&dummy, 0, sizeof(dummy)); in pack_dummy() 172 dummy.type = 1; /* rsa */ in pack_dummy() 173 dummy.ext = FIDO_EXT_HMAC_SECRET; in pack_dummy() 175 strlcpy(dummy.pin, dummy_pin, sizeof(dummy.pin)); in pack_dummy() 176 strlcpy(dummy.rp_id, dummy_rp_id, sizeof(dummy in pack_dummy() [all...] |
H A D | fuzz_mgmt.c | 164 struct param dummy; in pack_dummy() local 168 memset(&dummy, 0, sizeof(dummy)); in pack_dummy() 170 strlcpy(dummy.pin1, dummy_pin1, sizeof(dummy.pin1)); in pack_dummy() 171 strlcpy(dummy.pin2, dummy_pin2, sizeof(dummy.pin2)); in pack_dummy() 173 dummy.reset_wire_data.len = sizeof(dummy_reset_wire_data); in pack_dummy() 174 dummy.info_wire_data.len = sizeof(dummy_info_wire_data); in pack_dummy() 175 dummy.set_pin_wire_data.len = sizeof(dummy_set_pin_wire_data); in pack_dummy() 176 dummy.change_pin_wire_data.len = sizeof(dummy_change_pin_wire_data); in pack_dummy() 177 dummy.retry_wire_data.len = sizeof(dummy_retry_wire_data); in pack_dummy() 178 dummy.config_wire_data.len = sizeof(dummy_config_wire_data); in pack_dummy() [all …]
|
H A D | fuzz_cred.c | 176 struct param dummy; in pack_dummy() local 180 memset(&dummy, 0, sizeof(dummy)); in pack_dummy() 182 dummy.type = 1; in pack_dummy() 183 dummy.ext = FIDO_EXT_HMAC_SECRET; in pack_dummy() 185 strlcpy(dummy.pin, dummy_pin, sizeof(dummy.pin)); in pack_dummy() 186 strlcpy(dummy.rp_id, dummy_rp_id, sizeof(dummy.rp_id)); in pack_dummy() 187 strlcpy(dummy.rp_name, dummy_rp_name, sizeof(dummy.rp_name)); in pack_dummy() 188 strlcpy(dummy.user_icon, dummy_user_icon, sizeof(dummy.user_icon)); in pack_dummy() 189 strlcpy(dummy.user_name, dummy_user_name, sizeof(dummy.user_name)); in pack_dummy() 190 strlcpy(dummy.user_nick, dummy_user_nick, sizeof(dummy.user_nick)); in pack_dummy() [all …]
|
H A D | fuzz_hid.c | 130 struct param dummy; in pack_dummy() local 134 memset(&dummy, 0, sizeof(dummy)); in pack_dummy() 136 dummy.report_descriptor.len = sizeof(dummy_report_descriptor); in pack_dummy() 137 strlcpy(dummy.uevent, dummy_uevent, sizeof(dummy.uevent)); in pack_dummy() 138 memcpy(&dummy.report_descriptor.body, &dummy_report_descriptor, in pack_dummy() 139 dummy.report_descriptor.len); in pack_dummy() 140 dummy.netlink_wiredata.len = sizeof(dummy_netlink_wiredata); in pack_dummy() 141 memcpy(&dummy.netlink_wiredata.body, &dummy_netlink_wiredata, in pack_dummy() 142 dummy.netlink_wiredata.len); in pack_dummy() 144 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0); in pack_dummy()
|
/freebsd/sbin/ifconfig/ |
H A D | ifbridge.c | 221 setbridge_add(if_ctx *ctx, const char *val, int dummy __unused) in setbridge_add() 232 setbridge_delete(if_ctx *ctx, const char *val, int dummy __unused) in setbridge_delete() 243 setbridge_discover(if_ctx *ctx, const char *val, int dummy __unused) in setbridge_discover() 250 unsetbridge_discover(if_ctx *ctx, const char *val, int dummy __unused) in unsetbridge_discover() 257 setbridge_learn(if_ctx *ctx, const char *val, int dummy __unused) in setbridge_learn() 264 unsetbridge_learn(if_ctx *ctx, const char *val, int dummy __unused) in unsetbridge_learn() 271 setbridge_sticky(if_ctx *ctx, const char *val, int dummy __unused) in setbridge_sticky() 278 unsetbridge_sticky(if_ctx *ctx, const char *val, int dummy __unused) in unsetbridge_sticky() 285 setbridge_span(if_ctx *ctx, const char *val, int dummy __unused) in setbridge_span() 296 unsetbridge_span(if_ctx *ctx, const char *val, int dummy __unused) in unsetbridge_span() [all …]
|
H A D | carp.c | 111 setcarp_vhid(if_ctx *ctx, const char *val, int dummy __unused) in setcarp_vhid() 164 setcarp_passwd(if_ctx *ctx __unused, const char *val, int dummy __unused) in setcarp_passwd() 174 setcarp_advskew(if_ctx *ctx __unused, const char *val, int dummy __unused) in setcarp_advskew() 184 setcarp_advbase(if_ctx *ctx __unused, const char *val, int dummy __unused) in setcarp_advbase() 194 setcarp_state(if_ctx *ctx __unused, const char *val, int dummy __unused) in setcarp_state() 211 setcarp_peer(if_ctx *ctx __unused, const char *val, int dummy __unused) in setcarp_peer() 217 setcarp_mcast(if_ctx *ctx __unused, const char *val __unused, int dummy __unused) in setcarp_mcast() 223 setcarp_peer6(if_ctx *ctx __unused, const char *val, int dummy __unused) in setcarp_peer6() 239 setcarp_mcast6(if_ctx *ctx __unused, const char *val __unused, int dummy __unused) in setcarp_mcast6() 248 setcarp_version(if_ctx *ctx __unused, const char *val, int dummy __unused) in setcarp_version() [all …]
|
/freebsd/sys/rpc/ |
H A D | svc_auth.c | 81 enum auth_stat dummy; in _authenticate() local 89 dummy = _svcauth_null(rqst, msg); in _authenticate() 90 return (dummy); in _authenticate() 94 dummy = _svcauth_unix(rqst, msg); in _authenticate() 95 return (dummy); in _authenticate() 99 dummy = _svcauth_short(rqst, msg); in _authenticate() 100 return (dummy); in _authenticate() 106 dummy = _svcauth_rpcsec_gss(rqst, msg); in _authenticate() 107 return (dummy); in _authenticate() 109 dummy = _svcauth_rpcsec_tls(rqst, msg); in _authenticate() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | socketpair3.sh | 74 int dummy = 0; 84 if (read(sock[1], &dummy, 1) != 1) 90 if (write(sock_child[1], &dummy, 1) != 1) 93 if ((ret = read(sock_child[1], &dummy, 1)) != 1) 105 uint8_t dummy; 110 if (write(sock[0], &dummy, 1) != 1) 115 if ((ret = read(sock_child, &dummy, 1)) != 1) { 123 ssize_t ret2 = read(sock_child, &dummy, 1); 131 if (write(sock_child, &dummy, 1) != 1)
|
/freebsd/lib/libc/rpc/ |
H A D | svc_auth.c | 97 enum auth_stat dummy; in _authenticate() local 109 dummy = _svcauth_null(rqst, msg); in _authenticate() 110 return (dummy); in _authenticate() 112 dummy = _svcauth_unix(rqst, msg); in _authenticate() 113 return (dummy); in _authenticate() 115 dummy = _svcauth_short(rqst, msg); in _authenticate() 116 return (dummy); in _authenticate() 119 dummy = _svcauth_des(rqst, msg); in _authenticate() 120 return (dummy); in _authenticate()
|
H A D | rpcb_prot.c | 150 bool_t dummy; in xdr_rpcblist() local 152 dummy = xdr_rpcblist_ptr(xdrs, (rpcblist_ptr *)rp); in xdr_rpcblist() 153 return (dummy); in xdr_rpcblist() 284 bool_t dummy; in xdr_rpcb_rmtcallres() local 293 dummy = (*(objp->xdr_res))(xdrs, objp->results.results_val); in xdr_rpcb_rmtcallres() 294 return (dummy); in xdr_rpcb_rmtcallres() 300 bool_t dummy; in xdr_netbuf() local 307 dummy = xdr_bytes(xdrs, (char **) pp, in xdr_netbuf() 309 return (dummy); in xdr_netbuf()
|
/freebsd/usr.bin/top/ |
H A D | machine.c | 664 static struct kinfo_proc dummy; in get_io_stats() local 669 memset(&dummy, 0, sizeof(dummy)); in get_io_stats() 670 oldp = &dummy; in get_io_stats() 736 long dummy; in get_io_total() local 738 return (get_io_stats(pp, &dummy, &dummy, &dummy, &dummy, &dummy)); in get_io_total() 1502 long dummy, inp1, inp2; in compare_ioread() local 1504 (void) get_io_stats(p1, &inp1, &dummy, &dummy, &dummy, &dummy); in compare_ioread() 1505 (void) get_io_stats(p2, &inp2, &dummy, &dummy, &dummy, &dummy); in compare_ioread() 1515 long dummy, oup1, oup2; in compare_iowrite() local 1517 (void) get_io_stats(p1, &dummy, &oup1, &dummy, &dummy, &dummy); in compare_iowrite() [all …]
|
/freebsd/crypto/openssh/regress/unittests/sshsig/ |
H A D | mktestdata.sh | 10 if [ -f ../../../misc/sk-dummy/sk-dummy.so ] ; then 11 SK_DUMMY=../../../misc/sk-dummy/sk-dummy.so 12 elif [ -f ../../../misc/sk-dummy/obj/sk-dummy.so ] ; then 13 SK_DUMMY=../../../misc/sk-dummy/obj/sk-dummy.so
|
/freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-proc.c | 74 spl_ctl_table dummy = *table; in proc_domemused() local 76 dummy.data = &val; in proc_domemused() 77 dummy.proc_handler = &proc_dointvec; in proc_domemused() 78 dummy.extra1 = &table_min; in proc_domemused() 79 dummy.extra2 = &table_max; in proc_domemused() 89 rc = proc_doulongvec_minmax(&dummy, write, buffer, lenp, ppos); in proc_domemused() 102 spl_ctl_table dummy = *table; in proc_doslab() local 105 dummy.data = &val; in proc_doslab() 106 dummy.proc_handler = &proc_dointvec; in proc_doslab() 107 dummy.extra1 = &table_min; in proc_doslab() [all …]
|
/freebsd/tools/regression/netinet/tcpconnect/ |
H A D | tcpconnect.c | 58 char *dummy; in tcpconnect_server() local 69 port = strtoul(argv[0], &dummy, 10); in tcpconnect_server() 70 if (port < 1 || port > 65535 || *dummy != '\0') in tcpconnect_server() 95 char *dummy; in tcpconnect_client() local 114 port = strtoul(argv[1], &dummy, 10); in tcpconnect_client() 115 if (port < 1 || port > 65535 || *dummy != '\0') in tcpconnect_client() 119 count = strtoul(argv[2], &dummy, 10); in tcpconnect_client() 120 if (count < 1 || count > 100000 || *dummy != '\0') in tcpconnect_client()
|
/freebsd/bin/sh/tests/execution/ |
H A D | unknown1.0 | 15 dummy=$(nosuchtool 2>/dev/null) 17 dummy=$(/var/empty/nosuchtool 2>/dev/null) 19 dummy=$( (nosuchtool) 2>/dev/null) 21 dummy=$( (/var/empty/nosuchtool) 2>/dev/null) 23 dummy=$(/ 2>/dev/null) 25 dummy=$(PATH=/usr bin 2>/dev/null)
|
/freebsd/lib/libnv/ |
H A D | msgio.c | 152 uint8_t dummy; in cred_send() local 165 dummy = 0; in cred_send() 166 iov.iov_base = &dummy; in cred_send() 167 iov.iov_len = sizeof(dummy); in cred_send() 192 uint8_t dummy; in cred_recv() local 198 iov.iov_base = &dummy; in cred_recv() 199 iov.iov_len = sizeof(dummy); in cred_recv() 230 uint8_t dummy; in fd_package_send() local 241 dummy = 0; in fd_package_send() 242 iov.iov_base = &dummy; in fd_package_send() [all …]
|
/freebsd/tools/regression/netinet/tcpstream/ |
H A D | tcpstream.c | 182 char *dummy; in main() local 197 port = strtoul(argv[3], &dummy, 10); in main() 198 if (port < 1 || port > 65535 || *dummy != '\0') in main() 202 seed = strtoul(argv[4], &dummy, 10); in main() 203 if (*dummy != '\0') in main() 217 port = strtoul(argv[2], &dummy, 10); in main() 218 if (port < 1 || port > 65535 || *dummy != '\0') in main() 222 seed = strtoul(argv[3], &dummy, 10); in main() 223 if (*dummy != '\0') in main()
|
/freebsd/tools/tools/netrate/netsend/ |
H A D | netsend.c | 283 char *dummy; in main() local 318 port = strtoul(argv[2], &dummy, 10); in main() 321 if (*dummy != '\0' && *dummy != '-') in main() 328 if (*dummy == '-') { /* set high port */ in main() 329 port = strtoul(dummy + 1, &dummy, 10); in main() 335 payloadsize = strtoul(argv[3], &dummy, 10); in main() 336 if (payloadsize < 0 || *dummy != '\0') in main() 349 rate = strtoul(argv[4], &dummy, 10); in main() 350 if (rate < 0 || *dummy != '\0') in main() 357 a.duration = strtoul(argv[5], &dummy, 10); in main() [all …]
|
/freebsd/tools/tools/netrate/netblast/ |
H A D | netblast.c | 144 char *dummy, *packet; in main() local 155 port = strtoul(argv[2], &dummy, 10); in main() 156 if (port < 1 || port > 65535 || *dummy != '\0') { in main() 162 payloadsize = strtoul(argv[3], &dummy, 10); in main() 163 if (payloadsize < 0 || *dummy != '\0') in main() 171 duration = strtoul(argv[4], &dummy, 10); in main() 172 if (duration < 0 || *dummy != '\0') { in main()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | ConstantInitBuilder.cpp | 100 auto dummy = entry.Dummy; in resolveSelfReferences() local 101 dummy->replaceAllUsesWith(resolvedReference); in resolveSelfReferences() 102 dummy->eraseFromParent(); in resolveSelfReferences() 116 auto dummy = entry.Dummy; in abandon() local 117 dummy->replaceAllUsesWith(llvm::PoisonValue::get(dummy->getType())); in abandon() 118 dummy->eraseFromParent(); in abandon() 158 auto dummy = new llvm::GlobalVariable(Builder.CGM.getModule(), type, true, in getAddrOfPosition() local 161 Builder.SelfReferences.emplace_back(dummy); in getAddrOfPosition() 164 return dummy; in getAddrOfPosition() 171 auto dummy = in getAddrOfCurrentPosition() local [all …]
|