]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
8 years agoDefine BSD u_intN_t types indiscriminately
Corinna Vinschen [Thu, 24 Mar 2016 10:05:46 +0000 (11:05 +0100)]
Define BSD u_intN_t types indiscriminately

The u_intN_t types are BSD types but sanctioned by POSIX.  They are
always defined when using Glibc headers so we follow suit.

newlib:
* libc/include/sys/types.h: Drop outdated __INTTYPES_DEFINED__
macro.  Always define u_intN_t types.

cygwin:
* include/cygwin/types.h: Remove definition of u_intN_t types.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix coverity CID 143502: Null pointer dereference
Corinna Vinschen [Thu, 24 Mar 2016 09:06:50 +0000 (10:06 +0100)]
Fix coverity CID 143502: Null pointer dereference

* libc/locale/ldpart.c (split_lines): Don't dereference result
of strchr without checking for NULL pointer first.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFeature test macros overhaul: C++ TR1
Yaakov Selkowitz [Wed, 23 Mar 2016 21:14:00 +0000 (16:14 -0500)]
Feature test macros overhaul: C++ TR1

While C++11 was the first version of the standard to use C99 functionality,
TR1 (for C++03) also does, and G++ does not distinguish between C++98 and
C++03, or when TR1 is in use.  Therefore, while not strictly correct for
"pure" C++98, enabling C99 for all C++ usage is the simplest solution (and
much better than always using -D_GNU_SOURCE as on Linux).

See thread starting: https://sourceware.org/ml/newlib/2016/msg00297.html

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agotest
Corinna Vinschen [Wed, 23 Mar 2016 17:49:39 +0000 (18:49 +0100)]
test

8 years agoAdd release message for commit 59b3bd2
Corinna Vinschen [Wed, 23 Mar 2016 17:11:38 +0000 (18:11 +0100)]
Add release message for commit 59b3bd2

8 years agoOnly allow enabled groups as primary group
Corinna Vinschen [Wed, 23 Mar 2016 16:51:03 +0000 (17:51 +0100)]
Only allow enabled groups as primary group

So far any group in the user's token could be used as primary group.
Windows doesn't check if the primary group is enabled or not, it just
has no meaning.  From a POSIXy point of view it can lead to weird
results though.

* uinfo.cc (check_token_membership): New static function.
(internal_getlogin): Only allow enabled groups as primary group.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoUse 64K buffers for TOKEN_GROUPS
Corinna Vinschen [Wed, 23 Mar 2016 16:42:04 +0000 (17:42 +0100)]
Use 64K buffers for TOKEN_GROUPS

A user token can be up to 64K in size.  Using 32K buffers for TOKEN_GROUPS
may be insufficient.

* uinfo.cc (get_logon_sid): Use 64K buffers for the TOKEN_GROUPS
array.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAllocate temporary TOKEN_GROUP arrays using TLS
Corinna Vinschen [Wed, 23 Mar 2016 16:40:24 +0000 (17:40 +0100)]
Allocate temporary TOKEN_GROUP arrays using TLS

A user token can be up to 64K in size.  The group list might take a lot
of that so use tmp_pathbuf allocated space rather than stack space
allocted via alloca.  In create_token the TOKEN_GROUP was allocated via
malloc, but the code is needlessly complicated.  Simplify by using
tmp_pathbuf as well.

* sec_auth.cc (verify_token): Allocate TOKEN_GROUP via tmp_pathbuf.
(create_token): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agocxx.cc: Disable C++14 warning for new sized delete operator
Corinna Vinschen [Wed, 23 Mar 2016 10:58:21 +0000 (11:58 +0100)]
cxx.cc: Disable C++14 warning for new sized delete operator

As long as we're not building in C++14 mode, the definition of the
sized delete operator results in a compatibility warning.

* cxx.cc (operator delete): Disable C++14 warning for sized variant.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd c++14 sized deallocation operator
Peter Foley [Sat, 19 Mar 2016 17:45:55 +0000 (13:45 -0400)]
Add c++14 sized deallocation operator

When compiling with -std=c++14 (the default for gcc 6.0+), the sized
deallocation operator must be defined to prevent undefined symbols when
linking.

winsup/cygwin/ChangeLog:
cxx.cc (operator delete(void *p, size_t)): Define.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoDrop Cygwin-only posix_memalign prototype
Corinna Vinschen [Wed, 23 Mar 2016 10:50:27 +0000 (11:50 +0100)]
Drop Cygwin-only posix_memalign prototype

newlib:
* libc/include/stdlib.h (posix_memalign): Drop __rtmes__ guards.

cygwin:
* include/cygwin/stdlib.h (posix_memalign): Drop prototype.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoUse DnsFree instead of deprecated DnsRecordListFree
Peter Foley [Mon, 21 Mar 2016 20:41:25 +0000 (16:41 -0400)]
Use DnsFree instead of deprecated DnsRecordListFree

The latest version of the mingw headers have been updated to make
DnsRecordListFree an alias of DnsFree when targeting Windows XP or later.
Use DnsFree directly, avoiding the wrapper function.

