1# Copyright (c) 2024 Tenstorrent AI ULC
2#
3# SPDX-License-Identifier: Apache-2.0
4
5menuconfig POSIX_C_LIB_EXT
6	bool "POSIX general C library extension"
7	help
8	  Select 'y' here and Zephyr will provide an implementation of the POSIX_C_LIB_EXT Option
9	  Group, consisting of fnmatch(), getopt(), getsubopt(), optarg, opterr, optind, optopt,
10	  stpcpy(), stpncpy(), strcasecmp(), strdup(), strfmon(), and strncasecmp(), strndup(), and
11	  strnlen().
12
13	  For more informnation, please see
14	  https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
15
16if POSIX_C_LIB_EXT
17
18config GETOPT_LONG
19	bool "Getopt long library support"
20	help
21	  This option adds support of the getopt long.
22	  Different shell backends are using their own instance of getopt to
23	  not interfere with each other.
24	  All not shell threads share one global instance of getopt state, hence
25	  apart from shell this library is not thread safe. User can add support
26	  for other threads by extending function getopt_state_get in
27	  getopt_common.c file.
28
29endif # POSIX_C_LIB_EXT
30