- Timestamp:
- 2009-03-01T15:00:24Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b241f3
- Parents:
- 4c7257b
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/task.c
r4c7257b rbc18d63 39 39 #include <errno.h> 40 40 #include <loader/loader.h> 41 #include <string.h> 41 42 42 43 task_id_t task_get_id(void) … … 47 48 48 49 return task_id; 50 } 51 52 /** Set the task name. 53 * 54 * @param name The new name, typically the command used to execute the 55 * program. 56 * @return Zero on success or negative error code. 57 */ 58 int task_set_name(const char *name) 59 { 60 return __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, strlen(name)); 49 61 } 50 62 -
uspace/lib/libc/include/task.h
r4c7257b rbc18d63 41 41 42 42 extern task_id_t task_get_id(void); 43 extern int task_set_name(const char *name); 43 44 extern task_id_t task_spawn(const char *path, char *const argv[]); 44 45 -
uspace/srv/loader/main.c
r4c7257b rbc18d63 271 271 static void loader_run(ipc_callid_t rid, ipc_call_t *request) 272 272 { 273 /* Set the task name. */ 274 task_set_name(pathname); 275 273 276 if (is_dyn_linked == true) { 274 277 /* Dynamically linked program */
Note:
See TracChangeset
for help on using the changeset viewer.