Changeset 24345a5 in mainline for uspace/lib/libc/generic


Ignore:
Timestamp:
2008-11-08T10:01:59Z (17 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24d6efc
Parents:
7faabb7
Message:

Set meaningful names for loaded programs. Now 'tasks' kconsole command is much less obscure.

Location:
uspace/lib/libc/generic
Files:
2 edited

Legend:

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

    r7faabb7 r24345a5  
    4747 *
    4848 * Spawns a new program loader task and returns the connection structure.
     49 * @param name  Symbolic name to set on the newly created task.
    4950 * @return      Pointer to the loader connection structure (should be
    5051 *              de-allocated using free() after use).
    5152 */
    52 loader_t *loader_spawn(void)
     53loader_t *loader_spawn(char *name)
    5354{
    5455        int phone_id, rc;
     
    5859         * Ask kernel to spawn a new loader task.
    5960         */
    60         rc = __SYSCALL1(SYS_PROGRAM_SPAWN_LOADER, (sysarg_t) &phone_id);
     61        rc = __SYSCALL3(SYS_PROGRAM_SPAWN_LOADER, (sysarg_t) &phone_id,
     62                (sysarg_t) name, strlen(name));
    6163        if (rc != 0)
    6264                return NULL;
  • uspace/lib/libc/generic/task.c

    r7faabb7 r24345a5  
    6565
    6666        /* Spawn a program loader. */   
    67         ldr = loader_spawn();
     67        ldr = loader_spawn(path);
    6868        if (ldr == NULL)
    6969                return 0;
Note: See TracChangeset for help on using the changeset viewer.