Changes in uspace/lib/c/include/task.h [9f5cf68:53031c2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/task.h
r9f5cf68 r53031c2 39 39 #include <abi/proc/task.h> 40 40 #include <stdarg.h> 41 #include <async.h> 42 #include <types/task.h> 41 43 42 typedef enum { 43 TASK_EXIT_NORMAL, 44 TASK_EXIT_UNEXPECTED 45 } task_exit_t; 44 typedef struct { 45 ipc_call_t result; 46 aid_t aid; 47 } task_wait_t; 48 49 struct _TASK; 50 typedef struct _TASK task_t; 46 51 47 52 extern task_id_t task_get_id(void); … … 49 54 extern int task_kill(task_id_t); 50 55 51 extern int task_spawnv(task_id_t *, const char *path, const char *const []); 52 extern int task_spawnvf(task_id_t *, const char *path, const char *const [], 53 int *const []); 54 extern int task_spawn(task_id_t *, const char *path, int, va_list ap); 55 extern int task_spawnl(task_id_t *, const char *path, ...); 56 extern int task_spawnv(task_id_t *, task_wait_t *, const char *path, 57 const char *const []); 58 extern int task_spawnvf(task_id_t *, task_wait_t *, const char *path, 59 const char *const [], int *const []); 60 extern int task_spawn(task_id_t *, task_wait_t *, const char *path, int, 61 va_list ap); 62 extern int task_spawnl(task_id_t *, task_wait_t *, const char *path, ...) 63 __attribute__((sentinel)); 56 64 57 extern int task_wait(task_id_t id, task_exit_t *, int *); 65 extern int task_setup_wait(task_id_t, task_wait_t *); 66 extern void task_cancel_wait(task_wait_t *); 67 extern int task_wait(task_wait_t *, task_exit_t *, int *); 68 extern int task_wait_task_id(task_id_t, task_exit_t *, int *); 58 69 extern int task_retval(int); 59 70
Note:
See TracChangeset
for help on using the changeset viewer.