2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: stub function generator for clib functions
9 #include <exec/libraries.h>
17 #define SYSTEM_CALL(name, alias...) { #name , #alias },
25 #include "../include/sys/syscall.def"
29 int main(int argc
, char *argv
[])
35 fprintf(stderr
, "Argument required: either '-list' or the name of the function\n");
39 if (!strcmp(argv
[1], "-list"))
41 for (n
=0; syscalls
[n
].name
; n
++)
42 printf("%s\n",syscalls
[n
].name
);
47 for (n
=0; syscalls
[n
].name
!= NULL
; n
++)
48 if (!strcmp(syscalls
[n
].name
, argv
[1]))
50 printf(STUBCODE_INIT
);
52 syscalls
[n
].name
, "aroscbase",
53 &(__AROS_GETJUMPVEC(NULL
, (n
+1+LIB_RESERVED
))->vec
)
55 if (syscalls
[n
].alias
[0] != '\0' )
58 syscalls
[n
].name
, syscalls
[n
].alias
65 fprintf(stderr
, "Invalid function name \"%s\"\n", argv
[1]);