Home
last modified time | relevance | path

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

/Zephyr-latest/lib/posix/options/getopt/
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]
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-latest/lib/posix/options/
DKconfig.c_lib_ext9 Group, consisting of fnmatch(), getopt(), getsubopt(), optarg, opterr, optind, optopt,
21 This option adds support of the getopt long.
22 Different shell backends are using their own instance of getopt to
24 All not shell threads share one global instance of getopt state, hence
DCMakeLists.txt51 getopt/getopt.c
52 getopt/getopt_common.c
164 getopt/getopt_long.c
167 getopt/
/Zephyr-latest/tests/posix/c_lib_ext/src/
Dgetopt.c37 c = getopt(argc, argv, accepted_opt); in ZTEST()
45 c = getopt(argc, argv, accepted_opt); in ZTEST()
77 c = getopt(argc, argv, test_opts); in ZTEST()
79 c = getopt(argc, argv, test_opts); in ZTEST()
82 c = getopt(argc, argv, test_opts); in ZTEST()
/Zephyr-latest/tests/posix/c_lib_ext/
DCMakeLists.txt11 target_include_directories(app PRIVATE ${ZEPHYR_BASE}/lib/posix/options/getopt)
/Zephyr-latest/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()
338 SHELL_CMD(getopt, NULL, "Cammand using getopt in non thread safe way"
/Zephyr-latest/include/zephyr/posix/
Dunistd.h61 int getopt(int argc, char *const argv[], const char *optstring);
/Zephyr-latest/lib/posix/shell/
Duname.c57 while ((option = getopt(argc, argv, "asonrvmpi")) != -1) { in uname_cmd_handler()
/Zephyr-latest/lib/crc/
Dcrc_shell.c83 while ((rv = getopt(argc, argv, "fhlp:rs:t:")) != -1) { in cmd_crc()
/Zephyr-latest/subsys/shell/
DKconfig184 bool "Threadsafe getopt support in shell"
188 It ensures that using getopt with shell is thread safe.
189 When more threads are using getopt please call getopt_state_get to
190 get getopt state of the shell thread.
/Zephyr-latest/doc/services/portability/posix/implementation/
Dindex.rst34 ``getopt()``. Examples where the implementation should be part of separate libraries are
/Zephyr-latest/subsys/shell/modules/
Ddevmem_service.c109 while ((rv = getopt(argc, argv, "a:s:w:")) != -1) { in cmd_dump()
/Zephyr-latest/tests/posix/headers/src/
Dunistd_h.c248 zassert_not_null(getopt); in ZTEST()
/Zephyr-latest/doc/services/shell/
Dindex.rst33 * Support for getopt and getopt_long.
663 is accomplished by the ``getopt`` family functions.
665 For this purpose shell supports the getopt and getopt_long libraries available
671 The former is full compatible with regular getopt usage while the latter
679 while ((char c = getopt(argc, argv, "abhc:")) != -1) {
695 while ((char c = getopt(argc, argv, "abhc:")) != -1) {
706 Thread safe getopt functionality is activated by
/Zephyr-latest/include/zephyr/shell/
Dshell.h867 struct getopt_state getopt; member
/Zephyr-latest/doc/services/portability/posix/option_groups/
Dindex.rst87 getopt(), yes
/Zephyr-latest/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