Changes in uspace/lib/c/generic/task.c [1e9f8ab:0485135] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/task.c
r1e9f8ab r0485135 47 47 task_id_t task_get_id(void) 48 48 { 49 #ifdef __32_BITS__50 49 task_id_t task_id; 51 50 (void) __SYSCALL1(SYS_TASK_GET_ID, (sysarg_t) &task_id); 52 51 53 52 return task_id; 54 #endif /* __32_BITS__ */55 56 #ifdef __64_BITS__57 return (task_id_t) __SYSCALL0(SYS_TASK_GET_ID);58 #endif /* __64_BITS__ */59 53 } 60 54 … … 65 59 * 66 60 * @return Zero on success or negative error code. 61 * 67 62 */ 68 63 int task_set_name(const char *name) 69 64 { 70 65 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);83 66 } 84 67 … … 228 211 int task_wait(task_id_t id, task_exit_t *texit, int *retval) 229 212 { 230 sysarg_t te, rv;213 ipcarg_t te, rv; 231 214 int rc; 232 215
Note:
See TracChangeset
for help on using the changeset viewer.