summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libc/string/strerror.c: Fix documentation so makedoc doesn'tCorinna Vinschen2014-07-302-1/+6
| | | | stumble over a sole EAGAIN.
* Add missing utils.xmlCorinna Vinschen2014-07-291-0/+1
|
* * mkgroup.c (usage): Move info message that this /etc/group isn't reallyCorinna Vinschen2014-07-294-16/+24
| | | | | required anymore more to the top of the usage output. * mkpasswd.c (usage): Ditto for /etc/passwd. Drop old text from output.
* * cygheap.h (class cygheap_domain_info): Remove lowest_tdo_posix_offset.Corinna Vinschen2014-07-295-20/+49
| | | | | | | | | | | | | | | | * 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.
* Fix typo in previous commitAnthony Green2014-07-281-1/+1
|
* Add moxiebox support.Anthony Green2014-07-276-7/+276
|
* * fhandler_socket.cc (fhandler_socket::send_internal): Fix value ofCorinna Vinschen2014-07-242-2/+12
| | | | | out_len when tweaking the last buffer so out_len is correct in a subsequent if expression.
* 2014-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-07-222-0/+8
| | | | | * libc/include/sys/time.h: Add prototype for adjtime() and wrap it and settimeofday() prototype with __BSD_VISIBLE.
* * thread.cc (pthread::init_mainthread): Initialize thread mutex toCorinna Vinschen2014-07-212-0/+9
| | | | type PTHREAD_MUTEX_RECURSIVE, just as for any other thread.
* bump to 32Corinna Vinschen2014-07-212-1/+5
|
* * uinfo.cc: Fix typo in comment.Corinna Vinschen2014-07-212-1/+5
|
* * new-features.xml: (ov-new1.7.31): Add new section.Corinna Vinschen2014-07-212-0/+31
|
* *** empty log message ***Corinna Vinschen2014-07-181-1/+1
|
* Fix missing generated filesCorinna Vinschen2014-07-171-0/+3
|
* * configure.host: Remove or16 and or32 targets and add or1k.Corinna Vinschen2014-07-1712-6/+6646
| | | | | | | | * 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.
* .Christopher Faylor2014-07-161-0/+4
|
* * arm/elf-aprofile-validation.specs (*link): Make text segmentCorinna Vinschen2014-07-163-2/+8
| | | | | 64k-aligned. * arm/elf-aprofile-ve.specs (*link): Likewise.
* *** empty log message ***Corinna Vinschen2014-07-161-0/+5
|
* * thread.cc (pthread::create): Handle stackaddr as upper bound address.Corinna Vinschen2014-07-163-16/+56
| | | | | | | | | | | | | | | | | 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.
* *** empty log message ***Corinna Vinschen2014-07-162-8/+39
|
* Fix typoCorinna Vinschen2014-07-161-1/+1
|
* * sigproc.cc (sigproc_init): Set aside more buffer space for signal pipes.Christopher Faylor2014-07-152-2/+21
| | | | | (sig_send): Retry WriteFiles which fail when there is no error but packbytes have not been sent.
* * sigproc.cc (send_sig): Don't report an error if WriteFile succeeds.Christopher Faylor2014-07-152-1/+5
|
* Fix typoCorinna Vinschen2014-07-151-1/+1
|
* * sigproc.cc (send_sig): Fix bad format in diagnostic output.Christopher Faylor2014-07-143-3/+398
|
* * libc/include/sys/errno.h: Fix comments.Corinna Vinschen2014-07-143-36/+100
| | | | | | * libc/string/strerror.c: Fix documentation. (_strerror_r): Handle ENETRESET, EILSEQ, ENODATA, ECONNRESET, EADDRNOTAVAIL, EOVERFLOW. Fix strings for EMFILE and EDOM.
* * uinfo.cc (cygheap_domain_info::init): Correctly setCorinna Vinschen2014-07-142-17/+22
| | | | | | 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.
* * thread.cc (pthread_mutex::pthread_mutex): Change default typeCorinna Vinschen2014-07-143-5/+17
| | | | | | | | | | | 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.
* [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).