Samples
These samples demonstrate how to use the POSIX API in Zephyr.
- Environment Variables
Manipulate environment variables from a Zephyr application.
- eventfd()
Use ``eventfd()`` to create a file descriptor for event notification.
- gettimeofday() with clock initialization
Use ``gettimeofday()`` with clock initialization over SNTP.
- Hello, POSIX world!
Create a POSIX thread with ``pthread_create()`` and join it with ``pthread_join()``.
- Hello, Zephyr world!
Define a native ``k_thread`` at compile time and join it via ``pthread_join()``.
- POSIX Philosophers
Implement a solution to the Dining Philosophers problem using the POSIX API.
- uname()
Use ``uname()`` to acquire system information and output it to the console.