2018-12-12 15:25:04 +01:00
|
|
|
## API List
|
2018-12-09 13:44:32 +01:00
|
|
|
|
2018-12-12 15:25:04 +01:00
|
|
|
APIs given by COS2000 libraries
|
2018-12-09 13:44:32 +01:00
|
|
|
|
2018-12-12 15:25:04 +01:00
|
|
|
### LIBC
|
2018-12-09 13:44:32 +01:00
|
|
|
|
2018-12-12 15:25:04 +01:00
|
|
|
All fonction in the "libc" library.
|
2018-12-09 13:44:32 +01:00
|
|
|
|
2018-12-12 15:25:04 +01:00
|
|
|
------
|
2018-12-09 13:44:32 +01:00
|
|
|
|
2018-12-12 17:57:23 +01:00
|
|
|
`u32 libc_testapi(void);`
|
2018-12-09 13:44:32 +01:00
|
|
|
|
2018-12-12 15:25:04 +01:00
|
|
|
*Description: function to test if the syscall mecanism is running.*
|
|
|
|
|
|
|
|
* syscall id : **0**
|
|
|
|
* arguments : **0**
|
|
|
|
* results : **yes (always 0x66666666)**
|
|
|
|
|
|
|
|
------
|
2018-12-12 17:57:23 +01:00
|
|
|
|
|
|
|
`u32 libc_exit(u32 errorcode);`
|
|
|
|
|
|
|
|
*Description: tell system that the user process is now finish. Free all ressources affected.*
|
|
|
|
|
|
|
|
* syscall id : **1**
|
|
|
|
* arguments : **1**
|
|
|
|
* * argument 1 : **u32 pid** *PID process to free*
|
|
|
|
* results : **no**
|
|
|
|
|
|
|
|
------
|