getopt: merge from glibc
commitbd78ca3d3d7b5ec2679af1ea3d23e278c81e01d8
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Mar 2017 17:25:04 +0000 (22 10:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Mar 2017 17:27:46 +0000 (22 10:27 -0700)
tree886f062c486e951fbe367cc9ce485f7009cef93c
parent6afba02d7869d39ed7f61981045ddbdcb2814101
getopt: merge from glibc

This does not change anything substantial; it merely simplifies
hypothetical merges back to glibc.
* lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
Change copyright notice to match what is in glibc.
* lib/getopt.c: Reorder includes to match glibc.  Remove uses of
USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
__open_memstream rather than open_memstream and __glibc_likely
instead of __builtin_expect.
* lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
ChangeLog
lib/getopt.c
lib/getopt.in.h
lib/getopt1.c
lib/getopt_int.h