added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / rom / exec / exec_util.h
blobd411d4e0c2c61eb8be8e355162c162c213a77f1e
1 #ifndef _EXEC_UTIL_H
2 #define _EXEC_UTIL_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Utility functions for exec.
9 Lang: english
12 #ifndef EXEC_TYPES_H
13 # include <exec/types.h>
14 #endif
16 #ifndef EXEC_TASKS_H
17 struct Task;
18 #endif
19 #ifndef EXEC_LISTS_H
20 struct List;
21 #endif
22 #ifndef ETASK_H
23 struct IntETask;
24 #endif
27 Prototypes
29 APTR Exec_AllocTaskMem (struct Task * task, ULONG size, ULONG flags, struct ExecBase *SysBase);
30 void Exec_FreeTaskMem (struct Task * task, APTR mem, struct ExecBase *SysBase);
32 void Exec_InitETask(struct Task *task, struct ETask *etask, struct ExecBase *SysBase);
33 struct Task *Exec_FindTaskByID(ULONG id, struct ExecBase *SysBase);
34 struct ETask *Exec_FindChild(ULONG id, struct ExecBase *SysBase);
35 struct IntETask *FindETask(struct List *, ULONG id, struct ExecBase *SysBase);
38 * Pseudo-functions, including SysBase for nicer calling...
40 #define AllocTaskMem(t,s,f) Exec_AllocTaskMem(t,s,f,SysBase)
41 #define FreeTaskMem(t,m) Exec_FreeTaskMem(t,m,SysBase)
42 #define FindTaskByID(i) Exec_FindTaskByID(i,SysBase)
43 #define FindChild(i) Exec_FindChild(i,SysBase)
44 #define FindETask(l,i) Exec_FindETask(l,i,SysBase)
45 #define InitETask(t,e) Exec_InitETask(t,e,SysBase)
47 #endif /* _EXEC_UTIL_H */