- Timestamp:
- 2010-12-29T17:42:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f418e51
- Parents:
- c41834a
- Location:
- uspace
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
rc41834a r1e9f8ab 38 38 app/getterm \ 39 39 app/init \ 40 app/kill \ 40 41 app/klog \ 41 42 app/mkfat \ -
uspace/lib/c/generic/task.c
rc41834a r1e9f8ab 65 65 * 66 66 * @return Zero on success or negative error code. 67 *68 67 */ 69 68 int task_set_name(const char *name) 70 69 { 71 70 return __SYSCALL2(SYS_TASK_SET_NAME, (sysarg_t) name, str_size(name)); 71 } 72 73 /** Kill a task. 74 * 75 * @param task_id ID of task to kill. 76 * 77 * @return Zero on success or negative error code. 78 */ 79 80 int task_kill(task_id_t task_id) 81 { 82 return (int) __SYSCALL1(SYS_TASK_KILL, (sysarg_t) &task_id); 72 83 } 73 84 -
uspace/lib/c/include/task.h
rc41834a r1e9f8ab 47 47 extern task_id_t task_get_id(void); 48 48 extern int task_set_name(const char *); 49 extern int task_kill(task_id_t); 50 49 51 extern task_id_t task_spawn(const char *, const char *const[], int *); 50 52 extern int task_spawnv(task_id_t *, const char *path, const char *const []);
Note:
See TracChangeset
for help on using the changeset viewer.