Home
last modified time | relevance | path

Searched refs:getopt (Results 1 – 20 of 20) sorted by relevance

/Zephyr-Core-3.4.0/lib/posix/getopt/
DKconfig9 This option adds support of getopt.
10 Different shell backends are use their own instance of getopt to
12 All not shell threads share one global instance of getopt state, hence
16 This option enables the following function: getopt.
22 This option adds support of the getopt long.
23 Different shell backends are using their own instance of getopt to
25 All not shell threads share one global instance of getopt state, hence
DREADME6 [https://github.com/lattera/freebsd/blob/master/lib/libc/stdlib/getopt.c]
9 [So far Zephyr samples were using getopt implementation from: argtable3.c.]
19 is accomplished by the getopt function.
21 For this purpose I decided to port the getopt library available
28 to getopt function. In proposed implementation each shell backend has its
29 own getopt function state structure which it uses.
57 [BSD 3-Clause used in getopt: https://spdx.org/licenses/BSD-3-Clause.html]
DCMakeLists.txt13 getopt.c
Dgetopt.c42 LOG_MODULE_REGISTER(getopt);
78 int getopt(int nargc, char *const nargv[], const char *ostr) in getopt() function
Dgetopt_common.c62 return &sh->ctx->getopt; in getopt_state_get()
Dgetopt_long.c57 LOG_MODULE_DECLARE(getopt);
/Zephyr-Core-3.4.0/tests/posix/getopt/src/
Dmain.c51 c = getopt(argc, argv, accepted_opt); in ZTEST()
59 c = getopt(argc, argv, accepted_opt); in ZTEST()
91 c = getopt(argc, argv, test_opts); in ZTEST()
93 c = getopt(argc, argv, test_opts); in ZTEST()
96 c = getopt(argc, argv, test_opts); in ZTEST()
/Zephyr-Core-3.4.0/tests/posix/headers/src/
Dunistd_h.c342 zassert_not_null(getopt); in ZTEST()
/Zephyr-Core-3.4.0/tests/posix/getopt/
DCMakeLists.txt5 project(getopt) project
/Zephyr-Core-3.4.0/include/zephyr/posix/
Dunistd.h49 int getopt(int argc, char *const argv[], const char *optstring);
/Zephyr-Core-3.4.0/samples/subsys/shell/shell_module/src/
Dmain.c119 while ((c = getopt(argc, argv, "abhc:")) != -1) { in cmd_demo_getopt_ts()
170 while ((c = getopt(argc, argv, "abhc:")) != -1) { in cmd_demo_getopt()
387 SHELL_CMD(getopt, NULL, "Cammand using getopt in non thread safe way"
/Zephyr-Core-3.4.0/lib/posix/
DCMakeLists.txt37 add_subdirectory_ifdef(CONFIG_GETOPT getopt)
DKconfig4 source "lib/posix/getopt/Kconfig"
/Zephyr-Core-3.4.0/lib/os/
Dcrc_shell.c79 while ((rv = getopt(argc, argv, "fhlp:rs:t:")) != -1) { in cmd_crc()
/Zephyr-Core-3.4.0/subsys/shell/
DKconfig140 bool "Threadsafe getopt support in shell"
144 It ensures that using getopt with shell is thread safe.
145 When more threads are using getopt please call getopt_state_get to
146 get getopt state of the shell thread.
/Zephyr-Core-3.4.0/doc/services/shell/
Dindex.rst33 * Support for getopt and getopt_long.
528 is accomplished by the ``getopt`` family functions.
530 For this purpose shell supports the getopt and getopt_long libraries available
536 The former is full compatible with regular getopt usage while the latter
544 while ((char c = getopt(argc, argv, "abhc:")) != -1) {
560 while ((char c = getopt(argc, argv, "abhc:")) != -1) {
571 Thread safe getopt functionality is activated by
/Zephyr-Core-3.4.0/subsys/shell/modules/
Ddevmem_service.c109 while ((rv = getopt(argc, argv, "a:s:w:")) != -1) { in cmd_dump()
/Zephyr-Core-3.4.0/include/zephyr/shell/
Dshell.h798 struct getopt_state getopt; member
/Zephyr-Core-3.4.0/
DCODEOWNERS695 /lib/posix/getopt/ @jakub-uC
/Zephyr-Core-3.4.0/doc/releases/
Drelease-notes-3.3.rst2432 * Enabled ``eventfd()``, ``getopt()`` by default with :kconfig:option:`CONFIG_POSIX_API`.
2685 - :github:`52700` - posix: getopt: implement standards-compliant reset
3173 * :github:`52749` - posix: getopt: cannot use getopt() in a standard way