Changes in uspace/lib/c/generic/loader.c [63f8966:6e84dc3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/loader.c
r63f8966 r6e84dc3 33 33 */ 34 34 35 #include <ipc/ipc.h>36 35 #include <ipc/loader.h> 37 36 #include <ipc/services.h> 37 #include <ipc/ns.h> 38 38 #include <libc.h> 39 39 #include <task.h> … … 63 63 loader_t *loader_connect(void) 64 64 { 65 int phone_id = ipc_connect_me_to_blocking(PHONE_NS,SERVICE_LOAD, 0, 0);65 int phone_id = service_connect_blocking(SERVICE_LOAD, 0, 0); 66 66 if (phone_id < 0) 67 67 return NULL; … … 96 96 } 97 97 98 ipcarg_t retval;98 sysarg_t retval; 99 99 async_wait_for(req, &retval); 100 100 return (int) retval; … … 131 131 } 132 132 133 ipcarg_t retval;133 sysarg_t retval; 134 134 async_wait_for(req, &retval); 135 135 return (int) retval; … … 160 160 int rc = async_data_write_start(ldr->phone_id, (void *) pa, pa_len); 161 161 if (rc != EOK) { 162 free(pa); 162 163 async_wait_for(req, NULL); 163 164 return rc; … … 166 167 free(pa); 167 168 168 ipcarg_t retval;169 sysarg_t retval; 169 170 async_wait_for(req, &retval); 170 171 return (int) retval; … … 213 214 ipc_call_t answer; 214 215 aid_t req = async_send_0(ldr->phone_id, LOADER_SET_ARGS, &answer); 215 ipcarg_t rc = async_data_write_start(ldr->phone_id, (void *) arg_buf, buffer_size);216 sysarg_t rc = async_data_write_start(ldr->phone_id, (void *) arg_buf, buffer_size); 216 217 if (rc != EOK) { 217 218 async_wait_for(req, NULL); … … 267 268 ipc_call_t answer; 268 269 aid_t req = async_send_0(ldr->phone_id, LOADER_SET_FILES, &answer); 269 ipcarg_t rc = async_data_write_start(ldr->phone_id, (void *) files_buf,270 sysarg_t rc = async_data_write_start(ldr->phone_id, (void *) files_buf, 270 271 count * sizeof(fdi_node_t)); 271 272 if (rc != EOK) { … … 319 320 return rc; 320 321 321 ipc_hangup(ldr->phone_id);322 async_hangup(ldr->phone_id); 322 323 ldr->phone_id = 0; 323 324 return EOK; … … 337 338 void loader_abort(loader_t *ldr) 338 339 { 339 ipc_hangup(ldr->phone_id);340 async_hangup(ldr->phone_id); 340 341 ldr->phone_id = 0; 341 342 }
Note:
See TracChangeset
for help on using the changeset viewer.