Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/loader.c

    r01900b6 r21d3201  
    4646#include "private/loader.h"
    4747
    48 /** Spawn a new program loader.
    49  *
    50  * Spawn a new program loader task. The loader then independetly
    51  * connects to the naming service.
     48/** Connect to a new program loader.
     49 *
     50 * Spawns a new program loader task and returns the connection structure.
    5251 *
    5352 * @param name Symbolic name to set on the newly created task.
    5453 *
    5554 * @return Error code.
    56  *
    5755 */
    5856errno_t loader_spawn(const char *name)
     
    6260}
    6361
    64 /** Connect to a program loader.
    65  *
    66  * @param rc Placeholder for return code. Unused if NULL.
    67  *
    68  * @return Loader structure.
    69  *
    70  */
    71 loader_t *loader_connect(errno_t *rc)
     62loader_t *loader_connect(void)
    7263{
    7364        loader_t *ldr = malloc(sizeof(loader_t));
     
    7667
    7768        async_sess_t *sess =
    78             service_connect_blocking(SERVICE_LOADER, INTERFACE_LOADER, 0, rc);
     69            service_connect_blocking(SERVICE_LOADER, INTERFACE_LOADER, 0);
    7970        if (sess == NULL) {
    8071                free(ldr);
     
    354345}
    355346
    356 /** Instruct loader to execute the program and do not wait for reply.
    357  *
    358  * This function does not block even if the loaded task is stopped
    359  * for debugging.
    360  *
    361  * After using this function, no further operations can be performed
    362  * on the loader structure and it is deallocated.
    363  *
    364  * @param ldr Loader connection structure.
    365  *
    366  * @return Zero on success or an error code.
    367  *
    368  */
    369 void loader_run_nowait(loader_t *ldr)
    370 {
    371         async_exch_t *exch = async_exchange_begin(ldr->sess);
    372         async_msg_0(exch, LOADER_RUN);
    373         async_exchange_end(exch);
    374 
    375         async_hangup(ldr->sess);
    376         free(ldr);
    377 }
    378 
    379347/** Cancel the loader session.
    380348 *
Note: See TracChangeset for help on using the changeset viewer.