Skip to content

Commit 942ef41

Browse files
aescolarkartben
authored andcommitted
arch/posix posix_cheats.h: Clarify two comments
native_posix does not exist anymore. This header still applies for targets setting CONFIG_NATIVE_APPLICATION until this option is removed. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 5c4be68 commit 942ef41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/posix/include/posix_cheats.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
/*
3636
* Normally main() is the main entry point of a C executable.
37-
* When compiling for native_posix, the Zephyr "application" is not the actual
37+
* When compiling using CONFIG_NATIVE_APPLICATION, the Zephyr "application" is not the actual
3838
* entry point of the executable but something the Zephyr OS calls during
3939
* boot.
4040
* Therefore we need to rename this application main something else, so
@@ -58,7 +58,7 @@ extern "C" int _posix_zephyr_main(void);
5858
/*
5959
* The defines below in this header exist only to enable the Zephyr POSIX API
6060
* (include/posix/), and applications using it, to be compiled on top of
61-
* native_posix.
61+
* the deprecated CONFIG_NATIVE_APPLICATION targets.
6262
*
6363
* Without this header, both the Zephyr POSIX API functions and the equivalent
6464
* host OS functions would have the same name. This would result in the linker
@@ -72,8 +72,8 @@ extern "C" int _posix_zephyr_main(void);
7272
* into something which is unlikely to collide with other real functions
7373
* (Any unlikely string would have done)
7474
*
75-
* If you want to link an external library together with Zephyr code for the
76-
* native_posix target, where that external library calls into the Zephyr
75+
* If you want to link an external library together with Zephyr code for a
76+
* CONFIG_NATIVE_APPLICATION based target, where that external library calls into the Zephyr
7777
* POSIX API, you may want to include this header when compiling that library,
7878
* or rename the calls to match the ones in the defines below.
7979
*/

0 commit comments

Comments
 (0)