Changeset adb49f58 in mainline for uspace/lib
- Timestamp:
 - 2009-07-06T20:16:15Z (16 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - 95bc57c
 - Parents:
 - 0315679
 - Location:
 - uspace/lib/libc
 - Files:
 - 
      
- 2 edited
 
- 
          
  generic/task.c (modified) (1 diff)
 - 
          
  include/task.h (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/lib/libc/generic/task.c
r0315679 radb49f58 149 149 } 150 150 151 int task_wait(task_id_t id, int *retval)151 int task_wait(task_id_t id, task_exit_t *texit, int *retval) 152 152 { 153 ipcarg_t rv;153 ipcarg_t te, rv; 154 154 int rc; 155 155 156 rc = (int) async_req_2_1(PHONE_NS, NS_TASK_WAIT, LOWER32(id), 157 UPPER32(id), &rv); 156 rc = (int) async_req_2_2(PHONE_NS, NS_TASK_WAIT, LOWER32(id), 157 UPPER32(id), &te, &rv); 158 *texit = te; 158 159 *retval = rv; 159 160  - 
      
uspace/lib/libc/include/task.h
r0315679 radb49f58 40 40 typedef uint64_t task_id_t; 41 41 42 typedef enum { 43 TASK_EXIT_NORMAL, 44 TASK_EXIT_UNEXPECTED 45 } task_exit_t; 46 42 47 extern task_id_t task_get_id(void); 43 48 extern int task_set_name(const char *name); 44 49 extern task_id_t task_spawn(const char *path, char *const argv[]); 45 extern int task_wait(task_id_t id, int *retval);50 extern int task_wait(task_id_t id, task_exit_t *texit, int *retval); 46 51 extern int task_retval(int val); 47 52  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  