Commit b1ddb9a
committed
posix: remove zephyr/posix in header prefixes
If C libraries provide conformant POSIX headers, then use the headers
provided by the C library.
Otherwise, C library maintainers may add `include/zephyr/posix` to their
standard search path.
This change removes the requirement to have `<zephyr/posix/...>` prefixing
all standard POSIX includes in Zephyr.
The main reason that it was required was due to conflicts between C
library time.h, signal.h and the fact that Zephyr posix headers were being
somewhat ad-hoc mixed with libc posix headers.
Now, any (even partially) POSIX-conformant C libraries are expected to
provide their own types, constants, and headers, and Zephyr's
implementation uses those definitions.
If any definitions are missing, we define them on a per-libc basis. This
can also be done out-of-tree, which allows for implementors to take
advantage of the `CONFIG_TC_PROVIDES_POSIX..` options.
This is likely the last major commit required before we deprecate the
`CONFIG_POSIX_API` Kconfig option in favour of POSIX subprofiling \o/
Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>1 parent ea8f76d commit b1ddb9a
File tree
248 files changed
+2212
-1110
lines changed- drivers
- modem
- net
- wifi/simplelink
- include/zephyr
- net
- posix
- arpa
- sys
- lib
- libc
- arcmwdt/include
- arpa
- netinet
- net
- sys
- armstdc/include
- common/source
- thrd
- time
- minimal
- include
- sys
- newlib
- include
- arpa
- netinet
- net
- sys
- picolibc
- include
- arpa
- netinet
- net
- sys
- os
- zvfs
- posix
- c_lib_ext
- getopt
- eventfd
- options
- shell
- modules
- liblc3
- openthread/platform
- thrift/src/thrift
- server
- transport
- samples
- drivers/ipm/ipm_esp32/src
- net
- capture/src
- common
- mdns_responder/src
- sockets
- echo_async_select/src
- echo_async/src
- echo_client/src
- echo_server
- src
- echo_service/src
- posix/philosophers/src
- shields/npm6001_ek/src
- subsys/shell/shell_module/src
- subsys
- crc
- fs/virtiofs
- net
- l2/wifi
- lib
- http
- lwm2m
- ptp
- sockets
- websocket
- shell
- modules
- tests
- benchmarks/posix/threads/src
- net
- ipv4_fragment/src
- lib/http_server/core/src
- socket
- af_packet/src
- offload_dispatcher/src
- socketpair/src
- tcp/src
- tls_configurations/src
- tls_ext/src
- tls/src
- posix
- barriers/src
- c_lib_ext/src
- common
- src
- eventfd/src
- fs/src
- headers/src
- net/src
- signals/src
- single_process
- src
- xsi_realtime/src
- xsi_system_logging/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
248 files changed
+2212
-1110
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | | - | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | | - | |
| 1283 | + | |
1284 | 1284 | | |
1285 | 1285 | | |
1286 | | - | |
| 1286 | + | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | | - | |
| 1289 | + | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | | - | |
| 1292 | + | |
1293 | 1293 | | |
1294 | 1294 | | |
1295 | | - | |
| 1295 | + | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | 1298 | | |
| |||
0 commit comments