]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
10 years ago * dlmalloc.c: Remove unused file.
Corinna Vinschen [Thu, 14 Aug 2014 17:36:24 +0000 (17:36 +0000)]
* dlmalloc.c: Remove unused file.
* dlmalloc.h: Ditto.
* malloc.cc: Update to Doug Lea's malloc version 2.8.6.

10 years ago * arm/elf-nano.specs: New file.
Corinna Vinschen [Thu, 14 Aug 2014 15:00:33 +0000 (15:00 +0000)]
* arm/elf-nano.specs: New file.
* arm/elf-rdimon.specs: Support nano.specs.
* arm/Makefile.in: Support nano.specs.
* libnosys/nosys.specs: Support nano.specs.

10 years ago * libc/stdio/findfp.c (std): Don't inline when optimizing for code size.
Corinna Vinschen [Thu, 14 Aug 2014 08:33:00 +0000 (08:33 +0000)]
* libc/stdio/findfp.c (std): Don't inline when optimizing for code size.

10 years ago * new-features.xml: (ov-new1.7.33): Add new section.
Corinna Vinschen [Wed, 13 Aug 2014 17:44:07 +0000 (17:44 +0000)]
* new-features.xml: (ov-new1.7.33): Add new section.
(ov-new1.7.32): Reflect intermediate 1.7.32 release.