/home/peter/cross/src/cygwin/winsup/cygwin/libc/minires-os-if.c:289:
undefined reference to `DnsFree'

winsup/cygwin/ChangeLog
autoload.cc: Load DnsFree rather then DnsRecordListFree
libc/minires-os-if.cc (cygwin_query): Use DnsFree rather then DnsRecordListFree

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoTarget/Host configuration elucidated
Konrad Schwarz [Wed, 23 Mar 2016 04:54:13 +0000 (05:54 +0100)]
Target/Host configuration elucidated

8 years agoGuard u_char,u_short,u_int,u_long with __MISC_VISIBLE
Corinna Vinschen [Wed, 23 Mar 2016 10:17:59 +0000 (11:17 +0100)]
Guard u_char,u_short,u_int,u_long with __MISC_VISIBLE

These types are available in SVID as well.

* libc/include/sys/types.h (u_char,u_short,u_int,u_long): Replace
__BSD_VISIBLE with __MISC_VISIBLE.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFix "/*" within comment warning
Sebastian Huber [Mon, 21 Mar 2016 11:07:52 +0000 (12:07 +0100)]
Fix "/*" within comment warning

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
8 years agostdio: fseeko/ftello are also POSIX.1-2001
Yaakov Selkowitz [Sun, 20 Mar 2016 19:21:59 +0000 (14:21 -0500)]
stdio: fseeko/ftello are also POSIX.1-2001

_LARGEFILE_SOURCE, which controls only these two functions, is implicitly
defined by _XOPEN_SOURCE >= 500.  However, they are also later added to
POSIX.1-2001 (and therefore available by default).

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agopthread.h: Mark pthread_exit() as not returning
Joel Sherrill [Mon, 21 Mar 2016 21:20:18 +0000 (16:20 -0500)]
pthread.h: Mark pthread_exit() as not returning

8 years agoepiphany/machine/stdlib.h: Disable epiphany unique random wrappers for RTEMS
Joel Sherrill [Sun, 20 Mar 2016 16:02:13 +0000 (11:02 -0500)]
epiphany/machine/stdlib.h: Disable epiphany unique random wrappers for RTEMS

8 years agonewlib/configure.host: Turn off sti/cli for i386 setjmp for i386-rtems*
Joel Sherrill [Thu, 25 Feb 2016 17:43:18 +0000 (11:43 -0600)]
newlib/configure.host: Turn off sti/cli for i386 setjmp for i386-rtems*

When running RTEMS paravirtualized in user space, the cli/sti instructions
can't be used. But I can't see why they are needed in either user or
supervisor state. Turning the use of them off for RTEMS.

This code is unmodified since the beginning of the repository, so I have
no insight into why it was done. I may even have been the one to add them.
Absolutely no idea except they aren't necessary.

8 years agoRemove spurious empty line in changelog entry.
Nick Clifton [Fri, 18 Mar 2016 13:09:03 +0000 (13:09 +0000)]
Remove spurious empty line in changelog entry.

8 years agoPR external/{16327,16328}: Remove etc/configure.texi and etc/standards.texi.
Ludovic Courtès [Mon, 5 May 2014 15:33:16 +0000 (17:33 +0200)]
PR external/{16327,16328}: Remove etc/configure.texi and etc/standards.texi.

etc/ChangeLog
2014-06-27  Ludovic Courtès  <ludo@gnu.org>

PR external/16327
PR external/16328
* Makefile.in (MAKEINFO, TEXI2DVI, TEXI2PDF, TEXI2HTML, DVIPS)
(TEXIDIR, INFOFILES, DVIFILES, PDFFILES, HTMLFILES): Remove.
(all): Remove dependency on 'info'.
(install): Remove dependency on 'install-info'.
(standards.info, standards.html, standards.dvi, standards.ps)
(standards.pdf, configure.info, configure.dvi, configure.ps)
(configure.pdf, configure.pdf): Remove.
(info, install-info, html, install-html, dvi, pdf, install-pdf)
clean, maintainer-clean, realclean): Remove body.
* etc/configbuild.ein, etc/configbuild.fig, etc/configbuild.jin,
etc/configbuild.tin, etc/configdev.ein, etc/configdev.fig,
etc/configdev.jin, etc/configdev.tin, etc/configure.texi,
etc/fdl.texi, etc/gnu-oids.texi, etc/make-stds.texi,
etc/standards.texi: Remove.

8 years agoFix generation of as.1 manual page so that it can be converted to DocBook format.
Nick Clifton [Fri, 18 Mar 2016 13:07:33 +0000 (13:07 +0000)]
Fix generation of as.1 manual page so that it can be converted to DocBook format.

etc * texi2pod.pl: Add TARGET to the list of recognised man page
sections.

8 years agoSync toplevel with upstream GCC.
Corinna Vinschen [Tue, 22 Mar 2016 09:25:20 +0000 (10:25 +0100)]
Sync toplevel with upstream GCC.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRemove Mingw.org from FAQ, or replace with Mingw-w64.
Corinna Vinschen [Mon, 21 Mar 2016 20:09:23 +0000 (21:09 +0100)]
Remove Mingw.org from FAQ, or replace with Mingw-w64.

* faq-api.xml: Change MingW to Mingw-w64.
* faq-programming.xml: Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd nonnull annotation to posix_memalign.
Peter Foley [Mon, 21 Mar 2016 17:15:42 +0000 (13:15 -0400)]
Add nonnull annotation to posix_memalign.

GCC 6.0+ asserts that the memptr argument to the builtin function
posix_memalign is nonnull.
Add the necessary annotation to the prototype and
remove the now unnecessary check to fix a warning.

newlib/Changelog
newlib/libc/include/stdlib.h: Annotate arg to posix_memalign as
non-null.

winsup/cygwin/ChangeLog
malloc_wrapper.cc (posix_memalign): Remove always true nonnull check.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoRemove misleading indentation
Peter Foley [Mon, 21 Mar 2016 17:15:44 +0000 (13:15 -0400)]
Remove misleading indentation

GCC 6.0+ warns on misleading indentation, so fix it.

winsup/cygserver/ChangeLog
* sysv_msg.cc (msgsnd): Fix misleading indentation.
* sysv_msg.cc (msgrcv): Ditto.
* sysv_sem.cc (semop): Ditto.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoMove arc4random Cygwin only code to Cygwin
Sebastian Huber [Mon, 21 Mar 2016 07:12:54 +0000 (08:12 +0100)]
Move arc4random Cygwin only code to Cygwin

Keep the Newlib arc4random.c identical to the OpenBSD upstream version.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>.
8 years agosrandom: Replace accessing /dev/random by equivalent getentropy call
Corinna Vinschen [Sun, 20 Mar 2016 21:29:03 +0000 (22:29 +0100)]
srandom: Replace accessing /dev/random by equivalent getentropy call

/dev/random calls getentropy.  So there's no good reason to go out of
our way to open /dev/random just to call getentropy anyway.

* random.cc (srandomdev): Drop opening /dev/random in favor of
calling getentropy.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRevert "Use high-resolution timebases for select()."
Corinna Vinschen [Sun, 20 Mar 2016 20:59:47 +0000 (21:59 +0100)]
Revert "Use high-resolution timebases for select()."

This reverts commit 6e70fd315a29578f090a98f84e9d8e95ddb156e3.

Revert accidental push

8 years agoRevert "Debug printfs."
Corinna Vinschen [Sun, 20 Mar 2016 20:59:43 +0000 (21:59 +0100)]
Revert "Debug printfs."

This reverts commit 9f82de59a07da145c177648fe474f19cd9def7a1.

Revert accidental push

8 years agoRevert "Improve and simplify select()."
Corinna Vinschen [Sun, 20 Mar 2016 20:59:27 +0000 (21:59 +0100)]
Revert "Improve and simplify select()."

This reverts commit 472d0a228c56bd4783ebb0561667cda2de3cd168.

Revert accidental push

8 years agoDrop redundant arc4random prototypes from cygwin/stdlib.h
Corinna Vinschen [Sun, 20 Mar 2016 20:30:58 +0000 (21:30 +0100)]
Drop redundant arc4random prototypes from cygwin/stdlib.h

Newlib's default stdlib.h now defines these functions so we can
drop them from the Cygwin-specific header.  Remove the arc4random_stir
and arc4random_uniform prototypes entirely.  They shouldn't be used
by applications anymore.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAllow machine-dependent arc4 locking
Corinna Vinschen [Fri, 18 Mar 2016 17:01:07 +0000 (18:01 +0100)]
Allow machine-dependent arc4 locking

newlib:
* libc/stdlib/arc4random.h: Remove Cygwin-specific locking code.
Conditionalize arc4 locking.  Check for _ARC4_LOCK_INIT being
undefined to fall back to default implementation.

cygwin:
* include/machine/_arc4random.h: New file.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoImprove and simplify select().
John Hood [Thu, 4 Feb 2016 05:44:56 +0000 (00:44 -0500)]
Improve and simplify select().

* cygwait.h (cygwait_us) Remove; this reverts previous changes.
* select.h: Eliminate redundant select_stuff::select_loop state.
* select.cc (select): Eliminate redundant
select_stuff::select_loop state.  Eliminate redundant code for
zero timeout.  Do not return early on early timer return.
(select_stuff::wait): Eliminate redundant
select_stuff::select_loop state.

8 years agoDebug printfs.
John Hood [Sat, 30 Jan 2016 22:37:33 +0000 (17:37 -0500)]
Debug printfs.

* fhandler.cc (fhandler_base::get_readahead): Add debug code.
* fhandler_console.cc (fhandler_console::read): Add debug code.
* select.cc (pselect): Add debug code.
(peek_console): Add debug code.

8 years agoUse high-resolution timebases for select().
John Hood [Thu, 28 Jan 2016 22:08:39 +0000 (17:08 -0500)]
Use high-resolution timebases for select().

* cygwait.h: Add cygwait_us() methods.
* select.h: Change prototype for select_stuff::wait() for larger
microsecond timeouts.
* select.cc (pselect): Convert from old cygwin_select().
Implement microsecond timeouts.
(cygwin_select): Rewrite as a wrapper on pselect().
(select): Implement microsecond timeouts.
(select_stuff::wait): Implement microsecond timeouts with a timer
object.

8 years ago* winsup/testsuite/configure: chmod a+x
John Hood [Fri, 18 Mar 2016 08:31:16 +0000 (04:31 -0400)]
* winsup/testsuite/configure: chmod a+x

8 years agoMove get_nonascii_key into fhandler_console.
John Hood [Sat, 30 Jan 2016 22:33:36 +0000 (17:33 -0500)]
Move get_nonascii_key into fhandler_console.

* fhandler.h (fhandler_console): Move get_nonascii_key() from
select.c into this class.
* select.cc (peek_console): Move get_nonascii_key() into
fhandler_console class.

8 years agorespect datarootdir
Peter Foley [Sat, 19 Mar 2016 17:45:57 +0000 (13:45 -0400)]
respect datarootdir

Recent versions of autoconf define datadir/infodir in terms of
datarootdir. Add it.

winsup/ChangeLog
* Makefile.in: define datarootdir

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoFix strict aliasing
Peter Foley [Sat, 19 Mar 2016 17:45:56 +0000 (13:45 -0400)]
Fix strict aliasing

Fix a strict aliasing error detected by gcc 6.0+

winsup/cygwin/ChangeLog
* pinfo.cc (winpids::enum_process): Fix strict aliasing.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoFix typoed comparison
Peter Foley [Sat, 19 Mar 2016 17:45:54 +0000 (13:45 -0400)]
Fix typoed comparison

winsup/cygwin/ChangeLog
* thread.cc (semaphore::open): Fix mistaken conditional.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoThe address of an class always evaluates to true
Peter Foley [Sat, 19 Mar 2016 17:45:53 +0000 (13:45 -0400)]
The address of an class always evaluates to true

winsup/cygwin/pinfo.cc:465:14: error: the compiler can assume that the
address of 'tc' will always evaluate to 'true' [-Werror=address]

winsup/cygwin/ChangeLog
* pinfo.cc (_pinfo::set_ctty): remove always true check.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoRemove misleading indentation
Peter Foley [Sun, 20 Mar 2016 10:58:35 +0000 (11:58 +0100)]
Remove misleading indentation

* syscalls.cc (getpriority): Fix misleading indentation.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoAdd necessary braces to if statements
Peter Foley [Sat, 19 Mar 2016 17:45:49 +0000 (13:45 -0400)]
Add necessary braces to if statements

The missing braces cause only the first expression to be guarded by the
else clause.

winsup/cygwin/ChangeLog
* fhandler_disk_file.cc (facl): Add missing braces to if statement.
* mount.cc (dos_drive_mappings): Add missing braces to if statement.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoRemove dead code from fhandler_console.
Peter Foley [Sat, 19 Mar 2016 17:45:48 +0000 (13:45 -0400)]
Remove dead code from fhandler_console.

This if is unconditionally false, so remove it.

winsup/cygwin/fhandler_console.cc: In member function 'bool dev_console::fillin(HANDLE)':
winsup/cygwin/fhandler_console.cc:740:22: error: self-comparison always evaluates to false [-Werror=tautological-compare]
       if (b.dwSize.Y != b.dwSize.Y || b.dwSize.X != b.dwSize.X)
           ~~~~~~~~~~~^~~~~~~~~~~~~
winsup/cygwin/fhandler_console.cc:740:50: error: self-comparison always evaluates to false [-Werror=tautological-compare]
       if (b.dwSize.Y != b.dwSize.Y || b.dwSize.X != b.dwSize.X)
                                       ~~~~~~~~~~~^~~~~~~~~~~~~

winsup/cygwin/ChangeLog
* fhandle_console.cc (fillin): remove dead code

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agoRemove unused and unsafe call to __builtin_frame_address
Peter Foley [Sat, 19 Mar 2016 17:45:47 +0000 (13:45 -0400)]
Remove unused and unsafe call to __builtin_frame_address

initial_sp has been unused since commit fbf23e3 back in 2000.
Keep the value, so as to avoid changing the offset of magic_biscuit.

winsup/cygwin/lib/_cygwin_crt0_common.cc:140:52:
error: calling 'void* __builtin_frame_address(unsigned int)' with a
nonzero argument is unsafe [-Werror=frame-address]
   u->initial_sp = (char *) __builtin_frame_address (1);

winsup/cygwin/ChangeLog
lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Initialize initial_sp
with nullptr.

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
8 years agowinsup: Move all old CVS Changelogs into CVSChangeLogs.old dir
Corinna Vinschen [Sat, 19 Mar 2016 12:59:52 +0000 (13:59 +0100)]
winsup: Move all old CVS Changelogs into CVSChangeLogs.old dir

8 years agoRemove ill-advised cygwin_props
Corinna Vinschen [Sat, 19 Mar 2016 12:21:18 +0000 (13:21 +0100)]
Remove ill-advised cygwin_props

Cygwin_props have been invented to allow switching off the unique
installation keys in the first place, supposedly for debugging.
This never really was a good idea, after all we *want* the installations
to be independent and there's no good reason to break that, not even
for debugging purposes.

Other than that, cygwin_props were meant to be used for some other global
settings which never took place.  There's just no good reason to tweak
the DLL binary invisibly where a setting could be done in a file or the
environment.

This patch removes the cygwin_props entirely, including the related
settings in cygcheck.

cygwin:
* cygprops.h: Remove file.
* globals.cc (cygwin_props): Remove.
* cygheap.cc (init_cygheap::init_installation_root): Drop removing
installation key.

utils:
* cygcheck.cc: Drop including cygprops.h.  Remove now unused option
values.
(unique_object_name_opt): Remove.
(handle_unique_object_name): Remove function.
(usage): Remove text for unique-object-names options.
(longopts): Remove unique-object-names options.
(main): Drop handling unique-object-names options.

doc:
* utils.xml (cygcheck): Remove text for unique-object-names options.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoRegenerate configure script.
Jeff Johnston [Sat, 19 Mar 2016 04:27:59 +0000 (00:27 -0400)]
Regenerate configure script.

8 years agoRemove references to older Cygwin releases from documentation
Corinna Vinschen [Fri, 18 Mar 2016 21:52:04 +0000 (22:52 +0100)]
Remove references to older Cygwin releases from documentation

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agosparc64: move struct timeval to <sys/_timeval.h>
Yaakov Selkowitz [Fri, 18 Mar 2016 19:10:43 +0000 (14:10 -0500)]
sparc64: move struct timeval to <sys/_timeval.h>

commit bb0159489785d577ad0b8061a1ba7956ee0f89d0 moved the struct timeval
declaration from <sys/time.h> to <sys/_timeval.h>, and commit
01885f533de81ff73e9da1519a4b5f2316b49f86 changed <sys/select.h> to include
<sys/_timeval.h>.  Therefore, sparc64's own struct timeval needs to be
moved accordingly in order to avoid a conflict from the generic type.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Acked-by: Corinna Vinschen <vinschen@redhat.com>
8 years agoFeature test macros overhaul: sparc64
Yaakov Selkowitz [Fri, 18 Mar 2016 19:08:07 +0000 (14:08 -0500)]
Feature test macros overhaul: sparc64

sparc64 has a number of its own headers which override the generic ones.
These too need to use feature test macros properly.

These changes correspond to the generic fcntl.h and sys/stat.h changes
in commit d2df6d381b36f3f76420bc3bab965fbbdc3c3a8c and
commit 069e400c913659432c5d1953c4fa9a696b06e340.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Acked-by: Corinna Vinschen <vinschen@redhat.com>
8 years agoCleanup macros in chacha_private.h to be target-type independent
Howland, Craig D [Fri, 18 Mar 2016 18:18:15 +0000 (18:18 +0000)]
Cleanup macros in chacha_private.h to be target-type independent

* libc/stdlib/chacha_private.h (U8C, U32C): Remove un-necessary macros.
(U8V, U32V): Drop masking.

8 years agoOnly export arc4random_stir and arc4random_addrandom on Cygwin
Corinna Vinschen [Fri, 18 Mar 2016 20:12:12 +0000 (21:12 +0100)]
Only export arc4random_stir and arc4random_addrandom on Cygwin

Export to maintain backward compatibility, but don't let
them do anything useful.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoFeature test macros overhaul: signal.h (part 2)
Yaakov Selkowitz [Fri, 18 Mar 2016 04:21:49 +0000 (23:21 -0500)]
Feature test macros overhaul: signal.h (part 2)

Move the sig*set macros following the functions inside their feature
test macro conditional.

This fixes the build on bare-metal targets following
commit 5c78499ae2ae6ac28854b43a1ad73d917b40c62d.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Acked-by: Corinna Vinschen <vinschen@redhat.com>
8 years agoarm: fix build with newlib supplied syscalls enabled
Yaakov Selkowitz [Fri, 18 Mar 2016 03:11:14 +0000 (22:11 -0500)]
arm: fix build with newlib supplied syscalls enabled

In file included from libc/sys/arm/crt0.S:2:0:
libc/sys/arm/arm.h:32:25: fatal error: acle-compat.h: No such file or directory

acle-compat.h is libc/machine/arm.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoImplement getentropy for Cygwin
Corinna Vinschen [Fri, 18 Mar 2016 13:46:20 +0000 (14:46 +0100)]
Implement getentropy for Cygwin

* miscfuncs.cc (getentropy): Move fhandler_dev_random::crypt_gen_random
here and rename to getentropy.  Fix type and return values to match
getentropy requirements.
* miscfuncs.h (getentropy): Add prototype.
* fhandler.h (fhandler_dev_random::crypt_gen_random): Remove prototype.
* fhandler_random.cc (fhandler_dev_random::crypt_gen_random): Drop.
(fhandler_dev_random::write): Use getentropy instead.
(fhandler_dev_random::read): Ditto.
* fhandler_socket.cc (fhandler_socket::af_local_set_secret): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDelete Cygwin's arc4random in favor of new Newlib implementation
Corinna Vinschen [Fri, 18 Mar 2016 13:41:33 +0000 (14:41 +0100)]
Delete Cygwin's arc4random in favor of new Newlib implementation

* Makefile.in (DLL_OFILES): Remove arc4random.o.
* libc/arc4random.c: Remove file.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoArc4random locking: Check for threaded application on Cygwin
Corinna Vinschen [Fri, 18 Mar 2016 13:40:26 +0000 (14:40 +0100)]
Arc4random locking: Check for threaded application on Cygwin

        libc/stdlib/arc4random.h (_ARC4_LOCK): Special case Cygwin.
        (_ARC4_UNLOCK): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd arc4random_stir and arc4random_addrandom for OpenBSD compatibility
Corinna Vinschen [Fri, 18 Mar 2016 13:39:58 +0000 (14:39 +0100)]
Add arc4random_stir and arc4random_addrandom for OpenBSD compatibility

        * libc/stdlib/arc4random.c (arc4random_stir): New function.
        (arc4random_addrandom): Ditto.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd arc4random() etc. from OpenBSD 5.8
Sebastian Huber [Fri, 18 Mar 2016 10:49:28 +0000 (11:49 +0100)]
Add arc4random() etc. from OpenBSD 5.8

According to the OpenBSD man page, "A Replacement Call for Random".  It
offers high quality random numbers derived from input data obtained by
the OpenBSD specific getentropy() system call which is declared in
<unistd.h> and must be implemented for each Newlib port externally.  The
arc4random() functions are used for example in LibreSSL and OpenSSH.

Cygwin provides currently its own implementation of the arc4random
family.  Maybe it makes sense to use this getentropy() implementation:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libcrypto/crypto/getentropy_win.c?rev=1.4&content-type=text/x-cvsweb-markup

* libc/include/stdlib.h (arc4random): Declare if __BSD_VISIBLE.
(arc4random_buf): Likewise.
(arc4random_uniform): Likewise.
* libc/include/sys/unistd.h (getentropy): Likewise.
* libc/include/machine/_arc4random.h: New file.
* libc/stdlib/arc4random.c: Likewise.
* libc/stdlib/arc4random.h: Likewise.
* libc/stdlib/arc4random_uniform.c: Likewise.
* libc/stdlib/chacha_private.h: Likewise.
* libc/sys/rtems/include/machine/_arc4random.h: Likewise.
* libc/stdlib/Makefile.am (EXTENDED_SOURCES): Add arc4random.c
and arc4random_uniform.c.
* libc/stdlib/Makefile.in: Regenerate.

8 years agoAdd timingsafe_memcmp()
Sebastian Huber [Fri, 18 Mar 2016 10:49:27 +0000 (11:49 +0100)]
Add timingsafe_memcmp()

This function is used by LibreSSL and OpenSSH and is provided by the
OpenBSD libc.

* libc/include/string.h (timingsafe_memcmp): Declare.
* libc/string/timingsafe_memcmp.c: New file.
* libc/string/Makefile.am: Add new file.
* libc/string/Makefile.in: Regenerate.

8 years agoAdd timingsafe_bcmp()
Sebastian Huber [Fri, 18 Mar 2016 10:49:26 +0000 (11:49 +0100)]
Add timingsafe_bcmp()

This function is used by LibreSSL and OpenSSH and is provided by the
OpenBSD libc.

* libc/include/string.h (timingsafe_bcmp): Declare.
* libc/string/timingsafe_bcmp.c: New file.
* libc/string/Makefile.am: Add new file.
* libc/string/Makefile.in: Regenerate.

8 years agoAdd explicit_bzero()
Sebastian Huber [Fri, 18 Mar 2016 10:49:25 +0000 (11:49 +0100)]
Add explicit_bzero()

This function is used by LibreSSL and OpenSSH and is provided by the
OpenBSD libc.

* libc/include/string.h (explicit_bzero): Declare.
* libc/string/explicit_bzero.c: New file.
* libc/string/Makefile.am: Add new file.
* libc/string/Makefile.in: Regenerate.

8 years agoGuard ssize_t definition by _SSIZE_T_DECLARED
Sebastian Huber [Fri, 18 Mar 2016 10:49:24 +0000 (11:49 +0100)]
Guard ssize_t definition by _SSIZE_T_DECLARED

This guard is used by FreeBSD <sys/socket.h> for example.  The FreeBSD
network stack is used in RTEMS.

* newlib/libc/include/sys/types.h (ssize_t): Guard by
_SSIZE_T_DECLARED.

8 years agoCygwin: define byteswap.h inlines as macros
Yaakov Selkowitz [Tue, 15 Mar 2016 03:11:20 +0000 (22:11 -0500)]
Cygwin: define byteswap.h inlines as macros

The bswap_* "functions" are macros in glibc, so they may be tested for
by the preprocessor (e.g. #ifdef bswap_16).

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: Cygwin headers
Yaakov Selkowitz [Tue, 15 Mar 2016 02:24:29 +0000 (21:24 -0500)]
Feature test macros overhaul: Cygwin headers

Use proper internal macros for BSD and GNU.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: sys/types.h
Yaakov Selkowitz [Tue, 15 Mar 2016 02:20:02 +0000 (21:20 -0500)]
Feature test macros overhaul: sys/types.h

The u_int/u_char/etc. BSD types are needed by Cygwin's netinet/*.h
headers, so they always need to be available.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoRevert "Remove inclusion of sys/select.h in sys/types.h for backward compat"
Yaakov Selkowitz [Tue, 15 Mar 2016 01:50:45 +0000 (20:50 -0500)]
Revert "Remove inclusion of sys/select.h in sys/types.h for backward compat"

This BSDism is still in use (e.g. putty).

This reverts commit 088f7a723962dd18dcae09e8e8fa168bbea6ed0b.

8 years agoFeature test macros overhaul: sys/time.h
Yaakov Selkowitz [Tue, 15 Mar 2016 02:14:39 +0000 (21:14 -0500)]
Feature test macros overhaul: sys/time.h

The inclusion of <sys/select.h> is required also by POSIX.1-2001.
setitimer is XSI, and futimesat is GNU.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: sys/stat.h
Yaakov Selkowitz [Tue, 15 Mar 2016 01:57:45 +0000 (20:57 -0500)]
Feature test macros overhaul: sys/stat.h

Replace all !_POSIX_SOURCE with BSD.  All *at functions depend on
ATFILE; futimens is POSIX.1-2008.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: sys/select.h
Yaakov Selkowitz [Mon, 14 Mar 2016 22:31:12 +0000 (17:31 -0500)]
Feature test macros overhaul: sys/select.h

Remove !_POSIX_SOURCE conditional; pselect is POSIX.1-2001.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: wchar.h
Yaakov Selkowitz [Mon, 14 Mar 2016 22:24:48 +0000 (17:24 -0500)]
Feature test macros overhaul: wchar.h

open_wmemstream is POSIX.1-2008.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: unistd.h
Yaakov Selkowitz [Tue, 15 Mar 2016 02:03:34 +0000 (21:03 -0500)]
Feature test macros overhaul: unistd.h

Throughout, use proper internal macros for functions, including those
marked as target-specific.  Use ATFILE for all *at functions.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: time.h
Yaakov Selkowitz [Mon, 14 Mar 2016 22:23:09 +0000 (17:23 -0500)]
Feature test macros overhaul: time.h

Throughout, replace __STRICT_ANSI__ with the proper internal macros.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: strings.h
Yaakov Selkowitz [Mon, 14 Mar 2016 22:20:38 +0000 (17:20 -0500)]
Feature test macros overhaul: strings.h

Replace __STRICT_ANSI__ with the proper internal macros for bcmp etc.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: string.h
Yaakov Selkowitz [Mon, 14 Mar 2016 22:13:42 +0000 (17:13 -0500)]
Feature test macros overhaul: string.h

Throughout, remove __STRICT_ANSI__ and use the proper internal macros.

bcmp, bcopy, bzero, index, and rindex were in POSIX prior to 2008.

memrchr is GNU.

strdup and strndup are POSIX.1-2008.

The int-returning form of strerror_r is POSIX.1-2001.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: stdlib.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:55:26 +0000 (16:55 -0500)]
Feature test macros overhaul: stdlib.h

Throughout, simplify the C99/C11 conditionals, and replace
__STRICT_ANSI__ with the proper internal POSIX macros.  The _*_r
reentrant functions need not be guarded (and most haven't been) because
such names in the global scope are reserved to the implementation.

atoff is unique to newlib.

dtoa is not actually exported (_dtoa_r is used internally), is
nonstandard, and the declaration conflicts with the code included in
MySQL, NSPR, and SpiderMonkey.

mktemp was removed in POSIX.1-2001.

The qsort_r declarations are reordered so that the GNU version retains
precedence.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: stdio.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:40:44 +0000 (16:40 -0500)]
Feature test macros overhaul: stdio.h

Throughout, remove references to __STRICT_ANSI__ and use the proper
internal macros and versions for C99, POSIX, ATFILE for the various *at
functions, or LARGEFILE for fseeko and ftello.

[v]asprintf are GNU extensions, but the *iprintf, *iscanf, and
*asnprintf functions are unique to newlib.

getw and putw were removed from POSIX.1-2001. funopen is BSD, and
fopencookie is GNU.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: signal.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:39:56 +0000 (16:39 -0500)]
Feature test macros overhaul: signal.h

Use proper internal macros for BSD sig_t and GNU sighandler_t.

sigaltstack and friends are XSI even in SUSv4 but in glibc are
nonetheless handled as POSIX.1-2008 (not 2001).

The requirement for the ucontext_t typedef in signal.h was XSI prior to
POSIX.1-2008.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: pwd.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:36:13 +0000 (16:36 -0500)]
Feature test macros overhaul: pwd.h

getpw*_r dates back to POSIX.1c, and *pwent to XPG4v2.  Both are also BSD.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: pthread.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:35:32 +0000 (16:35 -0500)]
Feature test macros overhaul: pthread.h

Use internal macros for GNU extensions.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: math.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:26:18 +0000 (16:26 -0500)]
Feature test macros overhaul: math.h

Simplify the C99 conditionals.  Mark the drem and gamma functions as
BSD|SVID, the Bessel double functions also XSI and the floats also SUSv3.
signgam is BSD|SVID|XSI, and matherr is SVID.  Finally, use the internal
macros to control the symbolic constants.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: limits.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:25:18 +0000 (16:25 -0500)]
Feature test macros overhaul: limits.h

Simplify the C99 conditional, and use the internal macro for GNU extensions.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: grp.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:21:34 +0000 (16:21 -0500)]
Feature test macros overhaul: grp.h

_PATH_GROUP is a BSDism. getgr*_r are BSD|SVID|POSIX, and the *grent
functions are BSD|SVID|XPG4v2.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: fnmatch.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:19:42 +0000 (16:19 -0500)]
Feature test macros overhaul: fnmatch.h

Use the proper internal macro for GNU extensions.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: fcntl.h
Yaakov Selkowitz [Mon, 14 Mar 2016 22:26:08 +0000 (17:26 -0500)]
Feature test macros overhaul: fcntl.h

Most of the !_POSIX_SOURCE code is BSD, although ironically some were
added to POSIX.1-2001.

Use the ATFILE conditional for most of the *at functions, except
futimesat which is GNU.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: dirent.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:17:38 +0000 (16:17 -0500)]
Feature test macros overhaul: dirent.h

MAXNAMLEN is a BSDism.

Use the proper internal macros instead of !_POSIX_SOURCE.  telldir and
seekdir are XSI, scandir and alphasort are POSIX.1-2008, and scandirat
is GNU.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: ctype.h
Yaakov Selkowitz [Mon, 14 Mar 2016 21:14:59 +0000 (16:14 -0500)]
Feature test macros overhaul: ctype.h

Simplify C99 test for isblank.  isascii and toascii are BSD|SVID|XSI.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoFeature test macros overhaul: sys/features.h
Yaakov Selkowitz [Mon, 14 Mar 2016 20:31:23 +0000 (15:31 -0500)]
Feature test macros overhaul: sys/features.h

This is the complete rework of the feature tests macros for better
compatibility with GNU libc, primarily based on the Linux man pages
documentation:

http://man7.org/linux/man-pages/man7/feature_test_macros.7.html

The previous implementation was flawed in its approach that macros were
often used to hide symbols if defined (e.g. !defined __STRICT_ANSI__ or
!defined _POSIX_SOURCE), whereas the approach of glibc is that these macros
make symbols available when defined (e.g. defined _BSD_SOURCE, or as used
internally, #if __BSD_VISIBLE).  As much open-source software is written
with glibc in mind, this necessitated patching numerous packages just to
compile.

In particular, __STRICT_ANSI__ (which is defined by gcc -ansi or -std=c*)
was given too much importance.  This implementation limits the influence
of __STRICT_ANSI__ to controlling the default when no other feature test
macros are defined, and to the inclusion of <alloca.h> in <stdlib.h> as
documented.  These are the only places where __STRICT_ANSI__ should be
tested.

The following macros are now accepted: _ATFILE_SOURCE, _BSD_SOURCE,
_DEFAULT_SOURCE, _ISOC99_SOURCE, _ISOC11_SOURCE, _LARGEFILE_SOURCE,
_SVID_SOURCE, _XOPEN_SOURCE_EXTENDED.

The existing __*_VISIBLE internal macros have been kept mostly
compatible with the original BSD implementation, with some changes to
the criteria which controls them.  Several more macros in this style
have been added where needed for concision or accuracy.

Enabling C++11 or newer in the compiler also enables C99 and C11
functions.  Doing so should help move away from the need to define
_GNU_SOURCE in g++ for _GLIBCXX_USE_C99 support as on Linux:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51749

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
8 years agoadd release message for commit 4c9bb3e
Corinna Vinschen [Thu, 17 Mar 2016 16:58:43 +0000 (17:58 +0100)]
add release message for commit 4c9bb3e

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoPropagate correct Windows error if executable can't be opened
Corinna Vinschen [Thu, 17 Mar 2016 16:46:11 +0000 (17:46 +0100)]
Propagate correct Windows error if executable can't be opened

* spawn.cc (av::setup): Set last Win32 error if NtOpenFile fails.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoAdd release message for commit 7346568
Thomas Wolff [Thu, 17 Mar 2016 07:59:03 +0000 (08:59 +0100)]
Add release message for commit 7346568

8 years agoMake requested console reports work
Thomas Wolff [Wed, 16 Mar 2016 09:25:16 +0000 (10:25 +0100)]
Make requested console reports work

cf https://cygwin.com/ml/cygwin-patches/2012-q3/msg00019.html

This enables the following ESC sequences:
ESC[c sends primary device attributes
ESC[>c sends secondary device attributes
ESC[6n sends cursor position report

    * fhandler.h (class dev_console): Add console read-ahead buffer.
    (class fhandler_console): Add peek function for it (for select).
    * fhandler_console.cc (fhandler_console::setup): Init buffer.
    (fhandler_console::read): Check console read-aheader buffer.
    (fhandler_console::char_command): Put responses to terminal
    requests (device status and cursor position reports) into
    common console buffer (shared between CONOUT/CONIN)
    instead of fhandler buffer (separated).
    * select.cc (peek_console): Check console read-ahead buffer.

8 years agoAttempt to fix Coverity issues in ssp
Jon Turney [Tue, 15 Mar 2016 12:57:33 +0000 (12:57 +0000)]
Attempt to fix Coverity issues in ssp

* ssp.c (lookup_thread_id): Consistently check if tix is a null
pointer.
(run_program): Annotate that STATUS_BREAKPOINT falls-through to
STATUS_SINGLE_STEP case.
(main): Guard against high_pc-low_pc overflow and malloc failure.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
8 years agocygwin_getaddrinfo: workaround Winsock getaddrinfo issue with broken DNS
Corinna Vinschen [Mon, 14 Mar 2016 16:57:22 +0000 (17:57 +0100)]
cygwin_getaddrinfo: workaround Winsock getaddrinfo issue with broken DNS

Add experimental code to workaround the issue described in the thread
starting at

  https://cygwin.com/ml/cygwin/2015-07/msg00350.html

There's a hint in https://communities.vmware.com/message/2577858#2577858
that this problem is related to using the AI_ALL flag.

This patch checks if GetAddrInfoW returned with WSANO_RECOVERY and if
the AI_ALL flag was set, it retries GetAddrInfo without the AI_ALL flag.

* net.cc (cygwin_getaddrinfo): Add experimental code to retry
GetAddrInfoW without AI_ALL flag if it returned with WSANO_RECOVERY.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoDon't write NULL SID ACE if it's not necessary.
Corinna Vinschen [Sun, 13 Mar 2016 15:02:55 +0000 (16:02 +0100)]
Don't write NULL SID ACE if it's not necessary.

If the ACL is supposed to reflect only standard POSIX permissions,
and if the permissions are so that user has more perms than group
and group has more perms than other, we don't really need the NULL
SID ACE.  If the permissions are that simple, get_posix_access will
not call AuthZ.

* sec_acl.cc (set_posix_perms): Don't write NULL SID ACE if it's
not required.  Explain why.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
8 years agoor1k: properly restore timer
Stefan Roesch [Thu, 10 Mar 2016 16:51:55 +0000 (17:51 +0100)]
or1k: properly restore timer

Consider the function parameter for restoring the timer

8 years agoor1k: Fix multicore stack calculation
Stefan Roesch [Thu, 10 Mar 2016 16:50:52 +0000 (17:50 +0100)]
or1k: Fix multicore stack calculation

Change the type of the stack pointers to enable pointer calculations at byte
granularity, which is needed for the calculation of _or1k_stack_core[c] and
_or1k_exception_stack_core[c] with _or1k_stack_size and
_or1k_exception_stack_size. (util.c:53-54)

8 years agosetvbuf: Drop setting reent->__cleanup
Corinna Vinschen [Sun, 13 Mar 2016 11:03:03 +0000 (12:03 +0100)]
setvbuf: Drop setting reent->__cleanup

The __sinit call added with 1eb6db6 already sets reent->__cleanup.

* libc/stdio/setvbuf.c (setvbuf): Drop setting reent->__cleanup.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This page took 0.073486 seconds and 5 git commands to generate.