/freebsd/contrib/ntp/libntp/lib/isc/win32/ |
H A D | strerror.c | 63 char *msg; in isc__strerror() 74 msg = NTstrerror(num, &freebuf); in isc__strerror() 75 if (msg != NULL) in isc__strerror() 76 snprintf(buf, size, "%s", msg); in isc__strerror() 79 if(freebuf && msg != NULL) { in isc__strerror() 80 LocalFree(msg); in isc__strerror() 181 char *msg; in GetWSAErrorMessage() 183 msg = NTstrerror(errval, &bfreebuf); in GetWSAErrorMessage() 184 fprintf(stderr, "%s: %s\n", errmsg, msg); in GetWSAErrorMessage() 186 LocalFree(msg); in GetWSAErrorMessage() 61 char *msg; isc__strerror() local 147 char *msg; NTperror() local 164 char *msg; GetWSAErrorMessage() local 378 char *msg; GetCryptErrorMessage() local [all...] |
/freebsd/contrib/lib9p/ |
H A D | pack.c | 73 l9p_iov_io(struct l9p_message *msg, void *buffer, size_t len) in l9p_iov_io() argument 78 assert(msg != NULL); in l9p_iov_io() 83 if (msg->lm_cursor_iov >= msg->lm_niov) in l9p_iov_io() 89 size_t idx = msg->lm_cursor_iov; in l9p_iov_io() 90 size_t space = msg->lm_iov[idx].iov_len - msg->lm_cursor_offset; in l9p_iov_io() 93 if (msg->lm_mode == L9P_PACK) { in l9p_iov_io() 94 memcpy((char *)msg->lm_iov[idx].iov_base + in l9p_iov_io() 95 msg->lm_cursor_offset, (char *)buffer + done, in l9p_iov_io() 99 if (msg->lm_mode == L9P_UNPACK) { in l9p_iov_io() 101 (char *)msg->lm_iov[idx].iov_base + in l9p_iov_io() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress.gen.c | 47 struct msg * 53 struct msg * 56 struct msg *tmp; in msg_new_with_arg() 57 if ((tmp = malloc(sizeof(struct msg))) == NULL) { in msg_new_with_arg() 84 msg_run_expand_to_hold_more(struct msg *msg) in msg_run_expand_to_hold_more() argument 86 int tobe_allocated = msg->run_num_allocated; in msg_run_expand_to_hold_more() 89 new_data = (struct run**) realloc(msg->run_data, in msg_run_expand_to_hold_more() 93 msg->run_data = new_data; in msg_run_expand_to_hold_more() 94 msg->run_num_allocated = tobe_allocated; in msg_run_expand_to_hold_more() 99 msg_run_add(struct msg *msg) in msg_run_add() argument [all …]
|
H A D | regress.gen.h | 12 struct msg; 27 int (*from_name_assign)(struct msg *, const char *); 28 int (*from_name_get)(struct msg *, char * *); 29 int (*to_name_assign)(struct msg *, const char *); 30 int (*to_name_get)(struct msg *, char * *); 31 int (*attack_assign)(struct msg *, const struct kill*); 32 int (*attack_get)(struct msg *, struct kill* *); 33 int (*run_assign)(struct msg *, int, const struct run*); 34 int (*run_get)(struct msg *, int, struct run* *); 35 struct run* (*run_add)(struct msg *msg); [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | regress.gen.c | 47 struct msg * 53 struct msg * 56 struct msg *tmp; in msg_new_with_arg() 57 if ((tmp = malloc(sizeof(struct msg))) == NULL) { in msg_new_with_arg() 84 msg_run_expand_to_hold_more(struct msg *msg) in msg_run_expand_to_hold_more() argument 86 int tobe_allocated = msg->run_num_allocated; in msg_run_expand_to_hold_more() 89 new_data = (struct run**) realloc(msg->run_data, in msg_run_expand_to_hold_more() 93 msg->run_data = new_data; in msg_run_expand_to_hold_more() 94 msg->run_num_allocated = tobe_allocated; in msg_run_expand_to_hold_more() 99 msg_run_add(struct msg *msg) in msg_run_add() argument [all …]
|
H A D | regress.gen.h | 12 struct msg; 27 int (*from_name_assign)(struct msg *, const char *); 28 int (*from_name_get)(struct msg *, char * *); 29 int (*to_name_assign)(struct msg *, const char *); 30 int (*to_name_get)(struct msg *, char * *); 31 int (*attack_assign)(struct msg *, const struct kill*); 32 int (*attack_get)(struct msg *, struct kill* *); 33 int (*run_assign)(struct msg *, int, const struct run*); 34 int (*run_get)(struct msg *, int, struct run* *); 35 struct run* (*run_add)(struct msg *msg); [all …]
|
/freebsd/contrib/wpa/src/wps/ |
H A D | wps_attr_build.c | 21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key() argument 81 wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); in wps_build_public_key() 82 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key() 83 wpabuf_put_buf(msg, pubkey); in wps_build_public_key() 97 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type() argument 100 wpabuf_put_be16(msg, ATTR_REQUEST_TYPE); in wps_build_req_type() 101 wpabuf_put_be16(msg, 1); in wps_build_req_type() 102 wpabuf_put_u8(msg, type); in wps_build_req_type() 107 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type) in wps_build_resp_type() argument 110 wpabuf_put_be16(msg, ATTR_RESPONSE_TYPE); in wps_build_resp_type() [all …]
|
H A D | wps_dev_attr.c | 16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument 20 wpabuf_put_be16(msg, ATTR_MANUFACTURER); in wps_build_manufacturer() 29 wpabuf_put_be16(msg, 1); in wps_build_manufacturer() 30 wpabuf_put_u8(msg, ' '); in wps_build_manufacturer() 34 wpabuf_put_be16(msg, len); in wps_build_manufacturer() 35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer() 40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument 44 wpabuf_put_be16(msg, ATTR_MODEL_NAME); in wps_build_model_name() 53 wpabuf_put_be16(msg, 1); in wps_build_model_name() 54 wpabuf_put_u8(msg, ' '); in wps_build_model_name() [all …]
|
/freebsd/contrib/wpa/src/p2p/ |
H A D | p2p_parse.c | 37 struct p2p_message *msg) in p2p_parse_attribute() argument 50 msg->capability = data; in p2p_parse_attribute() 61 msg->device_id = data; in p2p_parse_attribute() 63 MAC2STR(msg->device_id)); in p2p_parse_attribute() 71 msg->go_intent = data; in p2p_parse_attribute() 81 msg->status = data; in p2p_parse_attribute() 95 msg->listen_channel = data; in p2p_parse_attribute() 118 msg->operating_channel = data; in p2p_parse_attribute() 136 msg->channel_list = data; in p2p_parse_attribute() 137 msg->channel_list_len = len; in p2p_parse_attribute() [all …]
|
H A D | p2p_pd.c | 456 static int p2ps_validate_pd_req(struct p2p_data *p2p, struct p2p_message *msg, in p2ps_validate_pd_req() argument 468 if ((_val) && !msg->_attr) { \ in p2ps_validate_pd_req() 487 if (msg->status && *msg->status != P2P_SC_SUCCESS_DEFERRED) in p2ps_validate_pd_req() 502 if (msg->feature_cap_len < sizeof(struct p2ps_feature_capab)) { in p2ps_validate_pd_req() 507 switch (*msg->conn_cap) { in p2ps_validate_pd_req() 544 if (msg->persistent_dev) { in p2ps_validate_pd_req() 547 if (ether_addr_equal(msg->persistent_dev, addr)) { in p2ps_validate_pd_req() 569 struct p2p_message msg; in p2p_process_prov_disc_req() local 590 if (p2p_parse(data, len, &msg)) in p2p_process_prov_disc_req() 595 MAC2STR(sa), msg.wps_config_methods, rx_freq); in p2p_process_prov_disc_req() [all …]
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_mbox.c | 61 #define MBOX_CHAN(msg) ((msg) & 0xf) argument 62 #define MBOX_DATA(msg) ((msg) & ~0xf) argument 85 int msg[BCM2835_MBOX_CHANS]; member 107 uint32_t msg; in bcm_mbox_read_msg() local 110 msg = mbox_read_4(sc, REG_READ); in bcm_mbox_read_msg() 111 dprintf("bcm_mbox_intr: raw data %08x\n", msg); in bcm_mbox_read_msg() 112 chan = MBOX_CHAN(msg); in bcm_mbox_read_msg() 114 data = MBOX_DATA(msg); in bcm_mbox_read_msg() 116 if (sc->msg[chan]) { in bcm_mbox_read_msg() 121 sc->msg[chan] = msg; in bcm_mbox_read_msg() [all …]
|
/freebsd/sys/crypto/aesni/ |
H A D | intel_sha256.c | 67 __m128i msg; in intel_sha256_step() local 92 msg = _mm_loadu_si128((const __m128i*) data); in intel_sha256_step() 93 msgtmp0 = _mm_shuffle_epi8(msg, shuf_mask); in intel_sha256_step() 94 msg = _mm_add_epi32(msgtmp0, in intel_sha256_step() 96 state1 = _mm_sha256rnds2_epu32(state1, state0, msg); in intel_sha256_step() 97 msg = _mm_shuffle_epi32(msg, 0x0E); in intel_sha256_step() 98 state0 = _mm_sha256rnds2_epu32(state0, state1, msg); in intel_sha256_step() 103 msg = _mm_add_epi32(msgtmp1, in intel_sha256_step() 105 state1 = _mm_sha256rnds2_epu32(state1, state0, msg); in intel_sha256_step() 106 msg = _mm_shuffle_epi32(msg, 0x0E); in intel_sha256_step() [all …]
|
/freebsd/sys/dev/usb/net/ |
H A D | if_urndis.c | 81 struct rndis_query_req *msg, uint16_t len, 84 struct rndis_set_req *msg, uint16_t len); 226 } msg; in urndis_attach() local 281 memset(msg.eaddr.addr, 0, sizeof(msg.eaddr.addr)); in urndis_attach() 284 (struct rndis_query_req *)&msg.eaddr, sizeof(msg.eaddr), in urndis_attach() 300 msg.filter.filter = htole32(sc->sc_filter); in urndis_attach() 303 (struct rndis_set_req *)&msg.filter, sizeof(msg in urndis_attach() 530 const struct rndis_init_comp *msg; urndis_ctrl_handle_init() local 573 const struct rndis_query_comp *msg; urndis_ctrl_handle_query() local 618 const struct rndis_reset_comp *msg; urndis_ctrl_handle_reset() local 657 struct rndis_init_req msg; urndis_ctrl_init() local 695 struct rndis_halt_req msg; urndis_ctrl_halt() local 721 urndis_ctrl_query(struct urndis_softc * sc,uint32_t oid,struct rndis_query_req * msg,uint16_t len,const void ** rbuf,uint16_t * rbufsz) urndis_ctrl_query() argument 768 urndis_ctrl_set(struct urndis_softc * sc,uint32_t oid,struct rndis_set_req * msg,uint16_t len) urndis_ctrl_set() argument 820 struct rndis_packet_msg msg; urndis_bulk_read_callback() local 946 struct rndis_packet_msg msg; urndis_bulk_write_callback() local [all...] |
/freebsd/crypto/openssl/ssl/ |
H A D | t1_trce.c | 24 # define ssl_trace_list(bio, indent, msg, msglen, value, table) \ argument 25 do_ssl_trace_list(bio, indent, msg, msglen, value, \ 41 const unsigned char *msg, size_t msglen, in do_ssl_trace_list() argument 49 val = msg[0]; in do_ssl_trace_list() 51 val = (val << 8) | msg[1]; in do_ssl_trace_list() 54 msg += vlen; in do_ssl_trace_list() 615 const unsigned char *msg, size_t msglen) in ssl_print_hex() argument 622 BIO_printf(bio, "%02X", msg[i]); in ssl_print_hex() 900 const unsigned char *msg = *msgin; in ssl_print_extensions() local 909 extslen = (msg[0] << 8) | msg[1]; in ssl_print_extensions() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/zed.d/ |
H A D | all-syslog.sh | 18 msg="eid=${ZEVENT_EID} class=${ZEVENT_SUBCLASS}" 21 [ -n "${ZEVENT_POOL_GUID}" ] && msg="${msg} pool_guid=${ZEVENT_POOL_GUID}" 22 [ -n "${ZEVENT_VDEV_GUID}" ] && msg="${msg} vdev_guid=${ZEVENT_VDEV_GUID}" 24 [ -n "${ZEVENT_POOL}" ] && msg="${msg} pool='${ZEVENT_POOL}'" 25 [ -n "${ZEVENT_VDEV_PATH}" ] && msg="${msg} vdev=${ZEVENT_VDEV_PATH##*/}" 30 msg="${msg} pool_state=${ZEVENT_POOL_STATE_STR}" 33 [ -n "${ZEVENT_VDEV_STATE_STR}" ] && msg="${msg} vdev_state=${ZEVENT_VDEV_STATE_STR}" 34 [ -n "${ZEVENT_CKSUM_ALGORITHM}" ] && msg="${msg} algorithm=${ZEVENT_CKSUM_ALGORITHM}" 35 [ -n "${ZEVENT_ZIO_SIZE}" ] && msg="${msg} size=${ZEVENT_ZIO_SIZE}" 36 [ -n "${ZEVENT_ZIO_OFFSET}" ] && msg="${msg} offset=${ZEVENT_ZIO_OFFSET}" [all …]
|
/freebsd/sys/dev/mpt/ |
H A D | mpt_debug.c | 361 mpt_print_reply_hdr(MSG_DEFAULT_REPLY *msg) in mpt_print_reply_hdr() argument 364 printf("%s Reply @ %p\n", mpt_ioc_function(msg->Function), msg); in mpt_print_reply_hdr() 365 printf("\tIOC Status %s\n", mpt_ioc_status(msg->IOCStatus)); in mpt_print_reply_hdr() 366 printf("\tIOCLogInfo 0x%08x\n", msg->IOCLogInfo); in mpt_print_reply_hdr() 367 printf("\tMsgLength 0x%02x\n", msg->MsgLength); in mpt_print_reply_hdr() 368 printf("\tMsgFlags 0x%02x\n", msg->MsgFlags); in mpt_print_reply_hdr() 369 printf("\tMsgContext 0x%08x\n", msg->MsgContext); in mpt_print_reply_hdr() 373 mpt_print_init_reply(MSG_IOC_INIT_REPLY *msg) in mpt_print_init_reply() argument 376 mpt_print_reply_hdr((MSG_DEFAULT_REPLY *)msg); in mpt_print_init_reply() 377 printf("\tWhoInit %s\n", mpt_who(msg->WhoInit)); in mpt_print_init_reply() [all …]
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | error.c | 45 char *msg; member 49 free_error_string(hx509_error msg) in free_error_string() argument 51 while(msg) { in free_error_string() 52 hx509_error m2 = msg->next; in free_error_string() 53 free(msg->msg); in free_error_string() 54 free(msg); in free_error_string() 55 msg = m2; in free_error_string() 94 hx509_error msg; in hx509_set_error_stringv() local 99 msg = calloc(1, sizeof(*msg)); in hx509_set_error_stringv() 100 if (msg == NULL) { in hx509_set_error_stringv() [all …]
|
/freebsd/crypto/openssl/crypto/cmp/ |
H A D | cmp_msg.c | 25 OSSL_CMP_MSG *msg = NULL; in OSSL_CMP_MSG_new() local 27 msg = (OSSL_CMP_MSG *)ASN1_item_new_ex(ASN1_ITEM_rptr(OSSL_CMP_MSG), in OSSL_CMP_MSG_new() 29 if (!ossl_cmp_msg_set0_libctx(msg, libctx, propq)) { in OSSL_CMP_MSG_new() 30 OSSL_CMP_MSG_free(msg); in OSSL_CMP_MSG_new() 31 msg = NULL; in OSSL_CMP_MSG_new() 33 return msg; in OSSL_CMP_MSG_new() 36 void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg) in OSSL_CMP_MSG_free() argument 38 ASN1_item_free((ASN1_VALUE *)msg, ASN1_ITEM_rptr(OSSL_CMP_MSG)); in OSSL_CMP_MSG_free() 46 int ossl_cmp_msg_set0_libctx(OSSL_CMP_MSG *msg, OSSL_LIB_CTX *libctx, in ossl_cmp_msg_set0_libctx() argument 49 if (msg != NULL) { in ossl_cmp_msg_set0_libctx() [all …]
|
/freebsd/contrib/wpa/src/radius/ |
H A D | radius.c | 52 struct radius_hdr * radius_msg_get_hdr(struct radius_msg *msg) in radius_msg_get_hdr() argument 54 return msg->hdr; in radius_msg_get_hdr() 58 struct wpabuf * radius_msg_get_buf(struct radius_msg *msg) in radius_msg_get_buf() argument 60 return msg->buf; in radius_msg_get_buf() 65 radius_get_attr_hdr(struct radius_msg *msg, int idx) in radius_get_attr_hdr() argument 68 (wpabuf_mhead_u8(msg->buf) + msg->attr_pos[idx]); in radius_get_attr_hdr() 72 static void radius_msg_set_hdr(struct radius_msg *msg, u8 code, u8 identifier) in radius_msg_set_hdr() argument 74 msg->hdr->code = code; in radius_msg_set_hdr() 75 msg->hdr->identifier = identifier; in radius_msg_set_hdr() 79 static int radius_msg_initialize(struct radius_msg *msg) in radius_msg_initialize() argument [all …]
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | kern.c | 124 LOCKD_MSG msg; in client_request() local 173 if ((nr = read(devfd, &msg, sizeof(msg))) == sizeof(msg)) { in client_request() 175 show(&msg); in client_request() 177 if (msg.lm_version != LOCKD_MSG_VERSION) { in client_request() 179 "unknown msg type: %d", msg.lm_version); in client_request() 185 switch (msg.lm_fl.l_type) { in client_request() 188 if (msg.lm_getlk) in client_request() 189 ret = test_request(&msg); in client_request() 191 ret = lock_request(&msg); in client_request() 194 ret = unlock_request(&msg); in client_request() [all …]
|
/freebsd/contrib/dialog/samples/copifuncs/ |
H A D | ifpatch | 4 if (!strcasecmp(msg->key,"X-UUCP-From")) return 0; 5 if (!strcasecmp(msg->key,"X-Body-Start")) return 0; 6 if (!strncasecmp(msg->key,"X-FTN-",6)) return 0; 7 - if (!strcasecmp(msg->key,"Path")) return isftnpath(msg->val)?0:1; 8 + if (!strcasecmp(msg->key,"Path")) 13 + return isftnpath(msg->val)?0:1; 16 if (!strcasecmp(msg->key,"Newsgroups")) return newsmode?0:2; 17 if (!strcasecmp(msg->key,"Xref")) return 0; 18 if (!strcasecmp(msg->key,"Return-Receipt-To")) return 1; 19 if (!strcasecmp(msg->key,"Received")) return newsmode?0:2; [all …]
|
/freebsd/sys/dev/pst/ |
H A D | pst-iop.c | 205 struct i2o_exec_iop_reset_message *msg; in iop_reset() local 210 msg = (struct i2o_exec_iop_reset_message *)(sc->ibase + mfa); in iop_reset() 211 bzero(msg, sizeof(struct i2o_exec_iop_reset_message)); in iop_reset() 212 msg->version_offset = 0x1; in iop_reset() 213 msg->message_flags = 0x0; in iop_reset() 214 msg->message_size = sizeof(struct i2o_exec_iop_reset_message) >> 2; in iop_reset() 215 msg->target_address = I2O_TID_IOP; in iop_reset() 216 msg->initiator_address = I2O_TID_HOST; in iop_reset() 217 msg->function = I2O_EXEC_IOP_RESET; in iop_reset() 218 msg in iop_reset() 238 struct i2o_exec_init_outqueue_message *msg; iop_init_outqueue() local 294 struct i2o_exec_get_lct_message *msg; iop_get_lct() local 338 struct i2o_util_get_param_message *msg; iop_get_util_params() local 402 struct i2o_basic_message *msg = (struct i2o_basic_message *)(sc->ibase+mfa); iop_free_mfa() local 426 iop_queue_wait_msg(struct iop_softc * sc,int mfa,struct i2o_basic_message * msg) iop_queue_wait_msg() argument 466 iop_create_sgl(struct i2o_basic_message * msg,caddr_t data,int count,int dir) iop_create_sgl() argument [all...] |
/freebsd/contrib/unbound/services/cache/ |
H A D | dns.c | 271 struct dns_msg* msg, time_t now) in addr_to_additional() argument 273 if((msg->rep->rrsets[msg->rep->rrset_count] = in addr_to_additional() 275 msg->rep->ar_numrrsets++; in addr_to_additional() 276 msg->rep->rrset_count++; in addr_to_additional() 309 struct dns_msg** msg) in find_add_addrs() argument 322 if(msg) in find_add_addrs() 323 addr_to_additional(akey, region, *msg, now); in find_add_addrs() 342 if(msg) in find_add_addrs() 343 addr_to_additional(akey, region, *msg, now); in find_add_addrs() 435 struct dns_msg* msg, struct delegpt* dp, time_t now) in find_add_ds() argument [all …]
|
/freebsd/crypto/libecc/include/libecc/utils/ |
H A D | dbg_sig.h | 28 #define dbg_buf_print(msg, ...) do {\ argument 29 buf_print(EC_SIG_ALG " " msg, __VA_ARGS__);\ 31 #define dbg_nn_print(msg, ...) do {\ argument 32 nn_print(EC_SIG_ALG " " msg, __VA_ARGS__);\ 34 #define dbg_ec_point_print(msg, ...) do {\ argument 35 ec_point_print(EC_SIG_ALG " " msg, __VA_ARGS__);\ 37 #define dbg_ec_montgomery_point_print(msg, ...) do {\ argument 38 ec_montgomery_point_print(EC_SIG_ALG " " msg, __VA_ARGS__);\ 40 #define dbg_ec_edwards_point_print(msg, ...) do {\ argument 41 ec_edwards_point_print(EC_SIG_ALG " " msg, __VA_ARGS__);\ [all …]
|
/freebsd/tests/sys/netlink/ |
H A D | test_rtnl_ifaddr.py | 44 msg = NetlinkIfaMessage(self.helper, NlRtMsgType.RTM_GETADDR.value) 45 msg.set_request() 46 self.write_message(msg) 49 for rx_msg in self.read_msg_list(msg.nl_hdr.nlmsg_seq, NlRtMsgType.RTM_NEWADDR): 65 msg = NetlinkIfaMessage(self.helper, NlRtMsgType.RTM_GETADDR.value) 66 msg.set_request() 67 msg.base_hdr.ifa_index = socket.if_nametoindex(epair_ifname) 68 self.write_message(msg) 71 for rx_msg in self.read_msg_list(msg.nl_hdr.nlmsg_seq, NlRtMsgType.RTM_NEWADDR): 104 msg = NetlinkIfaMessage(self.helper, NlRtMsgType.RTM_GETADDR.value) [all …]
|