use new platform macros to access scheduling/per-cpu flags. fix execsmp wait()
[AROS.git] / workbench / tools / HDToolBox / hdtoolbox_support.h
blob42f8a6187bf5010f1d1efe97dc89bb3381638117
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef HDTOOLBOX_SUPPORT_H
7 #define HDTOOLBOX_SUPPORT_H
9 #include <proto/partition.h>
10 #include <proto/alib.h>
11 #include <exec/nodes.h>
12 #include <exec/lists.h>
14 #include "partitions.h"
16 struct Node *getNumNode(struct List *, int);
17 ULONG getNodeNum(struct Node *);
18 ULONG countNodes(struct List *, UBYTE);
19 LONG RequestList(struct List *, ULONG *);
20 void typestrncpy(STRPTR, STRPTR, ULONG);
21 void getSizeStr(STRPTR, ULONG);
22 ULONG sizeStrToUL(STRPTR);
23 UWORD strcpyESC(STRPTR dst, STRPTR fmt);
24 #ifdef __AROS__
25 #ifndef HDTB_HAVE_VARARGPROTOS
26 LONG GetPartitionAttrsA(struct PartitionHandle *, IPTR, ... );
27 LONG SetPartitionAttrsA(struct PartitionHandle *, IPTR, ... );
28 LONG GetPartitionTableAttrsA(struct PartitionHandle *, IPTR, ... );
29 #endif
30 #else
31 UWORD strcpyESC(STRPTR dst, STRPTR fmt, ...);
32 LONG GetPartitionAttrsA(struct PartitionHandle *, IPTR, ... ) __stackparm;
33 LONG SetPartitionAttrsA(struct PartitionHandle *, IPTR, ... ) __stackparm;
34 LONG GetPartitionTableAttrsA(struct PartitionHandle *, IPTR, ... ) __stackparm;
35 #endif
36 ULONG getAttrInfo(const struct PartitionAttribute *, ULONG);
37 UBYTE getBitNum(ULONG);
39 #endif