Subversion Repositories HelenOS

Rev

Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4377 Rev 4692
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);
-
 
51
extern int task_retval(int val);
-
 
52
 
45
 
53
 
46
#endif
54
#endif
47
 
55
 
48
/** @}
56
/** @}
49
 */
57
 */