Subversion Repositories HelenOS

Rev

Rev 4537 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4537 Rev 4668
Line 37... Line 37...
37
 
37
 
38
#include <sys/types.h>
38
#include <sys/types.h>
39
 
39
 
40
typedef uint64_t task_id_t;
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
extern task_id_t task_get_id(void);
47
extern task_id_t task_get_id(void);
43
extern int task_set_name(const char *name);
48
extern int task_set_name(const char *name);
44
extern task_id_t task_spawn(const char *path, char *const argv[]);
49
extern task_id_t task_spawn(const char *path, char *const argv[]);
-
 
50
extern int task_wait(task_id_t id, task_exit_t *texit, int *retval);
45
extern int task_wait(task_id_t id);
51
extern int task_retval(int val);
-
 
52
 
46
 
53
 
47
#endif
54
#endif
48
 
55
 
49
/** @}
56
/** @}
50
 */
57
 */