10 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 33.
Corinna Vinschen [Wed, 13 Aug 2014 17:38:47 +0000 (17:38 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 33.
(CYGWIN_VERSION_API_MINOR): Bump to reflect intermediate 1.7.32 release.

10 years ago * cpuid.h: Add missing copyright header. Fix formatting. Use uint32_t
Corinna Vinschen [Mon, 11 Aug 2014 12:03:18 +0000 (12:03 +0000)]
* cpuid.h: Add missing copyright header.  Fix formatting.  Use uint32_t
instead of unsigned throughout.  Change functions to static inline and
always inline.
(cpuid): Add parameter to set ecx, allowing to request extended CPUID
info.
* fhandler_proc.cc (format_proc_cpuinfo): Use uint32_t instead of
unsigned throughout.  Add fake decimal places to MHz info.  Handle more
feature flags.
* fhandler_random.cc (fhandler_dev_random::write): Allow up to 4K
input to add entropy.
* syscalls.cc: Drop including cpuid.h.

10 years ago* common.din (__cxa_finalize): Export.
Yaakov Selkowitz [Thu, 7 Aug 2014 16:25:06 +0000 (16:25 +0000)]
* common.din (__cxa_finalize): Export.
* dcrt0.cc (cygwin_atexit): Use d->handle with __cxa_atexit.
* dll_init.cc (dll_list::detach): Use d->handle with __cxa_finalize.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Use 274 for
__cxa_finalize as well.

10 years ago* Makefile.common (COMPILE.cc): Add -fno-use-cxa-atexit.
Yaakov Selkowitz [Thu, 7 Aug 2014 16:19:09 +0000 (16:19 +0000)]
* Makefile.common (COMPILE.cc): Add -fno-use-cxa-atexit.

10 years ago * passwd.c (usage): Rename DAYS to MINDAYS and MAXDAYS.
Corinna Vinschen [Wed, 6 Aug 2014 19:24:57 +0000 (19:24 +0000)]
* passwd.c (usage): Rename DAYS to MINDAYS and MAXDAYS.
* utils.xml (passwd): Ditto.

10 years ago * ntsec.xml (ntsec-mapping): Drop plus-prepended builtin accounts as
Corinna Vinschen [Wed, 6 Aug 2014 14:46:03 +0000 (14:46 +0000)]
* ntsec.xml (ntsec-mapping): Drop plus-prepended builtin accounts as
default setting.  Add short explanation in db_prefix: always mode.
Fix a type.  Drop a paragraph with redundant information.

10 years ago * include/sys/file.h: Add extern "C".
Corinna Vinschen [Wed, 6 Aug 2014 08:46:12 +0000 (08:46 +0000)]
* include/sys/file.h: Add extern "C".

10 years ago * libc/include/math.h: Also define M_PI etc. if _XOPEN_SOURCE is
Jon TURNEY [Mon, 4 Aug 2014 21:32:37 +0000 (21:32 +0000)]
* libc/include/math.h: Also define M_PI etc. if _XOPEN_SOURCE is
defined appropriately.

10 years ago * common.din (__cxa_atexit): Export.
Corinna Vinschen [Mon, 4 Aug 2014 16:52:04 +0000 (16:52 +0000)]
* common.din (__cxa_atexit): Export.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 274.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Drop "plus_prepended"
Corinna Vinschen [Mon, 4 Aug 2014 15:50:42 +0000 (15:50 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Drop "plus_prepended"
as naming style.  Drop enum name_style_t, use a boolean
"fully_qualified_name" value instead.  Rework function to drop
"plus_prepended" handling througout and default to "name only" style
as replacement.

10 years ago* faq-what.xml (faq.what.who): Remove mention of retired setup
Yaakov Selkowitz [Sun, 3 Aug 2014 19:53:24 +0000 (19:53 +0000)]
* faq-what.xml (faq.what.who): Remove mention of retired setup
maintainers.  Add link to cygwin-pkg-maint.

10 years agoheaders: properly decorate attributes
Eric Blake [Fri, 1 Aug 2014 15:48:37 +0000 (15:48 +0000)]
headers: properly decorate attributes

As pointed out here:
https://cygwin.com/ml/cygwin/2014-07/msg00371.html

any use of __attribute__ in a header that can be included by a user
should be namespace-safe, by decorating the attribute arguments with __
(while gcc does a lousy job at documenting it, ALL attributes have a __
counterpart, precisely so that public headers can use attributes without
risk of collision with macros belonging to user namespace).

* include/pthread.h: Decorate attribute names with __, for
namespace safety.
* include/cygwin/core_dump.h: Likewise.
* include/cygwin/cygwin_dll.h: Likewise.
* include/sys/cygwin.h: Likewise.
* include/sys/strace.h: Likewise.

10 years agoheaders: properly decorate attributes
Eric Blake [Fri, 1 Aug 2014 15:44:51 +0000 (15:44 +0000)]
headers: properly decorate attributes

Found by:
find -name '*.h' |xargs grep -i 'attribute.*(([a-z]'

For an example of the type of bugs this causes, try compiling this valid
C11 program (it's valid because 'noreturn' is reserved for use in the
user namespace unless you include <stdnoreturn.h>):

$ cat foo.c
#define noreturn __attribute__((noreturn))
#include <stdlib.h>
$ gcc -c -o foo.o -Wall foo.c
In file included from /usr/include/stdlib.h:11:0,
                 from foo.c:2:
foo.c:1:18: error: expected ')' before '__attribute__'
 #define noreturn __attribute__((noreturn))
                  ^
/usr/include/stdlib.h:66:28: error: expected ',' or ';' before ')' token
 _VOID _EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn)));
                            ^

* libc/machine/spu/spu_timer_internal.h: Decorate attribute names
with __, for namespace safety.
* libc/machine/xscale/machine/profile.h: Likewise.
* libc/include/stdlib.h: Likewise.
* libc/include/_ansi.h: Likewise.
* libc/include/sys/unistd.h: Likewise.
* libc/sys/linux/linuxthreads/libc-symbols.h: Likewise.
* libc/sys/linux/linuxthreads/internals.h: Likewise.
* libc/sys/linux/machine/i386/weakalias.h: Likewise.
* libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
* libc/sys/linux/machine/i386/dl-machine.h: Likewise.
* libc/sys/linux/libc-symbols.h: Likewise.
* libc/sys/linux/iconv/gconv_charset.h: Likewise.
* libc/sys/linux/include/resolv.h: Likewise.
* libc/sys/linux/sys/unistd.h: Likewise.
* libc/sys/linux/dl/atomicity.h: Likewise.
* libc/sys/linux/dl/dynamic-link.h: Likewise.
* libc/sys/linux/dl/ldsodefs.h: Likewise.

10 years ago* faq-what.xml (faq.what.who): CGF has retired.
Yaakov Selkowitz [Fri, 1 Aug 2014 01:29:46 +0000 (01:29 +0000)]
* faq-what.xml (faq.what.who): CGF has retired.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix comment.
Corinna Vinschen [Wed, 30 Jul 2014 14:23:53 +0000 (14:23 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Fix comment.

10 years ago * ntsec.xml: Small improvments.
Corinna Vinschen [Wed, 30 Jul 2014 12:00:24 +0000 (12:00 +0000)]
* ntsec.xml: Small improvments.

10 years ago * new-features.xml: (ov-new1.7): Change section title.
Corinna Vinschen [Wed, 30 Jul 2014 11:32:41 +0000 (11:32 +0000)]
* new-features.xml: (ov-new1.7): Change section title.

10 years ago * new-features.xml: (ov-new1.7.1): Add new section. Move old 1.7
Corinna Vinschen [Wed, 30 Jul 2014 11:28:58 +0000 (11:28 +0000)]
* new-features.xml: (ov-new1.7.1): Add new section.  Move old 1.7
sections into section level 3.

10 years ago * cygwin.xsl: Allow 3 section levels in TOC.
Corinna Vinschen [Wed, 30 Jul 2014 11:07:34 +0000 (11:07 +0000)]
* cygwin.xsl: Allow 3 section levels in TOC.
* new-features.xml: (ov-new1.7.32): Add new section.
* ntsec.xml: Rename top-level section to reflect extension of topics.
Remove old /etc/passwd, /etc/group considerations.  Add new sections
explaining Windows to POSIX account mapping.  Make setuid sections
third level sections.
* pathnames.xml: Note new method of account mapping for fstab.d/$USER.
* faq-setup.xml: Rework references to /etc/passwd and /etc/group to
reflect changes to account handling.
* faq-using.xml: Ditto.

10 years ago * libc/string/strerror.c: Fix documentation so makedoc doesn't
Corinna Vinschen [Wed, 30 Jul 2014 08:02:12 +0000 (08:02 +0000)]
* libc/string/strerror.c: Fix documentation so makedoc doesn't
stumble over a sole EAGAIN.

10 years agoAdd missing utils.xml
Corinna Vinschen [Tue, 29 Jul 2014 13:31:33 +0000 (13:31 +0000)]
Add missing utils.xml

10 years ago * mkgroup.c (usage): Move info message that this /etc/group isn't really
Corinna Vinschen [Tue, 29 Jul 2014 13:29:54 +0000 (13:29 +0000)]
* mkgroup.c (usage): Move info message that this /etc/group isn't really
required anymore more to the top of the usage output.
* mkpasswd.c (usage): Ditto for /etc/passwd.  Drop old text from output.

10 years ago * cygheap.h (class cygheap_domain_info): Remove lowest_tdo_posix_offset.
Corinna Vinschen [Tue, 29 Jul 2014 08:53:13 +0000 (08:53 +0000)]
* cygheap.h (class cygheap_domain_info): Remove lowest_tdo_posix_offset.
* ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): Return UINT32_MAX
in case of error.
* security.h (PRIMARY_POSIX_OFFSET): Define.
(NOACCESS_POSIX_OFFSET): Define.
(UNUSABLE_POSIX_OFFSET): Define.
* uinfo.cc (cygheap_domain_info::init): Drop initializing
lowest_tdo_posix_offset.
(pwdgrp::fetch_account_from_file): Set PosixOffset to either
UNUSABLE_POSIX_OFFSET or NOACCESS_POSIX_OFFSET in case we don't get a
sensible offset from AD.  Explain why.  Drop setting ch
lowest_tdo_posix_offset.
(pwdgrp::fetch_account_from_windows): Replace constant 0x100000 with
PRIMARY_POSIX_OFFSET throughout.

10 years agoFix typo in previous commit
Anthony Green [Mon, 28 Jul 2014 05:23:30 +0000 (05:23 +0000)]
Fix typo in previous commit

10 years agoAdd moxiebox support.
Anthony Green [Sun, 27 Jul 2014 14:37:10 +0000 (14:37 +0000)]
Add moxiebox support.

10 years ago * fhandler_socket.cc (fhandler_socket::send_internal): Fix value of
Corinna Vinschen [Thu, 24 Jul 2014 13:21:02 +0000 (13:21 +0000)]
* fhandler_socket.cc (fhandler_socket::send_internal): Fix value of
out_len when tweaking the last buffer so out_len is correct in a
subsequent if expression.

10 years ago2014-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
Joel Sherrill [Tue, 22 Jul 2014 19:30:00 +0000 (19:30 +0000)]
2014-07-22  Joel Sherrill <joel.sherrill@oarcorp.com>

* libc/include/sys/time.h: Add prototype for adjtime() and
wrap it and settimeofday() prototype with __BSD_VISIBLE.

10 years ago * thread.cc (pthread::init_mainthread): Initialize thread mutex to
Corinna Vinschen [Mon, 21 Jul 2014 16:32:09 +0000 (16:32 +0000)]
* thread.cc (pthread::init_mainthread): Initialize thread mutex to
type PTHREAD_MUTEX_RECURSIVE, just as for any other thread.

10 years agobump to 32
Corinna Vinschen [Mon, 21 Jul 2014 11:08:07 +0000 (11:08 +0000)]
bump to 32

10 years ago * uinfo.cc: Fix typo in comment.
Corinna Vinschen [Mon, 21 Jul 2014 09:55:52 +0000 (09:55 +0000)]
   * uinfo.cc: Fix typo in comment.

10 years ago * new-features.xml: (ov-new1.7.31): Add new section.
Corinna Vinschen [Mon, 21 Jul 2014 09:47:05 +0000 (09:47 +0000)]
* new-features.xml: (ov-new1.7.31): Add new section.

10 years ago*** empty log message ***
Corinna Vinschen [Fri, 18 Jul 2014 12:28:00 +0000 (12:28 +0000)]
*** empty log message ***

10 years agoFix missing generated files
Corinna Vinschen [Thu, 17 Jul 2014 18:43:55 +0000 (18:43 +0000)]
Fix missing generated files

10 years ago * configure.host: Remove or16 and or32 targets and add or1k.
Corinna Vinschen [Thu, 17 Jul 2014 18:43:05 +0000 (18:43 +0000)]
* configure.host: Remove or16 and or32 targets and add or1k.
* libc/include/machine/ieeefp.h: Replace or32 with or1k.
* libc/machine/configure.in: Add or1k subdirectory.
* libc/machine/or1k/configure.in: New file.
* libc/machine/or1k/Makefile.am: New file.
* libc/machine/or1k/setjmp.S: New file.

10 years ago.
Christopher Faylor [Wed, 16 Jul 2014 14:30:56 +0000 (14:30 +0000)]
.

10 years ago * arm/elf-aprofile-validation.specs (*link): Make text segment
Corinna Vinschen [Wed, 16 Jul 2014 11:53:34 +0000 (11:53 +0000)]
* arm/elf-aprofile-validation.specs (*link): Make text segment
64k-aligned.
* arm/elf-aprofile-ve.specs (*link): Likewise.

10 years ago*** empty log message ***
Corinna Vinschen [Wed, 16 Jul 2014 10:29:28 +0000 (10:29 +0000)]
*** empty log message ***

10 years ago * thread.cc (pthread::create): Handle stackaddr as upper bound address.
Corinna Vinschen [Wed, 16 Jul 2014 10:21:18 +0000 (10:21 +0000)]
* thread.cc (pthread::create): Handle stackaddr as upper bound address.
Add comment.
(pthread_attr_setstack): Store upper bound address in stackaddr.
Explain why.
(pthread_attr_getstack): Handle stackaddr as upper bound address.
Add comment.
(pthread_attr_setstackaddr): Add comment.
(pthread_attr_getstackaddr): Add comment.
(pthread_attr_getstacksize): Return default stacksize if stacksize has
not been set by the application, just as on Linux.  Add comment.
(pthread_getattr_np): Store upper bound address in stackaddr.  Explain
why.
* include/pthread.h: Remove outdated comment.
(pthread_attr_getstackaddr): Mark as deprecated, as on Linux.
(pthread_attr_setstackaddr): Ditto.

10 years ago*** empty log message ***
Corinna Vinschen [Wed, 16 Jul 2014 10:15:25 +0000 (10:15 +0000)]
*** empty log message ***

10 years agoFix typo
Corinna Vinschen [Wed, 16 Jul 2014 08:30:20 +0000 (08:30 +0000)]
Fix typo

10 years ago* sigproc.cc (sigproc_init): Set aside more buffer space for signal pipes.
Christopher Faylor [Tue, 15 Jul 2014 22:11:23 +0000 (22:11 +0000)]
* sigproc.cc (sigproc_init): Set aside more buffer space for signal pipes.
(sig_send): Retry WriteFiles which fail when there is no error but packbytes
have not been sent.

10 years ago* sigproc.cc (send_sig): Don't report an error if WriteFile succeeds.
Christopher Faylor [Tue, 15 Jul 2014 14:57:30 +0000 (14:57 +0000)]
* sigproc.cc (send_sig): Don't report an error if WriteFile succeeds.

10 years agoFix typo
Corinna Vinschen [Tue, 15 Jul 2014 08:45:10 +0000 (08:45 +0000)]
Fix typo

10 years ago* sigproc.cc (send_sig): Fix bad format in diagnostic output.
Christopher Faylor [Mon, 14 Jul 2014 18:16:16 +0000 (18:16 +0000)]
* sigproc.cc (send_sig): Fix bad format in diagnostic output.

10 years ago * libc/include/sys/errno.h: Fix comments.
Corinna Vinschen [Mon, 14 Jul 2014 13:40:17 +0000 (13:40 +0000)]
* libc/include/sys/errno.h: Fix comments.
* libc/string/strerror.c: Fix documentation.
(_strerror_r): Handle ENETRESET, EILSEQ, ENODATA, ECONNRESET,
EADDRNOTAVAIL, EOVERFLOW.  Fix strings for EMFILE and EDOM.

10 years ago * uinfo.cc (cygheap_domain_info::init): Correctly set
Corinna Vinschen [Mon, 14 Jul 2014 13:33:20 +0000 (13:33 +0000)]
* uinfo.cc (cygheap_domain_info::init): Correctly set
lowest_tdo_posix_offset to UNIX_POSIX_OFFSET.
(fetch_posix_offset): Redesign to fake a POSIX offset in all cases
where we can't fetch a non-0 POSIX offset from our primary domain.

10 years ago * thread.cc (pthread_mutex::pthread_mutex): Change default type
Corinna Vinschen [Mon, 14 Jul 2014 09:42:15 +0000 (09:42 +0000)]
* thread.cc (pthread_mutex::pthread_mutex): Change default type
to PTHREAD_MUTEX_NORMAL.
(pthread_mutex::unlock): Return EPERM if the mutex has no owner and
the mutex type is PTHREAD_MUTEX_ERRORCHECK, as on Linux.
(pthread_mutexattr::pthread_mutexattr): Ditto.
(pthread_mutex_unlock): Do not fail if mutex is a normal mutex
initializer.
* include/pthread.h (PTHREAD_MUTEX_INITIALIZER): Redefine as
PTHREAD_NORMAL_MUTEX_INITIALIZER_NP.

10 years ago[aarch64] Add memchr.
Richard Earnshaw [Fri, 11 Jul 2014 09:10:50 +0000 (09:10 +0000)]
[aarch64] Add memchr.

2014-07-11  K�vin Petit  <kevin.petit@arm.com>

* libc/machine/aarch64/memchr.S: New file.
* libc/machine/aarch64/memchr-stub.c: New file.
* libc/machine/aarch64/Makefile.am: Add the new files.
* libc/machine/aarch64/Makefile.in: Regenerated.

10 years ago * thread.cc (pthread::create): Use PTHREAD_DEFAULT_STACKSIZE stacksize
Corinna Vinschen [Wed, 9 Jul 2014 12:06:08 +0000 (12:06 +0000)]
* thread.cc (pthread::create): Use PTHREAD_DEFAULT_STACKSIZE stacksize
if attr.stacksize is 0.
(pthread_attr::pthread_attr): Initialize stacksize to 0 to align more
closely to Linux.
(pthread_attr_getstack): Fix incorrect stackaddr computation.  Return
stackaddr just like pthread_attr_getstackaddr.  Remove slightly off
comment.
(pthread_attr_getstackaddr): Remove slightly off comment.
(pthread_getattr_np): Return stackaddr and stacksize based on the full
allocated stackarea.

10 years ago * exceptions.cc (exception::myfault_handle): Rephrase comment.
Corinna Vinschen [Wed, 9 Jul 2014 10:41:11 +0000 (10:41 +0000)]
* exceptions.cc (exception::myfault_handle): Rephrase comment.

10 years ago * exceptions.cc (exception::myfault_handle): Fix typo in comment.
Corinna Vinschen [Wed, 9 Jul 2014 10:21:05 +0000 (10:21 +0000)]
* exceptions.cc (exception::myfault_handle): Fix typo in comment.

10 years ago * exceptions.cc (exception::myfault_handle): Disable handling
Corinna Vinschen [Mon, 7 Jul 2014 19:58:16 +0000 (19:58 +0000)]
* exceptions.cc (exception::myfault_handle): Disable handling
STATUS_STACK_OVERFLOW.  Explain why.

10 years ago2014-07-07 Pavel Pisa <pisa@cmp.felk.cvut.cz>
Richard Earnshaw [Mon, 7 Jul 2014 13:58:35 +0000 (13:58 +0000)]
2014-07-07  Pavel Pisa  <pisa@cmp.felk.cvut.cz>
    Richard Earnshaw  <rearnsha@arm.com>

* libc/machine/arm/memchr.S (.arch): Require revision ARMv6t2.

10 years ago * configure.in (--enable-newlib-nano-formatted-io): Set to "no"
Corinna Vinschen [Mon, 7 Jul 2014 13:15:55 +0000 (13:15 +0000)]
* configure.in (--enable-newlib-nano-formatted-io): Set to "no"
by default.
* configure: Regenerated.

10 years ago * fhandler_socket.cc (fhandler_socket::send_internal): Improve loop to
Corinna Vinschen [Mon, 7 Jul 2014 12:57:03 +0000 (12:57 +0000)]
* fhandler_socket.cc (fhandler_socket::send_internal): Improve loop to
write streams in chunks of wmem() bytes to raise performance when
writing small buffers.  Rename variables and add comments to help
understanding the code in years to come.

10 years ago * passwd.cc (pg_ent::enumerate_ad): Revert to simply skipping a domain
Corinna Vinschen [Mon, 7 Jul 2014 10:22:51 +0000 (10:22 +0000)]
* passwd.cc (pg_ent::enumerate_ad): Revert to simply skipping a domain
if opening the connection to the domain fails.

10 years ago * libc/minires.c (minires_dprintf): Change "Minires" to "Resolv" to
Corinna Vinschen [Mon, 7 Jul 2014 08:40:31 +0000 (08:40 +0000)]
* libc/minires.c (minires_dprintf): Change "Minires" to "Resolv" to
differ from external minres lib.
(res_nquerydomain): Fix off-by-one in domain concatenation.  Add debug
output.

10 years ago * configure.ac: Don't accept isl 0.10.
Rainer Orth [Sat, 5 Jul 2014 21:09:07 +0000 (21:09 +0000)]
* configure.ac: Don't accept isl 0.10.
* configure: Regenerate.

10 years ago2014-07-04 Bin Cheng <bin.cheng@arm.com>
Jeff Johnston [Fri, 4 Jul 2014 17:21:45 +0000 (17:21 +0000)]
2014-07-04  Bin Cheng  <bin.cheng@arm.com>

        * README (--enable-newlib-nano-formatted-io): Describe.
        * acconfig.h (_NANO_FORMATTED_IO): Undef.
        * newlib.hin (_NANO_FORMATTED_IO): Undef.
        * configure.in (--enable-newlib-nano-formatted-io): New option.
        * configure: Regenerated.
        * libc/configure.in (--enable-newlib-nano-formatted-io): New option.
        * libc/configure: Regenerated.
        * libc/stdio/Makefile.am (NEWLIB_NANO_FORMATTED_IO): Support new
        configuration option.
        * libc/stdio/Makefile.in: Regenerated.
        * libc/stdio/asnprintf.c (_asniprintf_r, asniprintf): Use
        _NANO_FORMATTED_IO to declare alias prototypes.
        * libc/stdio/asprintf.c (_asiprintf_r, asiprintf): Ditto.
        * libc/stdio/dprintf.c (_diprintf_r, diprintf): Ditto.
        * libc/stdio/fprintf.c (_fiprintf_r, fiprintf): Ditto.
        * libc/stdio/fscanf.c (fiscanf, _fiscanf_r): Ditto.
        * libc/stdio/printf.c (_iprintf_r, iprintf): Ditto.
        * libc/stdio/scanf.c (iscanf, _iscanf_r): Ditto.
        * libc/stdio/snprintf.c (_sniprintf_r, sniprintf): Ditto.
        * libc/stdio/sprintf.c (_siprintf_r, siprintf): Ditto.
        * libc/stdio/sscanf.c (siscanf, _siscanf_r): Ditto.
        * libc/stdio/vasnprintf.c (_vasniprintf_r, vasniprintf): Ditto.
        * libc/stdio/vasprintf.c (vasiprintf, _vasiprintf_r): Ditto.
        * libc/stdio/vdprintf.c (_vdiprintf_r, vdiprintf): Ditto.
        * libc/stdio/vprintf.c (viprintf, _viprintf_r): Ditto.
        * libc/stdio/vscanf.c (viscanf, _viscanf_r): Ditto.
        * libc/stdio/vsnprintf.c (vsniprintf, _vsniprintf_r): Ditto.
        * libc/stdio/vsprintf.c (vsiprintf, _vsiprintf_r): Ditto.
        * libc/stdio/vsscanf.c (vsiscanf, _vsiscanf_r): Ditto.
        * libc/stdio/nano-vfprintf.c: New file.
        * libc/stdio/nano-vfprintf_float.c: New file.
        * libc/stdio/nano-vfprintf_i.c: New file.
        * libc/stdio/nano-vfprintf_local.h: New file.
        * libc/stdio/nano-vfscanf.c: New file.
        * libc/stdio/nano-vfscanf_float.c: New file.
        * libc/stdio/nano-vfscanf_i.c: New file.
        * libc/stdio/nano-vfscanf_local.h: New file.

10 years ago * fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Add debug
Corinna Vinschen [Thu, 3 Jul 2014 16:48:21 +0000 (16:48 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Add debug
output.

10 years ago * legal.xml: Fix copyright.
Corinna Vinschen [Thu, 26 Jun 2014 13:14:50 +0000 (13:14 +0000)]
* legal.xml: Fix copyright.

10 years ago * errno.cc (errmap): Fix order of SERVICE_REQUEST_TIMEOUT.
Corinna Vinschen [Wed, 25 Jun 2014 10:01:58 +0000 (10:01 +0000)]
* errno.cc (errmap): Fix order of SERVICE_REQUEST_TIMEOUT.

10 years ago * errno.cc (errmap): Handle Windows error codes ERROR_CANCELLED,
Corinna Vinschen [Wed, 25 Jun 2014 09:59:38 +0000 (09:59 +0000)]
* errno.cc (errmap): Handle Windows error codes ERROR_CANCELLED,
ERROR_CONNECTION_REFUSED, ERROR_DEV_NOT_EXIST, ERROR_DS_GENERIC_ERROR,
ERROR_NOT_ENOUGH_QUOTA, ERROR_SERVICE_REQUEST_TIMEOUT, ERROR_TIMEOUT,
ERROR_UNEXP_NET_ERR.
* ldap.cc (cyg_ldap::map_ldaperr_to_errno): Drop explicit LDAP_TIMEOUT
handling.

10 years ago * ldap.cc (cyg_ldap::map_ldaperr_to_errno): Explicitely map LDAP_TIMEOUT
Corinna Vinschen [Wed, 25 Jun 2014 09:28:12 +0000 (09:28 +0000)]
* ldap.cc (cyg_ldap::map_ldaperr_to_errno): Explicitely map LDAP_TIMEOUT
to EIO.

10 years ago * autoload.cc (ldap_search_sW): Replace ldap_search_stW.
Corinna Vinschen [Wed, 25 Jun 2014 09:10:50 +0000 (09:10 +0000)]
* autoload.cc (ldap_search_sW): Replace ldap_search_stW.
(LdapMapErrorToWin32): Import.
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Accommodate
change to cyg_ldap::open.
* ldap.cc (CYG_LDAP_TIMEOUT): Remove.
(CYG_LDAP_ENUM_TIMEOUT): Remove.
(def_tv): Remove.
(enum_tv): Remove.
(cyg_ldap::map_ldaperr_to_errno): New method to map LDAP error codes to
POSIX errno codes.  Explicitly map LDAP_NO_RESULTS_RETURNED to ENMFILE.
(cyg_ldap::wait): Ditto.
(struct cyg_ldap_init): New struct.
(cyg_ldap::connect_ssl): Return ULONG.  Drop setting LDAP_OPT_TIMELIMIT.
Add call to ldap_search_sW to fetch root DSE.
(cyg_ldap::connect_non_ssl): Ditto.
(ldap_init_thr): New static thread function.
(cyg_ldap::connect): New method to call connect_ssl/connect_non_ssl in
an interruptible cygthread.
(struct cyg_ldap_search): New struct.
(cyg_ldap::search_s): New method to perform generic synchronous search.
(ldap_search_thr): New static thread function.
(cyg_ldap::search): New method to call search_s in an interruptible
cygthread.
(struct cyg_ldap_next_page): New struct.
(cyg_ldap::next_page_s): New method to perform generic synchronous
paged search.
(ldap_next_page_thr): New static thread function.
(cyg_ldap::next_page): New method to call next_page_s in an
interruptible cygthread.
(cyg_ldap::open): Return POSIX errno.  Call connect method.
(cyg_ldap::fetch_ad_account): Call search method rather than
ldap_search_stW.
(cyg_ldap::enumerate_ad_accounts): Return POSIX errno.  Use infinite
timeout in call to ldap_search_init_pageW.
(cyg_ldap::next_account): Return POSIX errno.  Call next_page method
rather than ldap_get_next_page_s.
(cyg_ldap::fetch_posix_offset_for_domain): Call search method rather
than ldap_search_stW.
(cyg_ldap::fetch_unix_sid_from_ad): Ditto.
(cyg_ldap::fetch_unix_name_from_rfc2307): Ditto.
* ldap.h (class cyg_ldap): Accommodate aforementioned changes.
* passwd.cc (pg_ent::enumerate_ad): Ditto.  Break search if one of
cyg_ldap::enumerate_ad_accounts or cldap.next_account returns with
an error code other than ENMFILE.
* sec_helper.cc (cygpsid::get_id): Accommodate change to cyg_ldap::open.
* uinfo.cc (fetch_posix_offset): Ditto.

10 years ago * libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin Coverity
Corinna Vinschen [Mon, 23 Jun 2014 20:21:54 +0000 (20:21 +0000)]
* libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin Coverity
Scan CID 60023).
* libc/ctype/iswalpha.c (iswalpha): Add bounds check to avoid
out-of-bounds read from utf8 tables (CID 59949).
* libc/locale/ldpart.c (__part_load_locale): Add 1 byte to size of lbuf.
Write NUL into the last byte to accommodate split_lines (CID 60047).

10 years ago * spawn.cc (find_exec): Initialize err (CID 60111).
Corinna Vinschen [Mon, 23 Jun 2014 19:05:15 +0000 (19:05 +0000)]
* spawn.cc (find_exec): Initialize err (CID 60111).
* strace.cc (strace::activate): Fix potential buffer overrun (CID 59938)
* syscalls.cc (popen): Close parent pipe descriptor via fclosing fp on
error to avoid resource leak (CID 59981).
* thread.cc (pthread::exit): Avoid accessing cygtls member after
deleting "this" (CID 60217).

10 years ago * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error
Corinna Vinschen [Mon, 23 Jun 2014 15:13:12 +0000 (15:13 +0000)]
* bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error
case to make Coverity really happy (CID 59993).

10 years ago * select.cc (start_thread_socket): Delete si on early return in case of
Corinna Vinschen [Mon, 23 Jun 2014 14:56:45 +0000 (14:56 +0000)]
* select.cc (start_thread_socket): Delete si on early return in case of
an error (CID 59967).

10 years ago * regex/regcomp.c (computematchjumps): Free local memory in case of
Corinna Vinschen [Mon, 23 Jun 2014 14:33:55 +0000 (14:33 +0000)]
* regex/regcomp.c (computematchjumps): Free local memory in case of
error (CID 59975).

10 years ago * mount.cc (fs_info::update): Define dir in the outermost scope to avoid
Corinna Vinschen [Mon, 23 Jun 2014 14:05:16 +0000 (14:05 +0000)]
* mount.cc (fs_info::update): Define dir in the outermost scope to avoid
accessing out-of-scope value (CID 60027).  Always initialize attr to
upath (CID 60113).

10 years ago * malloc_wrapper.cc (mallinfo): Initialize m if external malloc is used,
Corinna Vinschen [Mon, 23 Jun 2014 13:45:49 +0000 (13:45 +0000)]
* malloc_wrapper.cc (mallinfo): Initialize m if external malloc is used,
too (CID 60120).

10 years ago * localtime.cc (tzload): Fix leaking memory (CID 60001).
Corinna Vinschen [Mon, 23 Jun 2014 13:38:06 +0000 (13:38 +0000)]
* localtime.cc (tzload): Fix leaking memory (CID 60001).

10 years ago * exceptions.cc (try_to_debug): Free environment pointer when not used
Corinna Vinschen [Mon, 23 Jun 2014 13:23:14 +0000 (13:23 +0000)]
* exceptions.cc (try_to_debug): Free environment pointer when not used
anymore (CID 59968).

10 years ago * net.cc (cygwin_getaddrinfo): Fix value of hint->ai_addrlen on 64 bit.
Corinna Vinschen [Mon, 23 Jun 2014 12:35:31 +0000 (12:35 +0000)]
* net.cc (cygwin_getaddrinfo): Fix value of hint->ai_addrlen on 64 bit.
Explain why.

10 years ago * environ.cc (regopt): Allocate small local buffer to avoid copying
Corinna Vinschen [Mon, 23 Jun 2014 11:43:33 +0000 (11:43 +0000)]
* environ.cc (regopt): Allocate small local buffer to avoid copying
twice.  Fixes resource leak (CID 60012).  Add comment.

10 years ago * dll_init.cc (dll_list::alloc): Fix buffer overrun (CID 59940).
Corinna Vinschen [Mon, 23 Jun 2014 10:52:44 +0000 (10:52 +0000)]
* dll_init.cc (dll_list::alloc): Fix buffer overrun (CID 59940).

10 years ago * dcrt0.cc (insert_file): Fix resource leaks (CIDs 59987, 59988).
Corinna Vinschen [Mon, 23 Jun 2014 10:18:26 +0000 (10:18 +0000)]
* dcrt0.cc (insert_file): Fix resource leaks (CIDs 59987, 59988).

10 years ago * client.cc: Throughout, fix debug output of signed byte count value.
Corinna Vinschen [Mon, 23 Jun 2014 09:17:24 +0000 (09:17 +0000)]
* client.cc: Throughout, fix debug output of signed byte count value.

10 years ago * ldap.cc (CYG_LDAP_TIMEOUT): Set to 5 secs.
Corinna Vinschen [Mon, 23 Jun 2014 09:09:54 +0000 (09:09 +0000)]
* ldap.cc (CYG_LDAP_TIMEOUT): Set to 5 secs.
(CYG_LDAP_ENUM_TIMEOUT): New timeout value for enumeration only.  Set
to 60 secs.
(CYG_LDAP_ENUM_PAGESIZE): Define as number of entries per single
search page.  Set to 100.  Use throughout.
(def_tv): Rename from tv.  Use throughout.
(enum_tv): New variable.  Use in call to ldap_get_next_page_s.

10 years ago * ldap.cc (CYG_LDAP_TIMEOUT): Define as timeout value. Set to 30 secs
Corinna Vinschen [Wed, 18 Jun 2014 17:41:52 +0000 (17:41 +0000)]
* ldap.cc (CYG_LDAP_TIMEOUT): Define as timeout value.  Set to 30 secs
for now.  Use throughout.
* uinfo.cc (colon_to_semicolon): New local function.
(pwdgrp::fetch_account_from_windows): Convert all colons in AD gecos
entry to commas.

10 years ago* faq-programming.xml: Add gettext-devel to list of packages needed to build
Christopher Faylor [Tue, 17 Jun 2014 14:49:06 +0000 (14:49 +0000)]
* faq-programming.xml: Add gettext-devel to list of packages needed to build
Cygwin.

10 years agoFix timestamp
Corinna Vinschen [Tue, 17 Jun 2014 13:13:06 +0000 (13:13 +0000)]
Fix timestamp

10 years ago * libc/rexec.cc (cygwin_rexec): Make ahostbuf static to avoid returning
Corinna Vinschen [Tue, 17 Jun 2014 08:46:59 +0000 (08:46 +0000)]
* libc/rexec.cc (cygwin_rexec): Make ahostbuf static to avoid returning
an out-of-scope address.

10 years ago* passwd.c (main): Fix typo in error output.
Corinna Vinschen [Mon, 16 Jun 2014 13:27:08 +0000 (13:27 +0000)]
* passwd.c (main): Fix typo in error output.

10 years ago * fhandler_socket.cc (fhandler_socket::evaluate_events): Call
Corinna Vinschen [Mon, 16 Jun 2014 13:01:40 +0000 (13:01 +0000)]
* fhandler_socket.cc (fhandler_socket::evaluate_events): Call
WSASetLastError after setsockopt.  Explain why.

10 years ago * grp.cc (getgrouplist): Fix setting ngroups to make sure to return
Corinna Vinschen [Mon, 16 Jun 2014 09:12:29 +0000 (09:12 +0000)]
* grp.cc (getgrouplist): Fix setting ngroups to make sure to return
the right value.

10 years agomerge from gcc
DJ Delorie [Wed, 11 Jun 2014 17:56:17 +0000 (17:56 +0000)]
merge from gcc

10 years ago * libc/machine/aarch64/strchrnul.S: New file.
Richard Earnshaw [Wed, 11 Jun 2014 10:42:54 +0000 (10:42 +0000)]
* libc/machine/aarch64/strchrnul.S: New file.
* libc/machine/aarch64/strchrnul-stub.c: New file.
* libc/machine/aarch64/Makefile.am: Add them to build list.
* libc/machine/aarch64/Makefile.in: Regenerated.

10 years ago * libc/machine/aarch64/strchr.S: New file
Richard Earnshaw [Tue, 10 Jun 2014 14:04:31 +0000 (14:04 +0000)]
* libc/machine/aarch64/strchr.S: New file
* libc/machine/aarch64/strchr-stub.c: New file
* libc/machine/aarch64/Makefile.am: Add them to build list.
* libc/machine/aarch64/Makefile.in: Regenerated.

10 years ago* configure.host (default_newlib_nano_malloc): New.
DJ Delorie [Tue, 10 Jun 2014 03:09:35 +0000 (03:09 +0000)]
* configure.host (default_newlib_nano_malloc): New.
(msp430): Set it.
* configure.in (newlib_nano_malloc): Leave unset if not set by
the user.
* configure: Regenerate.
* libc/configure.in (NEWLIB_NANO_MALLOC): Set after running
configure.host.
(newlib_nano_malloc): Leave unset if not set by the user.
* libc/configure: Regenerate.

10 years ago* timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf, printing
Christopher Faylor [Thu, 5 Jun 2014 19:50:24 +0000 (19:50 +0000)]
* timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf, printing
more details about odd failure condition.

10 years ago * autoload.cc (ldap_memfreeW): Remove.
Corinna Vinschen [Fri, 23 May 2014 10:29:11 +0000 (10:29 +0000)]
* autoload.cc (ldap_memfreeW): Remove.
(ldap_msgfree): Import.
* ldap.cc: Throughout, use ldap_msgfree to free LDAPMessage memory,
rather than ldap_memfreeW.
(cyg_ldap::next_account): Immediately abandon search when quiting from
search.

10 years ago*** empty log message ***
Corinna Vinschen [Fri, 23 May 2014 07:15:30 +0000 (07:15 +0000)]
*** empty log message ***

10 years ago * autoload.cc (ldap_abandon): Remove.
Corinna Vinschen [Thu, 22 May 2014 20:07:25 +0000 (20:07 +0000)]
* autoload.cc (ldap_abandon): Remove.
(ldap_count_entries): Import.
(ldap_get_next_page_s): Import.
(ldap_result): Remove.
(ldap_searchW): Remove.
(ldap_search_abandon_page): Import.
(ldap_search_init_pageW): Import.
* ldap.cc (cyg_ldap::close): Use ldap_search_abandon_page to abandon
search.  Reset srch_id, srch_msg and srch_entry.
(cyg_ldap::enumerate_ad_accounts): Use paged search to overcome server
side search result set restriction.
(cyg_ldap::next_account): Ditto.
* ldap.h (class cyg_ldap): Add members srch_id, srch_msg and srch_entry.
Remove member msg_id.
(cyg_ldap::cyg_ldap): Change initialization accordingly.

10 years ago * sec_auth.cc (get_server_groups): Call get_user_local_groups only if
Corinna Vinschen [Thu, 22 May 2014 16:40:13 +0000 (16:40 +0000)]
* sec_auth.cc (get_server_groups): Call get_user_local_groups only if
get_logon_server succeeded.

This page took 0.06816 seconds and 5 git commands to generate.