Searched refs:getopt (Results 1 – 20 of 20) sorted by relevance
/Zephyr-latest/lib/posix/options/getopt/ |
D | README | 6 [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]
|
D | getopt.c | 42 LOG_MODULE_REGISTER(getopt); 78 int getopt(int nargc, char *const nargv[], const char *ostr) in getopt() function
|
D | getopt_common.c | 62 return &sh->ctx->getopt; in getopt_state_get()
|
D | getopt_long.c | 57 LOG_MODULE_DECLARE(getopt);
|
/Zephyr-latest/lib/posix/options/ |
D | Kconfig.c_lib_ext | 9 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
|
D | CMakeLists.txt | 51 getopt/getopt.c 52 getopt/getopt_common.c 164 getopt/getopt_long.c 167 getopt/
|
/Zephyr-latest/tests/posix/c_lib_ext/src/ |
D | getopt.c | 37 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/ |
D | CMakeLists.txt | 11 target_include_directories(app PRIVATE ${ZEPHYR_BASE}/lib/posix/options/getopt)
|
/Zephyr-latest/samples/subsys/shell/shell_module/src/ |
D | main.c | 119 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/ |
D | unistd.h | 61 int getopt(int argc, char *const argv[], const char *optstring);
|
/Zephyr-latest/lib/posix/shell/ |
D | uname.c | 57 while ((option = getopt(argc, argv, "asonrvmpi")) != -1) { in uname_cmd_handler()
|
/Zephyr-latest/lib/crc/ |
D | crc_shell.c | 83 while ((rv = getopt(argc, argv, "fhlp:rs:t:")) != -1) { in cmd_crc()
|
/Zephyr-latest/subsys/shell/ |
D | Kconfig | 184 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/ |
D | index.rst | 34 ``getopt()``. Examples where the implementation should be part of separate libraries are
|
/Zephyr-latest/subsys/shell/modules/ |
D | devmem_service.c | 109 while ((rv = getopt(argc, argv, "a:s:w:")) != -1) { in cmd_dump()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | unistd_h.c | 248 zassert_not_null(getopt); in ZTEST()
|
/Zephyr-latest/doc/services/shell/ |
D | index.rst | 33 * 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/ |
D | shell.h | 867 struct getopt_state getopt; member
|
/Zephyr-latest/doc/services/portability/posix/option_groups/ |
D | index.rst | 87 getopt(), yes
|
/Zephyr-latest/doc/releases/ |
D | release-notes-3.3.rst | 2432 * 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
|