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