]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
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.

10 years agomerge from gcc
DJ Delorie [Thu, 22 May 2014 15:01:34 +0000 (15:01 +0000)]
merge from gcc

10 years ago * ldap.cc (cyg_ldap::fetch_ad_account): Take additional domain string
Corinna Vinschen [Thu, 22 May 2014 14:50:24 +0000 (14:50 +0000)]
* ldap.cc (cyg_ldap::fetch_ad_account): Take additional domain string
parameter.  Convert into likely rootDSE string if not NULL, and use in
subsequent call to ldap_search_stW.  Add comment to explain that this
is not the exactly correct solution.
* ldap.h (cyg_ldap::fetch_ad_account): Change prototype accordingly.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Always use loc_ldap
in call to fetch_posix_offset to make sure we're fetchoinmg the posix
offsets from *our* domain controller.  Only set domain variable to
non-NULL if the account is from a trusted domain.  Use domain in call
to cyg_ldap::fetch_ad_account.

10 years ago * gmon.h: Pull in profile.h. Explain why.
Corinna Vinschen [Thu, 22 May 2014 10:25:45 +0000 (10:25 +0000)]
* gmon.h: Pull in profile.h.  Explain why.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix potential SEGV
Corinna Vinschen [Thu, 22 May 2014 09:47:23 +0000 (09:47 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Fix potential SEGV
referencing NULL pointer.

10 years ago * libc/bsdlib.cc (forkpty): Close master and slave if fork fails to
Corinna Vinschen [Thu, 22 May 2014 09:45:17 +0000 (09:45 +0000)]
* libc/bsdlib.cc (forkpty): Close master and slave if fork fails to
avoid resource leak (CID 59997).
* libc/fts.c: Update to FreeBSD version 1.39 (CID 59947).
* libc/minires.c (minires_get_search): Fix out-of-bounds read from
words array (CID 59937).

10 years ago * flock.cc (delete_lock_in_parent): Use LIST_FOREACH_SAFE to avoid
Corinna Vinschen [Tue, 20 May 2014 14:54:06 +0000 (14:54 +0000)]
* flock.cc (delete_lock_in_parent): Use LIST_FOREACH_SAFE to avoid
dereferencing freed pointer (CID 60224).

10 years ago * fhandler_procsysvipc.cc (format_procsysvipc_msg): Rearrange code to
Corinna Vinschen [Tue, 20 May 2014 14:49:02 +0000 (14:49 +0000)]
* fhandler_procsysvipc.cc (format_procsysvipc_msg): Rearrange code to
avoid resource leakage (CID 60002).  Don't use tmp_pathbuf, explain why.
Fix indentation.
(format_procsysvipc_sem): Ditto.
(format_procsysvipc_shm): Ditto (CID 60003).

10 years ago * fhandler_process.cc (get_mem_values): Rearrange code slightly to
Corinna Vinschen [Tue, 20 May 2014 11:20:02 +0000 (11:20 +0000)]
* fhandler_process.cc (get_mem_values): Rearrange code slightly to
avoid resource leakage (CID 59973).
(format_process_stat): Drop temporary variable wcmd and avoid
string copy without length check (CID 60050).
(format_process_status): Ditto (CID 60051).

10 years ago * fhandler_proc.cc (format_proc_swaps): Use tmp_pathbuf for filename,
Corinna Vinschen [Tue, 20 May 2014 11:00:37 +0000 (11:00 +0000)]
* fhandler_proc.cc (format_proc_swaps): Use tmp_pathbuf for filename,
rather than allocating and forgetting to free (CID 59982).

10 years ago * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Fix floppy
Corinna Vinschen [Tue, 20 May 2014 10:25:32 +0000 (10:25 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Fix floppy
drive handling broken with 1.7.19.

10 years ago * scandir.cc (scandir): Assume namelist is always valid, per POSIX.
Corinna Vinschen [Tue, 20 May 2014 10:21:34 +0000 (10:21 +0000)]
* scandir.cc (scandir): Assume namelist is always valid, per POSIX.
(CID 60021).
* sec_auth.cc (cygwin_logon_user): Securely erase password copy.
(lsaprivkeyauth): Avoid trying to dereference data if no key is stored
in the registry (CID 60122).  Securely erase passwords after usage.

10 years ago * pseudo-reloc.cc (__report_error): Raise size of module name buffer to
Corinna Vinschen [Mon, 19 May 2014 16:56:31 +0000 (16:56 +0000)]
* pseudo-reloc.cc (__report_error): Raise size of module name buffer to
PATH_MAX.  Fix length in call to GetModuleFileNameW (CID 59947).

10 years ago * net.cc (call_gaa): Fix setting pa_ret pointer in case of an error
Corinna Vinschen [Mon, 19 May 2014 15:57:22 +0000 (15:57 +0000)]
* net.cc (call_gaa): Fix setting pa_ret pointer in case of an error
from GetAdaptersAddresses (CID 60218).
(get_ifs): Add missing braces in AF_INET6 case which broke netmask
computation.  Break out of loop if prefix gets <= 0 (CID 59939).

10 years ago* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 31.
Corinna Vinschen [Mon, 19 May 2014 14:31:08 +0000 (14:31 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 31.

10 years ago * dtable.cc (handle_to_fn): Fix length parameter in call to
Corinna Vinschen [Mon, 19 May 2014 11:17:59 +0000 (11:17 +0000)]
* dtable.cc (handle_to_fn): Fix length parameter in call to
QueryDosDeviceW (CID 59936).

10 years ago * pinfo.cc (pinfo_basic::pinfo_basic): Fix size of progname array in
Corinna Vinschen [Mon, 19 May 2014 10:46:47 +0000 (10:46 +0000)]
* pinfo.cc (pinfo_basic::pinfo_basic): Fix size of progname array in
call to GetModuleFileNameW (CID 59935).

10 years ago * smallprintf.cc (__small_vsprintf): Add missing break in 'C' case.
Corinna Vinschen [Mon, 19 May 2014 10:42:04 +0000 (10:42 +0000)]
* smallprintf.cc (__small_vsprintf): Add missing break in 'C' case.

10 years ago * exceptions.cc (try_to_debug): Fix size of dbg_cmd (CID 59929).
Corinna Vinschen [Mon, 19 May 2014 10:28:54 +0000 (10:28 +0000)]
* exceptions.cc (try_to_debug): Fix size of dbg_cmd (CID 59929).

10 years ago * bsd_mutex.cc (msleep_sync_array::~msleep_sync_array): New destructor
Corinna Vinschen [Mon, 19 May 2014 09:52:43 +0000 (09:52 +0000)]
* bsd_mutex.cc (msleep_sync_array::~msleep_sync_array): New destructor
to make Coverity happy (CID 59838).

10 years ago * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs to make
Corinna Vinschen [Mon, 19 May 2014 09:49:15 +0000 (09:49 +0000)]
* bsd_helper.cc (ipcexit_creat_hookthread): Delete shs to make
Coverity happy (CID 59993).
* transport_pipes.cc (transport_layer_pipes::listen): Make listen_pipe
and connect_pipe statics to make Coverity happy (CID 60010/60011).

10 years ago * syscalls.cc (getusershell): Fix buffer overrun (Coverity ID 59932).
Corinna Vinschen [Mon, 19 May 2014 08:29:47 +0000 (08:29 +0000)]
* syscalls.cc (getusershell): Fix buffer overrun (Coverity ID 59932).

10 years ago * external.cc (cygwin_internal): Use local name buffer instead of
Corinna Vinschen [Fri, 16 May 2014 12:13:57 +0000 (12:13 +0000)]
* external.cc (cygwin_internal): Use local name buffer instead of
allocated one in CW_CYGNAME_FROM_WINNAME.

10 years ago * libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.
Corinna Vinschen [Thu, 15 May 2014 13:14:25 +0000 (13:14 +0000)]
* libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.

10 years ago * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 273.
Corinna Vinschen [Thu, 15 May 2014 11:24:42 +0000 (11:24 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 273.

10 years ago * external.cc (cygwin_internal): Implement CW_CYGNAME_FROM_WINNAME.
Corinna Vinschen [Thu, 15 May 2014 11:16:28 +0000 (11:16 +0000)]
* external.cc (cygwin_internal): Implement CW_CYGNAME_FROM_WINNAME.
Add lengthy comment to explain what we do and why.
* include/sys/cygwin.h (cygwin_getinfo_types): Add
CW_CYGNAME_FROM_WINNAME.

10 years ago2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Wed, 14 May 2014 23:24:37 +0000 (23:24 +0000)]
2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>

Sync from GCC mainline.

* configure.ac (target_makefile_frag): Set for nios2-*-elf*.
* configure: Regenerated.

config/
* mt-nios2-elf: New file.

10 years agomerge from gcc
DJ Delorie [Wed, 14 May 2014 17:23:22 +0000 (17:23 +0000)]
merge from gcc

10 years ago * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when double
Corinna Vinschen [Wed, 14 May 2014 11:33:24 +0000 (11:33 +0000)]
* libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when double
options is not __RL78_64BIT_DOUBLES__.

10 years ago * sec_auth.cc (get_server_groups): Call get_logon_server only for
Corinna Vinschen [Wed, 14 May 2014 11:27:47 +0000 (11:27 +0000)]
* sec_auth.cc (get_server_groups): Call get_logon_server only for
non-builtin accounts.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Check incoming
account name for validity in terms of the current name prefixing rules
and refuse invalid names.

10 years ago * fhandler_socket.cc (fhandler_socket::ioctl): Handle the different
Corinna Vinschen [Tue, 13 May 2014 16:07:50 +0000 (16:07 +0000)]
* fhandler_socket.cc (fhandler_socket::ioctl): Handle the different
ideas of u_long between Winsock and Cygwin applications on x86_64.
Add long comment.

10 years ago * minidumper.cc (filter_minidump_type): New function.
Jon TURNEY [Tue, 13 May 2014 10:26:26 +0000 (10:26 +0000)]
* minidumper.cc (filter_minidump_type): New function.
(minidump): Change default dump type from MiniDumpNormal to
something with more useful information without getting too
big. Use filter_minidump_type() to filter out unsupported dump
types.

10 years ago * Makefile.in (minidumper.exe): Link directly with dbghelp.
Jon TURNEY [Tue, 13 May 2014 10:24:16 +0000 (10:24 +0000)]
* Makefile.in (minidumper.exe): Link directly with dbghelp.
* minidumper.cc (minidump): Ditto.

10 years ago * libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.
Corinna Vinschen [Mon, 12 May 2014 17:02:11 +0000 (17:02 +0000)]
* libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.
(WCHAR_MAX): Ditto.
* libc/include/wchar.h (WCHAR_MIN): Add comment.
(WCHAR_MAX): Ditto.

10 years agoclarify checkin comment
Christopher Faylor [Sat, 10 May 2014 20:17:54 +0000 (20:17 +0000)]
clarify checkin comment

10 years ago* signal.cc (sigprocmask): Fix strace output to include "how".
Christopher Faylor [Fri, 9 May 2014 14:28:48 +0000 (14:28 +0000)]
* signal.cc (sigprocmask): Fix strace output to include "how".
* fhandler_console.cc (dev_console::save_restore): Only current dwEnd line
rather than the one after that.

10 years ago * libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or
Corinna Vinschen [Fri, 9 May 2014 14:25:32 +0000 (14:25 +0000)]
* libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or
__XSI_VISIBLE or if __POSIX_VISIBLE >= 200112.

10 years ago * libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only.
Corinna Vinschen [Fri, 9 May 2014 08:42:39 +0000 (08:42 +0000)]
* libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only.
(renameat): Drop explicit __CYGWIN__ dependency.

10 years ago * uinfo.cc (cygheap_user::init): Fix formatting in debug output.
Corinna Vinschen [Thu, 8 May 2014 19:33:07 +0000 (19:33 +0000)]
* uinfo.cc (cygheap_user::init): Fix formatting in debug output.
(struct cyg_USER_INFO_24): Define temporarily.  Explain why.
(pwdgrp::fetch_account_from_windows): Handle sane primary group
setting for Microsoft Accounts.  Explain why.
* wincap.h (wincaps::has_microsoft_accounts): New element.
* wincap.cc: Implement above element throughout.

10 years ago * grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducing
Corinna Vinschen [Thu, 8 May 2014 08:44:07 +0000 (08:44 +0000)]
* grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducing
an endless loop.

10 years ago * passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing the
Corinna Vinschen [Wed, 7 May 2014 14:49:54 +0000 (14:49 +0000)]
* passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing the
buffer len.  Add comment.
* uinfo.cc (internal_getlogin): Fix typo in comment.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Tweak SID<->uid
Corinna Vinschen [Wed, 7 May 2014 12:07:12 +0000 (12:07 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Tweak SID<->uid
conversion to cover S-1-5-113, S-1-5-114, and S-1-5-1000 groups.

10 years ago * grp.cc (pwdgrp::parse_group): Set grp.len. Drop generating any
Corinna Vinschen [Wed, 7 May 2014 11:00:00 +0000 (11:00 +0000)]
* grp.cc (pwdgrp::parse_group): Set grp.len.  Drop generating any
gr_mem entries.
(getgrgid_r): Don't try to copy gr_mem entries.  Always set gr_mem
to an empty list.
(getgrnam_r): Ditto.
(app_gr): New static struct to store group data propagated to the
calling application via getgrgid/getgrnam.
(getgr_cp): Fill app_gr and return pointer to app_gr.g.
(getgrgid32): Call getgr_cp.
(getgrnam32): Ditto.
* passwd.cc (pwdgrp::parse_passwd): Set res.len.
(app_pw): New static struct to store passwd data propagated to the
calling application via getpwuid/getpwnam.
(getpw_cp): Fill app_pw and return pointer to app_pw.p.
(getpwuid32): Cal getpw_cp.
(getpwnam): Ditto.
* pwdgrp.h (struct pg_pwd): Add len member.
(struct pg_grp): Ditto.

10 years ago * security.h (MAX_SUBAUTH_CNT): Drop. Use SID_MAX_SUB_AUTHORITIES
Corinna Vinschen [Tue, 6 May 2014 12:28:33 +0000 (12:28 +0000)]
* security.h (MAX_SUBAUTH_CNT): Drop.  Use SID_MAX_SUB_AUTHORITIES
instead throughout.
(MAX_SID_LEN): Drop.  Use SECURITY_MAX_SID_SIZE instead throughout.

10 years ago * grp.cc (internal_getgroups): Drop unused cygsid variable.
Corinna Vinschen [Tue, 6 May 2014 12:02:48 +0000 (12:02 +0000)]
* grp.cc (internal_getgroups): Drop unused cygsid variable.
* sec_helper.cc (cygpsid::pstring): Use sid_sub_auth_count macro.
(cygsid::get_sid): Use MAX_SUBAUTH_CNT rather than wrong constant 8.
Don't call memcpy to copy subauthorities into SID, use assignment.
(cygsid::getfromstr): Use MAX_SUBAUTH_CNT rather than wrong constant 8.
* security.h (MAX_SUBAUTH_CNT): New definition.  Set to 11 to cover
Microsoft Accounts.
(MAX_SID_LEN): Define in terms of SID member sizes and MAX_SUBAUTH_CNT.
(DBGSID): Use MAX_SUBAUTH_CNT to define size of SubAuthority array.
* uinfo.cc (pwdgrp::fetch_account_from_windows): Handle Micosoft
Accounts.  Handle them as well known group.  Compare domain names
case-insensitive.
* winlean.h (PIPE_REJECT_REMOTE_CLIENTS): Drop temporary definition
since Mingw64 catched up.
(DNLEN): Redefine as 16.  Explain why.

10 years ago * net.cc (cygwin_getsockopt): Rearrange code slightly and handle
Corinna Vinschen [Mon, 5 May 2014 15:18:17 +0000 (15:18 +0000)]
* net.cc (cygwin_getsockopt): Rearrange code slightly and handle
TCP_NODELAY just like SO_KEEPALIVE and SO_DONTROUTE.

10 years ago * libc/include/stdio.h: Declare various C99 printf/scanf functions for
Corinna Vinschen [Mon, 5 May 2014 12:53:47 +0000 (12:53 +0000)]
* libc/include/stdio.h: Declare various C99 printf/scanf functions for
C++11, too.

10 years ago* spawn.cc (av::setup): Eat trailing whitespace on #! script.
Christopher Faylor [Sat, 3 May 2014 19:58:20 +0000 (19:58 +0000)]
* spawn.cc (av::setup): Eat trailing whitespace on #! script.

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