zephyr/lib/posix
Gerard Marull-Paretas 79e6b0e0f6 includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h>
As of today <zephyr/zephyr.h> is 100% equivalent to <zephyr/kernel.h>.
This patch proposes to then include <zephyr/kernel.h> instead of
<zephyr/zephyr.h> since it is more clear that you are including the
Kernel APIs and (probably) nothing else. <zephyr/zephyr.h> sounds like a
catch-all header that may be confusing. Most applications need to
include a bunch of other things to compile, e.g. driver headers or
subsystem headers like BT, logging, etc.

The idea of a catch-all header in Zephyr is probably not feasible
anyway. Reason is that Zephyr is not a library, like it could be for
example `libpython`. Zephyr provides many utilities nowadays: a kernel,
drivers, subsystems, etc and things will likely grow. A catch-all header
would be massive, difficult to keep up-to-date. It is also likely that
an application will only build a small subset. Note that subsystem-level
headers may use a catch-all approach to make things easier, though.

NOTE: This patch is **NOT** removing the header, just removing its usage
in-tree. I'd advocate for its deprecation (add a #warning on it), but I
understand many people will have concerns.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-09-05 16:31:47 +02:00
..
getopt includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
clock.c posix: clock: make tz non-const in gettimeofday 2022-09-03 04:00:37 -04:00
CMakeLists.txt lib: posix: add perror() implementation 2022-07-04 22:53:36 +02:00
eventfd.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
fs.c lib/posix/fs: fix end-of-dir in readdir 2022-05-13 11:10:04 -07:00
Kconfig lib: posix: semaphore: use consistent timebase in sem_timedwait 2022-06-24 20:12:05 +02:00
mqueue.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
nanosleep.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
perror.c lib: posix: add perror() implementation 2022-07-04 22:53:36 +02:00
pthread.c posix: pthread: consider PTHREAD_EXITED state in pthread_create 2022-07-12 10:16:02 +02:00
pthread_barrier.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_common.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_cond.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_key.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_mutex.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_rwlock.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
pthread_sched.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
semaphore.c lib: posix: semaphore: use consistent timebase in sem_timedwait 2022-06-24 20:12:05 +02:00
sleep.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
timer.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00