Changeset 01900b6 in mainline for uspace/lib/c/generic/loader.c
- Timestamp:
- 2020-01-21T15:10:26Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 51da086
- Parents:
- f8fb03b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/loader.c
rf8fb03b r01900b6 46 46 #include "private/loader.h" 47 47 48 /** Connect to a new program loader. 49 * 50 * Spawns a new program loader task and returns the connection structure. 48 /** Spawn a new program loader. 49 * 50 * Spawn a new program loader task. The loader then independetly 51 * connects to the naming service. 51 52 * 52 53 * @param name Symbolic name to set on the newly created task. 53 54 * 54 55 * @return Error code. 56 * 55 57 */ 56 58 errno_t loader_spawn(const char *name) … … 60 62 } 61 63 62 loader_t *loader_connect(void) 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) 63 72 { 64 73 loader_t *ldr = malloc(sizeof(loader_t)); … … 67 76 68 77 async_sess_t *sess = 69 service_connect_blocking(SERVICE_LOADER, INTERFACE_LOADER, 0 );78 service_connect_blocking(SERVICE_LOADER, INTERFACE_LOADER, 0, rc); 70 79 if (sess == NULL) { 71 80 free(ldr);
Note:
See TracChangeset
for help on using the changeset viewer.