glibc/sysdeps/mach/hurd/i386
Zack Weinberg bf079e19f5 getopt: remove USE_NONOPTION_FLAGS
glibc's implementation of getopt includes code to parse an environment
variable named _XXX_GNU_nonoption_argv_flags_ (where XXX is the
current process's PID in decimal); but all of it has been #ifdefed out
since 2001, with no official way to turn it back on.

According to commentary in our config.h.in, bash version 2.0 set this
environment variable to indicate argv elements that were the result of
glob expansion and therefore should not be treated as options, but the
feature was "disabled later" because "it caused problems".  According
to bash's CHANGES file, "later" was release 2.01; it gives no more
detail about what the problems were.

Version 2.0 of bash was released on the last day of 1996, and version
2.01 in June of 1997.  Twenty years later, I think it is safe to
assume that this environment variable isn't coming back.

	* config.h.in (USE_NONOPTION_FLAGS): Remove.
	* csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
	* sysdeps/mach/hurd/i386/init-first.c: Likewise.
	* posix/getopt_int.h: Likewise.
	* posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
	__libc_argc and __libc_argv externs, which were only used by
	#ifdef USE_NONOPTION_FLAGS blocks.
	* posix/getopt_init.c: Remove file.
	* posix/Makefile (routines): Remove getopt_init.
	* include/getopt.h: Don't declare __getopt_initialize_environment.
	* manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
	a comment.
2017-04-07 07:45:53 -04:00
..
bits Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sys Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
____longjmp_chk.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
c++-types.data hurd: Add c++-types expected result 2016-03-20 22:16:34 +01:00
dl-machine.h Update. 2000-04-03 18:20:23 +00:00
exc2signal.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
init-first.c getopt: remove USE_NONOPTION_FLAGS 2017-04-07 07:45:53 -04:00
intr-msg.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ioperm.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
longjmp-ts.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Makefile Hurd: ____longjmp_chk 2012-05-10 15:57:22 -07:00
sigcontextinfo.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
signal-defines.sym Hurd: ____longjmp_chk 2012-05-10 15:57:22 -07:00
sigreturn.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
static-start.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tls.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
trampoline.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Versions * hurd/hurdselect.c (_hurd_select): Fix 2002-04-02 04:43:06 +00:00