21 #ifdef USE_NONOPTION_FLAGS
29 #include <sys/types.h>
31 #include <stdio-common/_itoa.h>
34 char *__getopt_nonoption_flags;
42 __getopt_clean_environment (
char **env)
48 static const char envvar_tail[] =
"_GNU_nonoption_argv_flags_=";
55 cp = memcpy (&var[
sizeof (var) -
sizeof (envvar_tail)], envvar_tail,
56 sizeof (envvar_tail));
57 cp = _itoa_word (__getpid (), cp, 10, 0);
60 len = (var +
sizeof (var) - 1) - cp;
62 for (ep = env; *ep != NULL; ++ep)
64 && __builtin_expect (strncmp (*ep + 1, cp, len) == 0, 0))
68 __getopt_nonoption_flags = &(*ep)[len];