Home
last modified time | relevance | path

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

123456789

/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libslp/clib/
H A DDAAdvert.c37 SLPError slp_unpackDAAdvert(char *reply, char **surl, char **scopes, in slp_unpackDAAdvert() argument
50 len = slp_get_length(reply); in slp_unpackDAAdvert()
51 off = SLP_HDRLEN + slp_get_langlen(reply); in slp_unpackDAAdvert()
53 if ((err = slp_get_sht(reply, len, &off, &protoErrCode)) != SLP_OK) in slp_unpackDAAdvert()
62 iov[0].iov_base = reply + off; in slp_unpackDAAdvert()
64 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert()
67 if ((err = slp_get_sht(reply, len, &off, &dummy)) != SLP_OK) { in slp_unpackDAAdvert()
73 iov[1].iov_base = reply + off; in slp_unpackDAAdvert()
75 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackDAAdvert()
81 iov[3].iov_base = reply + off; in slp_unpackDAAdvert()
[all …]
H A DSAAdvert.c38 SLPError slp_unpackSAAdvert(char *reply, char **surl, in slp_unpackSAAdvert() argument
50 len = slp_get_length(reply); in slp_unpackSAAdvert()
51 off = SLP_HDRLEN + slp_get_langlen(reply); in slp_unpackSAAdvert()
54 iov[0].iov_base = reply + off; in slp_unpackSAAdvert()
56 if ((err = slp_get_string(reply, len, &off, surl)) != SLP_OK) { in slp_unpackSAAdvert()
62 iov[2].iov_base = reply + off; in slp_unpackSAAdvert()
64 if ((err = slp_get_string(reply, len, &off, scopes)) != SLP_OK) { in slp_unpackSAAdvert()
70 iov[1].iov_base = reply + off; in slp_unpackSAAdvert()
72 if ((err = slp_get_string(reply, len, &off, attrs)) != SLP_OK) { in slp_unpackSAAdvert()
78 if ((err = slp_get_byte(reply, len, &off, &auth_cnt)) != SLP_OK) { in slp_unpackSAAdvert()
[all …]
H A Dslp_da_cache.c84 const char *reply; member
102 char *reply = NULL; in slp_find_das_cached() local
122 if (!(reply = malloc((*ans)->reply_len))) { in slp_find_das_cached()
127 (void) memcpy(reply, (*ans)->reply, (*ans)->reply_len); in slp_find_das_cached()
139 return (reply); in slp_find_das_cached()
147 void slp_put_das_cached(const char *query, const char *reply, in slp_put_das_cached() argument
170 if (!(ce->reply = malloc(len))) { in slp_put_das_cached()
176 (void) memcpy((void *) (ce->reply), reply, len); in slp_put_das_cached()
188 free((void *) ((*ce2)->reply)); in slp_put_das_cached()
210 free((void *) (ce->reply)); in free_cache_entry()
H A Dslp_net.c200 char *reply = NULL; in slp_uc_udp_send() local
228 if (!reply && !(reply = malloc(mtu))) { in slp_uc_udp_send()
261 if (recvfrom(sockfd, reply, mtu, 0, NULL, NULL) < 0) { in slp_uc_udp_send()
264 free(reply); reply = NULL; in slp_uc_udp_send()
273 slp_proto_err errcode = slp_get_errcode(reply); in slp_uc_udp_send()
291 free(reply); reply = NULL; in slp_uc_udp_send()
306 if (reply) free(reply); in slp_uc_udp_send()
310 if (reply) { in slp_uc_udp_send()
311 if (slp_get_overflow(reply)) in slp_uc_udp_send()
315 (void) slp_enqueue(hp->q, reply); in slp_uc_udp_send()
[all …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c137 dhcp_ipc_reply_t *reply = calloc(1, DHCP_IPC_REPLY_SIZE + buffer_size); in dhcp_ipc_alloc_reply() local
139 if (reply == NULL) in dhcp_ipc_alloc_reply()
142 reply->message_type = request->message_type; in dhcp_ipc_alloc_reply()
143 reply->ipc_id = request->ipc_id; in dhcp_ipc_alloc_reply()
144 reply->return_code = return_code; in dhcp_ipc_alloc_reply()
145 reply->data_length = buffer_size; in dhcp_ipc_alloc_reply()
146 reply->data_type = data_type; in dhcp_ipc_alloc_reply()
149 (void) memcpy(reply->buffer, buffer, buffer_size); in dhcp_ipc_alloc_reply()
151 return (reply); in dhcp_ipc_alloc_reply()
164 dhcp_ipc_get_data(dhcp_ipc_reply_t *reply, size_t *size, dhcp_data_type_t *type) in dhcp_ipc_get_data() argument
[all …]
/illumos-gate/usr/src/cmd/svc/configd/
H A Dmaindoor.c52 repository_door_response_t reply; in main_switcher() local
65 reply.rdr_status = INVALID_RESULT; in main_switcher()
82 reply.rdr_status = REPOSITORY_DOOR_FAIL_BAD_REQUEST; in main_switcher()
91 reply.rdr_status = REPOSITORY_DOOR_FAIL_VERSION_MISMATCH; in main_switcher()
99 reply.rdr_status = REPOSITORY_DOOR_FAIL_BAD_REQUEST; in main_switcher()
104 reply.rdr_status = REPOSITORY_DOOR_FAIL_PERMISSION_DENIED; in main_switcher()
111 reply.rdr_status = create_connection(ti->ti_ucred, request, in main_switcher()
113 if (reply.rdr_status != REPOSITORY_DOOR_SUCCESS) { in main_switcher()
124 reply.rdr_status = REPOSITORY_DOOR_FAIL_BAD_REQUEST; in main_switcher()
129 assert(reply.rdr_status != INVALID_RESULT); in main_switcher()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_doorsvc.c891 smb_gmttoken_response_t reply; in smbd_dop_vss_get_snapshots() local
895 bzero(&reply, sizeof (smb_gmttoken_response_t)); in smbd_dop_vss_get_snapshots()
901 reply.gtr_gmttokens.gtr_gmttokens_val = malloc(request.gtq_count * in smbd_dop_vss_get_snapshots()
903 bzero(reply.gtr_gmttokens.gtr_gmttokens_val, request.gtq_count * in smbd_dop_vss_get_snapshots()
906 if (reply.gtr_gmttokens.gtr_gmttokens_val == NULL) { in smbd_dop_vss_get_snapshots()
912 &reply.gtr_count, in smbd_dop_vss_get_snapshots()
913 &reply.gtr_gmttokens.gtr_gmttokens_len, in smbd_dop_vss_get_snapshots()
914 reply.gtr_gmttokens.gtr_gmttokens_val); in smbd_dop_vss_get_snapshots()
916 arg->rbuf = smb_common_encode(&reply, smb_gmttoken_response_xdr, in smbd_dop_vss_get_snapshots()
923 for (i = 0, gmtp = reply.gtr_gmttokens.gtr_gmttokens_val; in smbd_dop_vss_get_snapshots()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Drpc.c116 struct rpc_reply *reply; in rpc_call() local
169 recvrpc, &ptr, (void **)&reply, NULL); in rpc_call()
178 if (cc <= sizeof(*reply)) { in rpc_call()
188 auth = &reply->rp_u.rpu_rok.rok_auth; in rpc_call()
199 x = ntohl(reply->rp_u.rpu_rok.rok_status); in rpc_call()
207 rsize = cc - sizeof(*reply); in rpc_call()
208 *rdata = (void *)((uintptr_t)reply + sizeof(*reply)); in rpc_call()
223 struct rpc_reply *reply; in recvrpc() local
234 n = readudp(d, &ptr, (void **)&reply, tleft); in recvrpc()
240 x = ntohl(reply->rp_xid); in recvrpc()
[all …]
/illumos-gate/usr/src/cmd/hal/utils/
H A Dadt_data.c26 DBusMessage *reply; in get_audit_export_data() local
49 reply = dbus_connection_send_with_reply_and_block (bus, in get_audit_export_data()
58 if (reply == NULL) { in get_audit_export_data()
63 dbus_message_iter_init (reply, &iter); in get_audit_export_data()
69 dbus_message_unref (reply); in get_audit_export_data()
84 dbus_message_unref (reply); in get_audit_export_data()
95 dbus_message_unref (reply); in get_audit_export_data()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_nt_transact_quota.c91 smb_quota_response_t reply; in smb_nt_transact_query_quota() local
95 bzero(&reply, sizeof (smb_quota_response_t)); in smb_nt_transact_query_quota()
156 if (smb_quota_query(sr->sr_server, &request, &reply) != 0) { in smb_nt_transact_query_quota()
159 status = reply.qr_status; in smb_nt_transact_query_quota()
163 &request, &reply, ofile); in smb_nt_transact_query_quota()
167 xdr_free(smb_quota_response_xdr, (char *)&reply); in smb_nt_transact_query_quota()
228 uint32_t reply; in smb_nt_transact_set_quota() local
285 if (smb_quota_set(sr->sr_server, &request, &reply) != 0) { in smb_nt_transact_set_quota()
288 status = reply; in smb_nt_transact_set_quota()
289 xdr_free(xdr_uint32_t, (char *)&reply); in smb_nt_transact_set_quota()

123456789