2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: stub function generator for clib functions
13 #include <exec/libraries.h>
15 #define SYSTEM_CALL(name, alias...) { #name , #alias },
23 #include "../include/sys/syscall.def"
27 int main(int argc
, char *argv
[])
33 fprintf(stderr
, "Argument required: either '-list' or the name of the function\n");
37 if (!strcmp(argv
[1], "-list"))
39 for (n
=0; syscalls
[n
].name
; n
++)
40 printf("%s\n",syscalls
[n
].name
);
45 for (n
=0; syscalls
[n
].name
!= NULL
; n
++)
46 if (!strcmp(syscalls
[n
].name
, argv
[1]))
48 printf(STUBCODE_INIT
);
50 syscalls
[n
].name
, "aroscbase",
51 &(__AROS_GETJUMPVEC(NULL
, (n
+1+LIB_RESERVED
))->vec
)
53 if (syscalls
[n
].alias
[0] != '\0' )
56 syscalls
[n
].name
, syscalls
[n
].alias
63 fprintf(stderr
, "Invalid function name \"%s\"\n", argv
[1]);