summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [aarch64] Add memchr.Richard Earnshaw2014-07-115-6/+229
| | | | | | | | | 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.
* * thread.cc (pthread::create): Use PTHREAD_DEFAULT_STACKSIZE stacksizeCorinna Vinschen2014-07-092-13/+23
| | | | | | | | | | | | 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.
* * exceptions.cc (exception::myfault_handle): Rephrase comment.Corinna Vinschen2014-07-092-1/+8
|
* * exceptions.cc (exception::myfault_handle): Fix typo in comment.Corinna Vinschen2014-07-092-1/+5
|
* * exceptions.cc (exception::myfault_handle): Disable handlingCorinna Vinschen2014-07-073-0/+10
| | | | STATUS_STACK_OVERFLOW. Explain why.
* 2014-07-07 Pavel Pisa <pisa@cmp.felk.cvut.cz>Richard Earnshaw2014-07-072-1/+8
| | | | | | Richard Earnshaw <rearnsha@arm.com> * libc/machine/arm/memchr.S (.arch): Require revision ARMv6t2.
* * configure.in (--enable-newlib-nano-formatted-io): Set to "no"Corinna Vinschen2014-07-073-2/+8
| | | | | by default. * configure: Regenerated.
* * fhandler_socket.cc (fhandler_socket::send_internal): Improve loop toCorinna Vinschen2014-07-072-16/+49
| | | | | | 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.
* * passwd.cc (pg_ent::enumerate_ad): Revert to simply skipping a domainCorinna Vinschen2014-07-072-16/+10
| | | | if opening the connection to the domain fails.
* * libc/minires.c (minires_dprintf): Change "Minires" to "Resolv" toCorinna Vinschen2014-07-072-2/+13
| | | | | | differ from external minres lib. (res_nquerydomain): Fix off-by-one in domain concatenation. Add debug output.
* * configure.ac: Don't accept isl 0.10.Rainer Orth2014-07-053-55/+8
| | | | * configure: Regenerate.
* 2014-07-04 Bin Cheng <bin.cheng@arm.com>Jeff Johnston2014-07-0436-221/+3573
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * fhandler_disk_file.cc (fhandler_disk_file::fstatvfs): Add debugCorinna Vinschen2014-07-032-0/+9
| | | | output.
* * legal.xml: Fix copyright.Corinna Vinschen2014-06-262-1/+5
|
* * errno.cc (errmap): Fix order of SERVICE_REQUEST_TIMEOUT.Corinna Vinschen2014-06-252-1/+5
|
* * errno.cc (errmap): Handle Windows error codes ERROR_CANCELLED,Corinna Vinschen2014-06-253-2/+17
| | | | | | | | 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.
* * ldap.cc (cyg_ldap::map_ldaperr_to_errno): Explicitely map LDAP_TIMEOUTCorinna Vinschen2014-06-252-0/+7
| | | | to EIO.
* * autoload.cc (ldap_search_sW): Replace ldap_search_stW.Corinna Vinschen2014-06-258-125/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* * libc/argz/envz_merge.c (envz_merge): Fix memory leak (Cygwin CoverityCorinna Vinschen2014-06-234-2/+13
| | | | | | | | 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).
* * spawn.cc (find_exec): Initialize err (CID 60111).Corinna Vinschen2014-06-235-5/+25
| | | | | | | | * 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).
* * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another errorCorinna Vinschen2014-06-232-0/+6
| | | | case to make Coverity really happy (CID 59993).
* * select.cc (start_thread_socket): Delete si on early return in case ofCorinna Vinschen2014-06-232-3/+17
| | | | an error (CID 59967).
* * regex/regcomp.c (computematchjumps): Free local memory in case ofCorinna Vinschen2014-06-232-0/+8
| | | | error (CID 59975).
* * mount.cc (fs_info::update): Define dir in the outermost scope to avoidCorinna Vinschen2014-06-232-4/+10
| | | | | accessing out-of-scope value (CID 60027). Always initialize attr to upath (CID 60113).
* * malloc_wrapper.cc (mallinfo): Initialize m if external malloc is used,Corinna Vinschen2014-06-232-1/+9
| | | | too (CID 60120).
* * localtime.cc (tzload): Fix leaking memory (CID 60001).Corinna Vinschen2014-06-232-1/+5
|
* * exceptions.cc (try_to_debug): Free environment pointer when not usedCorinna Vinschen2014-06-232-1/+7
| | | | anymore (CID 59968).
* * net.cc (cygwin_getaddrinfo): Fix value of hint->ai_addrlen on 64 bit.Corinna Vinschen2014-06-232-0/+15
| | | | Explain why.
* * environ.cc (regopt): Allocate small local buffer to avoid copyingCorinna Vinschen2014-06-232-7/+12
| | | | twice. Fixes resource leak (CID 60012). Add comment.
* * dll_init.cc (dll_list::alloc): Fix buffer overrun (CID 59940).Corinna Vinschen2014-06-232-1/+5
|
* * dcrt0.cc (insert_file): Fix resource leaks (CIDs 59987, 59988).Corinna Vinschen2014-06-232-0/+7
|
* * client.cc: Throughout, fix debug output of signed byte count value.Corinna Vinschen2014-06-232-8/+12
|
* * ldap.cc (CYG_LDAP_TIMEOUT): Set to 5 secs.Corinna Vinschen2014-06-232-10/+27
| | | | | | | | | (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.
* * ldap.cc (CYG_LDAP_TIMEOUT): Define as timeout value. Set to 30 secsCorinna Vinschen2014-06-183-6/+27
| | | | | | | 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.
* * faq-programming.xml: Add gettext-devel to list of packages needed to buildChristopher Faylor2014-06-172-1/+6
| | | | Cygwin.
* Fix timestampCorinna Vinschen2014-06-171-1/+1
|
* * libc/rexec.cc (cygwin_rexec): Make ahostbuf static to avoid returningCorinna Vinschen2014-06-172-1/+6
| | | | an out-of-scope address.
* * passwd.c (main): Fix typo in error output.Corinna Vinschen2014-06-162-1/+6
|
* * fhandler_socket.cc (fhandler_socket::evaluate_events): CallCorinna Vinschen2014-06-162-2/+11
| | | | WSASetLastError after setsockopt. Explain why.
* * grp.cc (getgrouplist): Fix setting ngroups to make sure to returnCorinna Vinschen2014-06-162-1/+6
| | | | the right value.
* merge from gccDJ Delorie2014-06-112-0/+10
|
* * libc/machine/aarch64/strchrnul.S: New file.Richard Earnshaw2014-06-115-5/+208
| | | | | | * libc/machine/aarch64/strchrnul-stub.c: New file. * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated.
* * libc/machine/aarch64/strchr.S: New fileRichard Earnshaw2014-06-105-3/+220
| | | | | | * libc/machine/aarch64/strchr-stub.c: New file * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated.
* * configure.host (default_newlib_nano_malloc): New.DJ Delorie2014-06-106-21/+44
| | | | | | | | | | | (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.
* * timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf, printingChristopher Faylor2014-06-052-2/+8
| | | | more details about odd failure condition.
* * autoload.cc (ldap_memfreeW): Remove.Corinna Vinschen2014-05-233-17/+25
| | | | | | | | (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.
* *** empty log message ***Corinna Vinschen2014-05-231-0/+2
|
* * autoload.cc (ldap_abandon): Remove.Corinna Vinschen2014-05-224-30/+59
| | | | | | | | | | | | | | | | | (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.
* * sec_auth.cc (get_server_groups): Call get_user_local_groups only ifCorinna Vinschen2014-05-222-3/+11
| | | | get_logon_server succeeded.
* merge from gccDJ Delorie2014-05-222-1/+8
|