Home
last modified time | relevance | path

Searched refs:reply (Results 1 – 25 of 204) sorted by relevance

123456789

/titanic_41/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_tape.c54 ndmp_tape_read_reply *reply);
245 ndmp_tape_close_reply reply; in ndmpd_tape_close_v2() local
250 reply.error = NDMP_DEV_NOT_OPEN_ERR; in ndmpd_tape_close_v2()
251 ndmp_send_reply(connection, (void *) &reply, in ndmpd_tape_close_v2()
277 ndmp_tape_get_state_reply_v2 reply; in ndmpd_tape_get_state_v2() local
285 reply.error = NDMP_DEV_NOT_OPEN_ERR; in ndmpd_tape_get_state_v2()
286 ndmp_send_reply(connection, (void *) &reply, in ndmpd_tape_get_state_v2()
294 reply.error = NDMP_IO_ERR; in ndmpd_tape_get_state_v2()
295 ndmp_send_reply(connection, (void *)&reply, in ndmpd_tape_get_state_v2()
306 reply.error = NDMP_IO_ERR; in ndmpd_tape_get_state_v2()
[all …]
H A Dndmpd_config.c107 ndmp_config_get_host_info_reply_v2 reply; in ndmpd_config_get_host_info_v2() local
114 (void) memset((void*)&reply, 0, sizeof (reply)); in ndmpd_config_get_host_info_v2()
118 reply.error = NDMP_NO_ERR; in ndmpd_config_get_host_info_v2()
119 reply.hostname = buf; in ndmpd_config_get_host_info_v2()
121 reply.os_type = uts.sysname; in ndmpd_config_get_host_info_v2()
122 reply.os_vers = uts.release; in ndmpd_config_get_host_info_v2()
126 reply.error = NDMP_UNDEFINED_ERR; in ndmpd_config_get_host_info_v2()
135 reply.hostid = hostidstr; in ndmpd_config_get_host_info_v2()
138 reply.auth_type.auth_type_len = 1; in ndmpd_config_get_host_info_v2()
139 reply.auth_type.auth_type_val = auth_types; in ndmpd_config_get_host_info_v2()
[all …]
H A Dndmpd_data.c100 ndmp_data_get_state_reply_v2 reply; in ndmpd_data_get_state_v2() local
103 reply.error = NDMP_NO_ERR; in ndmpd_data_get_state_v2()
104 reply.operation = session->ns_data.dd_operation; in ndmpd_data_get_state_v2()
105 reply.state = session->ns_data.dd_state; in ndmpd_data_get_state_v2()
106 reply.halt_reason = session->ns_data.dd_halt_reason; in ndmpd_data_get_state_v2()
108 reply.est_time_remain = in ndmpd_data_get_state_v2()
110 reply.est_bytes_remain = in ndmpd_data_get_state_v2()
114 reply.bytes_processed = in ndmpd_data_get_state_v2()
117 reply.mover = session->ns_data.dd_mover; in ndmpd_data_get_state_v2()
118 reply.read_offset = long_long_to_quad(session->ns_data.dd_read_offset); in ndmpd_data_get_state_v2()
[all …]
H A Dndmpd_scsi.c102 ndmp_scsi_close_reply reply; in ndmpd_scsi_close_v2() local
107 reply.error = NDMP_DEV_NOT_OPEN_ERR; in ndmpd_scsi_close_v2()
108 ndmp_send_reply(connection, (void *) &reply, in ndmpd_scsi_close_v2()
125 reply.error = NDMP_NO_ERR; in ndmpd_scsi_close_v2()
126 ndmp_send_reply(connection, (void *) &reply, in ndmpd_scsi_close_v2()
152 ndmp_scsi_get_state_reply reply; in ndmpd_scsi_get_state_v2() local
156 reply.error = NDMP_DEV_NOT_OPEN_ERR; in ndmpd_scsi_get_state_v2()
158 reply.error = NDMP_NO_ERR; in ndmpd_scsi_get_state_v2()
159 reply.target_controller = -1; in ndmpd_scsi_get_state_v2()
160 reply.target_id = -1; in ndmpd_scsi_get_state_v2()
[all …]
H A Dndmpd_mover.c139 ndmp_mover_get_state_reply_v2 reply; in ndmpd_mover_get_state_v2() local
142 reply.error = NDMP_NO_ERR; in ndmpd_mover_get_state_v2()
143 reply.state = session->ns_mover.md_state; in ndmpd_mover_get_state_v2()
144 reply.pause_reason = session->ns_mover.md_pause_reason; in ndmpd_mover_get_state_v2()
145 reply.halt_reason = session->ns_mover.md_halt_reason; in ndmpd_mover_get_state_v2()
146 reply.record_size = session->ns_mover.md_record_size; in ndmpd_mover_get_state_v2()
147 reply.record_num = session->ns_mover.md_record_num; in ndmpd_mover_get_state_v2()
148 reply.data_written = in ndmpd_mover_get_state_v2()
150 reply.seek_position = in ndmpd_mover_get_state_v2()
152 reply.bytes_left_to_read = in ndmpd_mover_get_state_v2()
[all …]
H A Dndmpd_connect.c145 ndmp_connect_open_reply reply; in ndmpd_connect_open_v2() local
148 reply.error = NDMP_NO_ERR; in ndmpd_connect_open_v2()
155 reply.error = NDMP_ILLEGAL_STATE_ERR; in ndmpd_connect_open_v2()
157 reply.error = NDMP_ILLEGAL_ARGS_ERR; in ndmpd_connect_open_v2()
159 ndmp_send_reply(connection, (void *) &reply, in ndmpd_connect_open_v2()
168 if (reply.error == NDMP_NO_ERR) { in ndmpd_connect_open_v2()
193 ndmp_connect_client_auth_reply reply; in ndmpd_connect_client_auth_v2() local
208 reply.error = NDMP_NO_ERR; in ndmpd_connect_client_auth_v2()
219 reply.error = NDMP_ILLEGAL_ARGS_ERR; in ndmpd_connect_client_auth_v2()
229 reply.error = NDMP_NOT_AUTHORIZED_ERR; in ndmpd_connect_client_auth_v2()
[all …]
/titanic_41/usr/src/lib/libslp/clib/
H A DDAAdvert.c39 SLPError slp_unpackDAAdvert(char *reply, char **surl, char **scopes, in slp_unpackDAAdvert() argument
52 len = slp_get_length(reply); in slp_unpackDAAdvert()
53 off = SLP_HDRLEN + slp_get_langlen(reply); in slp_unpackDAAdvert()
55 if ((err = slp_get_sht(reply, len, &off, &protoErrCode)) != SLP_OK) in slp_unpackDAAdvert()
64 iov[0].iov_base = reply + off; in slp_unpackDAAdvert()
66 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert()
69 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert()
75 iov[1].iov_base = reply + off; in slp_unpackDAAdvert()
77 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackDAAdvert()
83 iov[3].iov_base = reply + off; in slp_unpackDAAdvert()
[all …]
H A DSAAdvert.c40 SLPError slp_unpackSAAdvert(char *reply, char **surl, in slp_unpackSAAdvert() argument
52 len = slp_get_length(reply); in slp_unpackSAAdvert()
53 off = SLP_HDRLEN + slp_get_langlen(reply); in slp_unpackSAAdvert()
56 iov[0].iov_base = reply + off; in slp_unpackSAAdvert()
58 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackSAAdvert()
64 iov[2].iov_base = reply + off; in slp_unpackSAAdvert()
66 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { in slp_unpackSAAdvert()
72 iov[1].iov_base = reply + off; in slp_unpackSAAdvert()
74 if ((err = slp_get_string(reply, len, &off, attrs)) != SLP_OK) { in slp_unpackSAAdvert()
80 if ((err = slp_get_byte(reply, len, &off, &auth_cnt)) != SLP_OK) { in slp_unpackSAAdvert()
[all …]
H A Dslp_da_cache.c86 const char *reply; member
104 char *reply = NULL; in slp_find_das_cached() local
124 if (!(reply = malloc((*ans)->reply_len))) { in slp_find_das_cached()
129 (void) memcpy(reply, (*ans)->reply, (*ans)->reply_len); in slp_find_das_cached()
141 return (reply); in slp_find_das_cached()
149 void slp_put_das_cached(const char *query, const char *reply, in slp_put_das_cached() argument
172 if (!(ce->reply = malloc(len))) { in slp_put_das_cached()
178 (void) memcpy((void *) (ce->reply), reply, len); in slp_put_das_cached()
190 free((void *) ((*ce2)->reply)); in slp_put_das_cached()
210 free((void *) (ce->reply)); in free_cache_entry()
H A Dslp_net.c202 char *reply = NULL; in slp_uc_udp_send() local
230 if (!reply && !(reply = malloc(mtu))) { in slp_uc_udp_send()
263 if (recvfrom(sockfd, reply, mtu, 0, NULL, NULL) < 0) { in slp_uc_udp_send()
266 free(reply); reply = NULL; in slp_uc_udp_send()
275 slp_proto_err errcode = slp_get_errcode(reply); in slp_uc_udp_send()
293 free(reply); reply = NULL; in slp_uc_udp_send()
308 if (reply) free(reply); in slp_uc_udp_send()
312 if (reply) { in slp_uc_udp_send()
313 if (slp_get_overflow(reply)) in slp_uc_udp_send()
317 (void) slp_enqueue(hp->q, reply); in slp_uc_udp_send()
[all …]
/titanic_41/usr/src/cmd/ldmad/
H A Dldma_device.c74 ldma_message_header_t *reply = NULL; in ldma_dev_validate_path() local
100 reply = ldma_alloc_result_msg(request, reply_dlen); in ldma_dev_validate_path()
101 if (reply == NULL) { in ldma_dev_validate_path()
107 path_type = (uint32_t *)(LDMA_HDR2DATA(reply)); in ldma_dev_validate_path()
109 reply->msg_info = 0x0; in ldma_dev_validate_path()
143 reply->msg_info |= LDMA_DEVPATH_EXIST; in ldma_dev_validate_path()
165 reply->msg_info |= LDMA_DEVPATH_OPENRW | LDMA_DEVPATH_OPENRO; in ldma_dev_validate_path()
173 reply->msg_info |= LDMA_DEVPATH_OPENRO; in ldma_dev_validate_path()
188 free(reply); in ldma_dev_validate_path()
189 reply = NULL; in ldma_dev_validate_path()
[all …]
H A Dldma_system.c79 ldma_message_header_t *reply; in ldma_sys_get_sysinfo() local
107 reply = ldma_alloc_result_msg(request, rlen); in ldma_sys_get_sysinfo()
109 if (reply == NULL) { in ldma_sys_get_sysinfo()
114 reply->msg_info = rlen; in ldma_sys_get_sysinfo()
116 data = LDMA_HDR2DATA(reply); in ldma_sys_get_sysinfo()
136 *replyp = reply; in ldma_sys_get_sysinfo()
256 ldma_message_header_t *reply; in ldma_sys_get_chassisno() local
278 reply = ldma_alloc_result_msg(request, rlen); in ldma_sys_get_chassisno()
280 if (reply == NULL) { in ldma_sys_get_chassisno()
285 reply->msg_info = rlen; in ldma_sys_get_chassisno()
[all …]
/titanic_41/usr/src/cmd/hal/hald-runner/
H A Dmain.c92 DBusMessage *reply; in handle_run() local
128 reply = dbus_message_new_error(msg, "org.freedesktop.HalRunner.Malformed", in handle_run()
130 dbus_connection_send(con, reply, NULL); in handle_run()
131 dbus_message_unref(reply); in handle_run()
137 DBusMessage *reply; in handle_start() local
162 reply = dbus_message_new_method_return(msg); in handle_start()
163 dbus_message_append_args (reply, in handle_start()
168 reply = dbus_message_new_error(msg, "org.freedesktop.HalRunner.Failed", in handle_start()
171 dbus_connection_send(con, reply, NULL); in handle_start()
172 dbus_message_unref(reply); in handle_start()
[all …]
/titanic_41/usr/src/cmd/hal/hald/
H A Dhald_dbus.c82 DBusMessage *reply; in raise_error() local
90 reply = dbus_message_new_error (in_reply_to, error_name, buf); in raise_error()
91 if (reply == NULL) in raise_error()
93 if (!dbus_connection_send (connection, reply, NULL)) in raise_error()
95 dbus_message_unref (reply); in raise_error()
205 DBusMessage *reply; in raise_device_already_locked() local
213 reply = dbus_message_new_error (in_reply_to, in raise_device_already_locked()
217 if (reply == NULL || !dbus_connection_send (connection, reply, NULL)) in raise_device_already_locked()
220 dbus_message_unref (reply); in raise_device_already_locked()
234 DBusMessage *reply; in raise_branch_already_claimed() local
[all …]
/titanic_41/usr/src/lib/hal/libhal/common/
H A Dlibhal.c425 DBusMessage *reply; in libhal_device_get_all_properties() local
447 reply = dbus_connection_send_with_reply_and_block (ctx->connection, in libhal_device_get_all_properties()
461 if (reply == NULL) { in libhal_device_get_all_properties()
466 dbus_message_iter_init (reply, &reply_iter); in libhal_device_get_all_properties()
489 dbus_message_unref (reply); in libhal_device_get_all_properties()
541 dbus_message_unref (reply); in libhal_device_get_all_properties()
1083 DBusMessage *reply; in libhal_get_all_devices() local
1102 reply = dbus_connection_send_with_reply_and_block (ctx->connection, message, -1, &_error); in libhal_get_all_devices()
1110 if (reply == NULL) { in libhal_get_all_devices()
1115 dbus_message_iter_init (reply, &reply_iter); in libhal_get_all_devices()
[all …]
/titanic_41/usr/src/cmd/sckmd/sparc/sun4u/
H A Dsckmd.c222 sckm_ioctl_status_t reply; in process_sckm_req() local
236 (void) memset(&reply, 0, sizeof (sckm_ioctl_status_t)); in process_sckm_req()
237 reply.transid = msg->transid; in process_sckm_req()
243 reply.status = SCKM_IOCTL_STAT_ERR_REQ; in process_sckm_req()
244 return (send_sckm_status(fd, &reply)); in process_sckm_req()
250 reply.status = SCKM_IOCTL_STAT_ERR_REQ; in process_sckm_req()
251 return (send_sckm_status(fd, &reply)); in process_sckm_req()
265 reply.status = SCKM_IOCTL_STAT_ERR_VERSION; in process_sckm_req()
266 reply.sadb_msg_version = SCKMD_CURR_PFKEY_VER; in process_sckm_req()
267 return (send_sckm_status(fd, &reply)); in process_sckm_req()
[all …]
/titanic_41/usr/src/cmd/svc/configd/
H A Dmaindoor.c54 repository_door_response_t reply; in main_switcher() local
67 reply.rdr_status = INVALID_RESULT; in main_switcher()
84 reply.rdr_status = REPOSITORY_DOOR_FAIL_BAD_REQUEST; in main_switcher()
93 reply.rdr_status = REPOSITORY_DOOR_FAIL_VERSION_MISMATCH; in main_switcher()
101 reply.rdr_status = REPOSITORY_DOOR_FAIL_BAD_REQUEST; in main_switcher()
106 reply.rdr_status = REPOSITORY_DOOR_FAIL_PERMISSION_DENIED; in main_switcher()
113 reply.rdr_status = create_connection(ti->ti_ucred, request, in main_switcher()
115 if (reply.rdr_status != REPOSITORY_DOOR_SUCCESS) { in main_switcher()
126 reply.rdr_status = REPOSITORY_DOOR_FAIL_BAD_REQUEST; in main_switcher()
131 assert(reply.rdr_status != INVALID_RESULT); in main_switcher()
[all …]
/titanic_41/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c134 dhcp_ipc_reply_t *reply = calloc(1, DHCP_IPC_REPLY_SIZE + buffer_size); in dhcp_ipc_alloc_reply() local
136 if (reply == NULL) in dhcp_ipc_alloc_reply()
139 reply->message_type = request->message_type; in dhcp_ipc_alloc_reply()
140 reply->ipc_id = request->ipc_id; in dhcp_ipc_alloc_reply()
141 reply->return_code = return_code; in dhcp_ipc_alloc_reply()
142 reply->data_length = buffer_size; in dhcp_ipc_alloc_reply()
143 reply->data_type = data_type; in dhcp_ipc_alloc_reply()
146 (void) memcpy(reply->buffer, buffer, buffer_size); in dhcp_ipc_alloc_reply()
148 return (reply); in dhcp_ipc_alloc_reply()
161 dhcp_ipc_get_data(dhcp_ipc_reply_t *reply, size_t *size, dhcp_data_type_t *type) in dhcp_ipc_get_data() argument
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dprompter.c72 if (prompts[i].reply->length > INT_MAX) in krb5_prompter_posix()
83 (void)memset(prompts[i].reply->data, 0, prompts[i].reply->length); in krb5_prompter_posix()
86 retp = fgets(prompts[i].reply->data, (int)prompts[i].reply->length, in krb5_prompter_posix()
100 retp = strchr(prompts[i].reply->data, '\n'); in krb5_prompter_posix()
113 prompts[i].reply->length = strlen(prompts[i].reply->data); in krb5_prompter_posix()
263 memset(prompts[i].reply->data, 0, prompts[i].reply->length); in krb5_prompter_posix()
265 if (fgets(prompts[i].reply->data, prompts[i].reply->length, stdin) in krb5_prompter_posix()
277 if ((ptr = strchr(prompts[i].reply->data, '\n'))) in krb5_prompter_posix()
284 prompts[i].reply->length = strlen(prompts[i].reply->data); in krb5_prompter_posix()
295 memset(prompts[i].reply->data, 0, prompts[i].reply->length); in krb5_prompter_posix()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dmk_rep.c47 krb5_ap_rep reply; in krb5_mk_rep() local
78 scratch, &reply.enc_part))) in krb5_mk_rep()
81 if (!(retval = encode_krb5_ap_rep(&reply, &toutbuf))) { in krb5_mk_rep()
86 memset(reply.enc_part.ciphertext.data, 0, reply.enc_part.ciphertext.length); in krb5_mk_rep()
87 free(reply.enc_part.ciphertext.data); in krb5_mk_rep()
88 reply.enc_part.ciphertext.length = 0; in krb5_mk_rep()
89 reply.enc_part.ciphertext.data = 0; in krb5_mk_rep()
/titanic_41/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_doorsvc.c754 smb_gmttoken_response_t reply; in smbd_dop_vss_get_snapshots() local
758 bzero(&reply, sizeof (smb_gmttoken_response_t)); in smbd_dop_vss_get_snapshots()
764 reply.gtr_gmttokens.gtr_gmttokens_val = malloc(request.gtq_count * in smbd_dop_vss_get_snapshots()
766 bzero(reply.gtr_gmttokens.gtr_gmttokens_val, request.gtq_count * in smbd_dop_vss_get_snapshots()
769 if (reply.gtr_gmttokens.gtr_gmttokens_val == NULL) { in smbd_dop_vss_get_snapshots()
775 &reply.gtr_count, in smbd_dop_vss_get_snapshots()
776 &reply.gtr_gmttokens.gtr_gmttokens_len, in smbd_dop_vss_get_snapshots()
777 reply.gtr_gmttokens.gtr_gmttokens_val); in smbd_dop_vss_get_snapshots()
779 arg->rbuf = smb_common_encode(&reply, smb_gmttoken_response_xdr, in smbd_dop_vss_get_snapshots()
786 for (i = 0, gmtp = reply.gtr_gmttokens.gtr_gmttokens_val; in smbd_dop_vss_get_snapshots()
[all …]
/titanic_41/usr/src/cmd/hal/utils/
H A Dadt_data.c28 DBusMessage *reply; in get_audit_export_data() local
51 reply = dbus_connection_send_with_reply_and_block (bus, in get_audit_export_data()
60 if (reply == NULL) { in get_audit_export_data()
65 dbus_message_iter_init (reply, &iter); in get_audit_export_data()
71 dbus_message_unref (reply); in get_audit_export_data()
86 dbus_message_unref (reply); in get_audit_export_data()
97 dbus_message_unref (reply); in get_audit_export_data()
/titanic_41/usr/src/uts/common/fs/smbsrv/
H A Dsmb_nt_transact_quota.c126 smb_quota_response_t reply; in smb_nt_transact_query_quota() local
130 bzero(&reply, sizeof (smb_quota_response_t)); in smb_nt_transact_query_quota()
191 if (smb_quota_query(sr->sr_server, &request, &reply) != 0) { in smb_nt_transact_query_quota()
194 status = reply.qr_status; in smb_nt_transact_query_quota()
197 &request, &reply, ofile); in smb_nt_transact_query_quota()
199 xdr_free(smb_quota_response_xdr, (char *)&reply); in smb_nt_transact_query_quota()
260 uint32_t reply; in smb_nt_transact_set_quota() local
317 if (smb_quota_set(sr->sr_server, &request, &reply) != 0) { in smb_nt_transact_set_quota()
320 status = reply; in smb_nt_transact_set_quota()
321 xdr_free(xdr_uint32_t, (char *)&reply); in smb_nt_transact_set_quota()
[all …]
H A Dsmb_echo.c58 struct mbuf_chain reply; in smb_com_echo() local
86 MBC_INIT(&reply, SMB_HEADER_ED_LEN + 10 + nbytes); in smb_com_echo()
88 (void) smb_mbc_encodef(&reply, SMB_HEADER_ED_FMT, in smb_com_echo()
102 (void) smb_mbc_encodef(&reply, "bww#c", 1, i, in smb_com_echo()
106 smb_sign_reply(sr, &reply); in smb_com_echo()
108 (void) smb_session_send(sr->session, 0, &reply); in smb_com_echo()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_nat.c86 ilb_show_info_t *reply; in ilbd_show_nat() local
111 reply = (ilb_show_info_t *)&((ilb_comm_t *)rbuf)->ic_data; in ilbd_show_nat()
144 reply->sn_num = kcmd->num_nat; in ilbd_show_nat()
145 *rbufsz += reply->sn_num * sizeof (ilb_nat_info_t); in ilbd_show_nat()
161 nat_ret = (ilb_nat_info_t *)&reply->sn_data; in ilbd_show_nat()
207 ilb_show_info_t *reply; in ilbd_show_sticky() local
232 reply = (ilb_show_info_t *)&((ilb_comm_t *)rbuf)->ic_data; in ilbd_show_sticky()
265 reply->sn_num = kcmd->num_sticky; in ilbd_show_sticky()
266 *rbufsz += reply->sn_num * sizeof (ilb_persist_info_t); in ilbd_show_sticky()
278 st_ret = (ilb_persist_info_t *)&reply->sn_data; in ilbd_show_sticky()

123456789