6.12. EwoK Standard library¶
Contents
6.12.1. Overview¶
EwoK standard library is the EwoK microkernel userspace small libc implementation, hosting:
- The userspace syscall part
- The various embedded-specific utility functions (such as registers manipulation helpers)
- Some various basic functions for string manipulation, etc.
6.12.2. API¶
Libstd does not aim to be a POSIX compliant library. Nevertheless, for functions that behave like POSIX ones, libstd try to keep the POSIX conformant API.
Each function is described bellow.
- 6.12.2.1. aprintf_flush
- 6.12.2.2. aprintf
- 6.12.2.3. get_random
- 6.12.2.4. get_reg_value
- 6.12.2.5. hexdump
- 6.12.2.6. htonl
- 6.12.2.7. htons
- 6.12.2.8. memcmp
- 6.12.2.9. mutex_init
- 6.12.2.10. mutex_lock
- 6.12.2.11. mutex_trylock
- 6.12.2.12. mutex_unlock
- 6.12.2.13. ntohl
- 6.12.2.14. ntohs
- 6.12.2.15. printf
- 6.12.2.16. queue_available_space
- 6.12.2.17. queue_create
- 6.12.2.18. queue_dequeue
- 6.12.2.19. queue_enqueue
- 6.12.2.20. queue_is_empty
- 6.12.2.21. read_reg16_value
- 6.12.2.22. read_reg_value
- 6.12.2.23. semaphore_init
- 6.12.2.24. semaphore_lock
- 6.12.2.25. semaphore_release
- 6.12.2.26. semaphore_trylock
- 6.12.2.27. set_reg_value
- 6.12.2.28. snprintf
- 6.12.2.29. sprintf
- 6.12.2.30. strcmp
- 6.12.2.31. strcpy
- 6.12.2.32. strlen
- 6.12.2.33. strncmp
- 6.12.2.34. strncpy
- 6.12.2.35. vprintf
- 6.12.2.36. vsnprintf
- 6.12.2.37. vsprintf
- 6.12.2.38. wfree
- 6.12.2.39. wmalloc_init
- 6.12.2.40. wmalloc
- 6.12.2.41. write_reg16_value
- 6.12.2.42. write_reg_value
6.12.3. FAQ¶
- Are there helper functions to manipulate registers in userspace?
Helper functions and macros have been written to access registers.
This API is in the libstd regutils.h
header. Applications can include
this header directly in order to use it.